Skip to content

fix: reject unsupported URLs before Gmail fallthrough in Google Gatekeeper - #72

Closed
Ashutosh0x wants to merge 1 commit into
cloudflare:mainfrom
Ashutosh0x:fix/google-gatekeeper-reject-unsupported-urls
Closed

fix: reject unsupported URLs before Gmail fallthrough in Google Gatekeeper#72
Ashutosh0x wants to merge 1 commit into
cloudflare:mainfrom
Ashutosh0x:fix/google-gatekeeper-reject-unsupported-urls

Conversation

@Ashutosh0x

Copy link
Copy Markdown

Fixes #63

Problem

\getGatekeeperClassFor()\ falls through to the Gmail branch for any URL that doesn't match Docs, Sheets, Calendar, or BigQuery — including non-Google URLs like \https://evil.example/resource\. This silently returns a Gmail capability for an unrelated resource URL, weakening the resource-URL boundary and making audit records misleading.

Fix

Add a hostname check for \mail.google.com\ before the Gmail fallthrough. Unsupported URLs now get a clear error listing the supported resources.

9 insertions, 0 deletions.

cc @jonesphillip @kentonv

…eeper

getGatekeeperClassFor() falls through to the Gmail branch for any URL
that does not match Docs, Sheets, Calendar, or BigQuery — including
non-Google URLs like https://evil.example/resource. This silently
returns a Gmail capability for an unrelated resource URL.

Add a hostname check for mail.google.com before the fallthrough so
unsupported URLs are rejected with a clear error.

Fixes cloudflare#63
@Ashutosh0x

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@kentonv

kentonv commented Aug 7, 2026

Copy link
Copy Markdown
Member

Hi @Ashutosh0x,

Apologies but, per our contributing guide, we prefer not to receive external pull requests. We prefer instead to receive issue reports, which we can then direct our own agents to solve. Could you please file an issue instead?

@kentonv kentonv closed this Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Google Gatekeeper falls through unsupported URLs to Gmail

2 participants