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.
Published on brutecat.com
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!
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
- Disable JavaScript in the browser and open the username recovery form.
- Send a POST request to the username recovery endpoint with a phone number to obtain an ess value.
- 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.
- Observe the redirect: challenge means an account matches, noaccountsfound means no match.
- Leak the victim's display name by transferring a Looker Studio document to them.
- 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.