Google VRP ยท XS-Search / XS-Leak ยท $5,000
Guessing what's inside your Drive โ without ever opening it
One bit per query. A dictionary of queries later, it's a topic map of someone's private Drive.
drive.google.com/drive/search leaked whether a query returned results. Because Google Drive indexes document contents, probing a keyword list effectively reveals whether a target's files contain those keywords. Reported via Google VRP โ triaged Jul 15, 2024, accepted Jul 18, 2024, fixed Nov 2, 2024 โ reward $5,000. Root cause: observable differences in page load/paint behavior between "no results" and "has results".Background: what is XS-Search?
XS-Search is a family of cross-origin side-channel techniques where an attacker page triggers a victim's authenticated search on another origin and then infers the result from timing or behavior differences โ without ever reading the response directly. The same-origin policy stays intact; what leaks is a signal: layout shifts, frame renders, redirects, cache behavior. In this case, the Google Drive search results page rendered slightly differently depending on whether the query matched files, and those differences were visible to an off-origin attacker through frame counting and paint cadence on an embedded or popped window.
How the leak works
- The attacker tricks a logged-in target into visiting an attacker page.
- The page triggers Drive search navigations for chosen keywords โ cross-origin, no reads.
- The attacker measures frame counts / paint cadence during page startup.
- The measurements for "results" vs "no results" separate cleanly โ presence inference for that keyword.
- Repeat across a keyword list to leak topics.
The search page's UI components โ filters, grid/list, placeholders โ produce a distinct paint profile when results exist. By measuring paint/frame events during load (for example via requestAnimationFrame races and observable loading behavior, all within permitted bounds), the two cases can be classified. No SOP break is involved at any point.
The proof of concept
I built two artifacts for the report: frames-vis.png, a visualization comparing frame counts for "results" vs "no results", and demo.html, a repro that probes a keyword list and classifies presence. The high-level method: prepare two calibration queries โ one that definitely matches a file in the Drive and one that definitely doesn't; measure frames during startup for each; plot the distributions and you will see separable clusters; pick a threshold (or a tiny classifier); then run the dictionary โ sensitive terms, project names, codenames โ through it. In my testing the demo worked reliably across devices and networks, over both Ethernet and Wi-Fi, though thresholds need calibration per environment.
Why Drive makes this powerful
Drive automatically indexes file titles and document contents (Docs, PDFs, and more). A keyword-presence oracle therefore lets an attacker detect whether a user has documents about specific people, companies, or projects; probe for sensitive terms (invoices, credential-related keywords, internal codenames); and map topic interests or ongoing investigations. A single yes/no bit looks harmless โ but single-bit leaks compound: hundreds of probed terms approach meaningful disclosure. That makes this a strong reconnaissance primitive for targeted phishing, negotiation intelligence, or competitor insight.
Timeline
| Event | Date |
|---|---|
| Triaged (Google VRP) | Jul 15, 2024 |
| Accepted | Jul 18, 2024 |
| Fixed | Nov 2, 2024 |
| Reward | $5,000 |
Google adjusted the rendering so the observable differences were no longer a dependable signal.
Mitigations
- For product teams: normalize rendering paths for result/no-result states to reduce paint and timing differentials; add loading shims or constant-time UI states until results resolve; consider COOP/COEP and permission policies that reduce embeddability where feasible; keep investing in XS-Leak hardening (timing fuzzing, budget-based timers, layout isolation).
- For users: prefer containerized profiles or separate browsers for sensitive sessions; use tracker mitigations and hardened browser settings; avoid visiting unknown pages while logged into high-value accounts.
Lessons learned
- Even mature applications can leak through micro-UI differences.
- Binary oracles are underrated โ scaled probing turns yes/no answers into rich disclosure.
- Repros that include visualizations, like frame distributions, make the case clear for triage.
This research was submitted to Google VRP, handled responsibly, and fixed by Google before publication โ the goal is awareness and better defenses, not exploitation.
Originally published on Medium (Aug 22, 2025).
Found something similar?
I help teams verify and fix issues like this โ and I retest my own reports for free. Reach me at sr558079@gmail.com or read more writeups.