Skip to content
Info disclosure Write-up Advanced

Leaking the phone number of any Google user

The no-JavaScript username recovery form on Google's accounts page allowed checking whether a given phone number and display name belonged to a Google account, without rate limiting when a BotGuard token from the JavaScript form was reused. An attacker could brute-force the hidden digits of a victim's phone number, using a display name leaked via Looker Studio and a masked phone hint from the forgot-password flow, to recover the full phone number.

Arvin Shivram Follow

Published on brutecat.com

Bounty$5,000 View original

A few months ago, I disabled javascript on my browser while testing if there were any Google services left that still worked without JS in the modern web. Interestingly enough, the username recovery form still worked!

Arvin Shivram, on brutecat.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 no-JavaScript username recovery endpoint accepted a BotGuard token generated for the JavaScript form without enforcing its own rate limiting or bot checks, allowing high-volume enumeration.

Impact

An attacker could recover the full phone number of a Google user with no interaction from the victim, though the attack required knowing the victim's display name and a masked phone hint, and the endpoint was later deprecated.

What the attacker needed

Victim's display name known; masked phone hint from forgot-password; BotGuard token from JS form; no victim interaction

The fix

The no-JavaScript username recovery form was fully deprecated.

How it was found

  1. Disable JavaScript in the browser and open the username recovery form.
  2. Send a POST request to the username recovery endpoint with a phone number to obtain an ess value.
  3. Send a POST request to the lookup endpoint with the ess value, a display name, and a BotGuard token from the JavaScript form instead of js_disabled.
  4. Observe the redirect: challenge means an account matches, noaccountsfound means no match.
  5. Leak the victim's display name by transferring a Looker Studio document to them.
  6. Use the forgot-password flow to get the masked phone number, then brute-force the remaining digits with the gpb tool.

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.

Google's account recovery page had a version that worked without JavaScript. It let anyone ask 'does this phone number belong to an account with this name?' and get a simple yes or no. The researcher found that by reusing a special anti-bot token from the JavaScript version, they could ask this question very quickly, many times, to guess the hidden digits of someone's phone number.

What is Info disclosure?

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

More by Arvin Shivram

View all

2 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.