Skip to content
Info disclosure Write-up Intermediate

How to confirm a Google user’s specific email address (Bug Bounty Submission)

A Google login redirect could be abused to check whether a visitor is logged in to a specific Google account by loading an image and observing load or error events. An attacker could test many email addresses quickly to confirm account existence.

Tom Anthony Follow

Published on tomanthony.co.uk

I recently reported an issue to Google, which allows an attacker to confirm whether a visitor to a web page is logged in to any one of a list of specific Google accounts (including GSuite accounts). It is possible to check about 1000 email addresses every 25 seconds.

Tom Anthony (@TomAnthonySEO), on tomanthony.co.uk

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 login redirect endpoint did not require a per-request secret, so an attacker could test arbitrary email addresses by observing whether the redirect succeeded.

Impact

An attacker could confirm whether a visitor is logged in to specific Google accounts, enabling targeted phishing, though Google considered it intended behaviour and suggested possible rate limiting.

What the attacker needed

Victim visits attacker's page; victim logged in to Google; attacker has list of target emails

The fix

Should be fixed by adding a nonce or salted hash of the email so the redirect only works with that hash and email combo, preventing blind attacks.

How it was found

  1. Craft a Google login URL with a continue parameter pointing to an image and an email parameter.
  2. Use this URL as the src of an image tag with onload and onerror handlers.
  3. If the image loads, the user is logged in to that email; if it errors, they are not.
  4. Dynamically create many such image tags for different email addresses to test a list.

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 visit a Google login page, it can send you back to a website afterwards. The researcher found that this redirect only happens if you are logged in to a particular Google account. By loading an image from that redirect, a website can tell if you are logged in to that account, and can try many accounts quickly.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Tom Anthony

View all

4 more disclosed reports, best first.

More from Google

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.