Leaking the email of any YouTube user for $10,000
A YouTube endpoint leaked the obfuscated Gaia ID of any channel, and a Pixel Recorder endpoint converted that ID to an email address. An attacker could obtain the email of any YouTube user without notifying them.
Some time ago, I was looking for a research target in Google and was digging through the Internal People API (Staging) discovery document until I noticed something interesting:
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 two separate flaws: YouTube's live chat context menu endpoint returned the obfuscated Gaia ID of arbitrary channels, and Pixel Recorder's WriteShareList endpoint returned the email address for a supplied Gaia ID without proper access control.
Impact
An attacker could obtain the email address of any YouTube user without the victim being notified, but the attack required a multi-step chain and was limited to users with a Google account.
What the attacker needed
A Google account; victim has a YouTube channel; attacker can send requests to Google APIs
The fix
Both the YouTube Gaia ID leak and the Pixel Recorder email disclosure were fixed by the vendor.
How it was found
- Send a request to the YouTube live chat get_item_context_menu endpoint with a target channel ID in the params.
- Decode the response to obtain the target's obfuscated Gaia ID.
- Use the Pixel Recorder WriteShareList endpoint with the Gaia ID to retrieve the associated email address.
- To avoid notifying the target, set the recording title to an extremely long string (2.5 million characters) before sharing.
- Share the recording with the target's Gaia ID; the response contains the email and no notification is sent.
- Remove the target from the recording to clean up.
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.
Every Google account has a hidden numeric ID called a Gaia ID. YouTube accidentally revealed this ID for any channel, and a separate Google service (Pixel Recorder) would turn that ID into the account's email address. By combining the two, an attacker could find the email behind any YouTube channel.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.