Skip to content
Account takeover Write-up Intermediate

How I Reported a Pre-Account Hijack Affecting Any Gmail User (Even Google Employees)- My Bug Report Journey with Google

An unauthenticated GraphQL registration mutation on a Google subdomain issued a valid token for any Gmail address without email verification or rate-limiting. An attacker could pre-create an account and, when the real user later signed in via Google OAuth, the victim would land inside the attacker-controlled account, enabling profile and cart manipulation.

Harsh kothari Follow

Published on infosecwriteups.com

Bug hunting looks cool on Twitter: big payouts, P1 RCEs, flex posts. Reality is usually half-cold coffee, many tabs, and small logic bugs that break real user trust.

Harsh kothari, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the registration mutation issued a valid authentication token before verifying ownership of the email address, and the SSO-only login flow then matched the victim to that pre-existing account.

Impact

An attacker could achieve zero-click account takeover for any Gmail address, with persistent access via a JWT the victim cannot revoke, and could manipulate profile data and carts; the report notes the issue was eventually resolved.

What the attacker needed

No account needed; target uses a Gmail address; victim later signs in via Google OAuth

The fix

The issue was fixed: a password reset option was added and the GraphQL endpoint was secured.

How it was found

  1. Run a GraphQL introspection query against the site to list available mutations.
  2. Find the registration mutation and call it with a target Gmail address.
  3. Receive a token in the response without any email verification.
  4. Use the token to update the profile, add an address, and pre-fill the shopping cart.
  5. Wait for the real user to sign in via Google OAuth, which places them in the attacker-created account.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When you sign up for a website, it usually sends a code to your email to prove the address is yours. Here, the site skipped that check and handed out a working login token for any email address typed in. Because the site only offered 'Sign in with Google', the real owner of that address would later be dropped into the account the attacker had already made.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by Harsh kothari

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.