One Token to Rule Them All – The Tale of the Leaked Gmail Addresses
A Gmail delegation deny URL contained a short hexadecimal token that was not validated, allowing an attacker to brute-force tokens and retrieve the email addresses associated with each token. This exposed both personal Gmail addresses and business email addresses hosted on Google Apps.
orenh.com
Published on orenh.com
Since I don’t really know where to start, let’s start at the end. At the very end of this attack, I am going to hold what appears to be every single email address hosted on Google.
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 delegation deny endpoint used a short, predictable token to identify the invited email address and did not require authentication, allowing brute-force enumeration.
Impact
An attacker could enumerate a large number of Gmail and Google Apps email addresses, which could aid in spear-phishing and other attacks.
What the attacker needed
No authentication required; ability to send many requests
The fix
The vulnerability was fixed by Google.
How it was found
- Obtain a delegation deny URL from a Gmail delegation email.
- Generate a dictionary of all 10-character hexadecimal tokens.
- Use DirBuster in URL Fuzz mode to try each token and find valid ones.
- Bypass Google's anti-bot protection by changing the email address in the URL.
- Convert the valid tokens to email addresses using a tool like Burp Intruder.
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 use Gmail's delegation feature, you can give someone else access to your inbox. The email that asks you to accept or deny that access contains a link with a short code. The researcher found that by guessing many codes, he could see the email address of the person who was invited, even without logging in.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.