Google VRP ยท Bug Chain ยท Original Reporter: Rebane ยท Report Writer: Aditya Sunny
Six small flaws, one click, your Drive is theirs
No single step looks dangerous. The chain is the vulnerability.
The six links in the chain
- Slides embeds YouTube videos using a video ID that wasn't strictly validated โ opening a path-traversal possibility in how the embed URL gets built.
- YouTube/account redirects can be chained to reach certain Google URLs.
- A specific Drive page โ
docs.google.com/file/d/{ID}/editโ could be framed and still displayed the real Share dialog. - A
userstoinvitequery parameter pre-filled the share dialog, so the user only needed to click Send. - A legacy
/a/...URL format bypassed redirect blocks. - Slide transitions and layered iframes masked the dialog, exposing only the "Send" button.
Result: the victim clicks "Send" โ the attacker becomes Editor on the targeted file or folder.
Why it works, in plain terms
Slides uses a YouTube "video ID" to build an embed URL; if IDs are not checked strictly, the embed can point at other YouTube paths. YouTube and account subdomains can redirect browsers to other Google pages via next/continue parameters, which lets an attacker move the browser from a YouTube frame into a Docs page. Certain Docs file pages still show the genuine Share dialog inside an iframe, and a URL parameter like userstoinvite= pre-fills that dialog โ reducing the victim's part to a single click. Legacy URL formats dodge "permission denied" checks during redirects, and UI tricks (auto-advance, fades, overlapping frames) hide everything except the Send button, making the click far more likely.
Impact
- Editor access means read/write/delete/share privileges โ a major escalation when granted to an attacker.
- The attack is social-engineering friendly: one button click by the target is enough.
- Because the chain uses normal product features combined in an unexpected way, it slips past many single-defense checks.
How it was verified โ safely
The original write-up documents a defensive reproduction method using only the researcher's own test accounts: create two accounts you own (an "attacker-test" and a "victim-test"), keep the target file private, then check each link independently โ whether Slides accepts non-standard video IDs, whether the Docs file page shows a usable Share dialog inside an iframe, whether userstoinvite pre-fills the dialog, and whether the redirect chain (YouTube โ accounts โ Docs, sometimes via a legacy /a/ path) lands on a framed page with an active share dialog. During testing, log browser network traffic (redirects and iframe sources), console framing warnings, and Drive audit entries showing invites or permission changes. Never test against accounts, files, or organizations you do not own or lack explicit permission to test.
Mitigations
- Immediate: disable the
userstoinviteGET behavior and require explicit UI actions for inviting users; never show permission dialogs when the page is inside a frame; strictly validate video IDs and reject anything containing path characters. - Short term: require re-authentication for redirects landing on permission-changing pages; add server checks blocking cross-origin redirect chains that reach privileged pages.
- Medium term: host permission UI on a separate, dedicated origin; harden CSP and
X-Frame-Options; remove privileged actions triggered by GET parameters.
Detection ideas for defenders
- Alert when logs show
userstoinvitein a URL. - Alert when an Editor grant is created right after a user opened a published Slide link.
- Flag requests to
docs.google.com/file/d/*/editwhose referer isyoutube.comoraccounts.youtube.com. - Forensics: Drive audit entries showing unexpected Editor additions to external emails, and browser telemetry showing nested iframe chains across YouTube/account subdomains.
A chain of permissive behaviors across Slides, YouTube, and Docs once allowed a convincing single-click Drive hijack โ fixed after responsible disclosure. Credit where due: the vulnerability was originally reported by Rebane; I (Aditya Sunny) wrote this report.
Originally published on Medium (Oct 7, 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.