[Google VRP] Hijacking Google Docs Screenshots
A postMessage misconfiguration in Google Docs' feedback feature allowed an attacker to capture screenshots of any document by exploiting browser behaviour. An attacker could obtain screenshots of private documents without authorisation.
blog.geekycat.in
Published on blog.geekycat.in
I was able to hijack Google Docs screenshot of any document exploiting postmessage misconfiguration and a browser behavior.
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 the feedback feature accepted postMessage commands without properly verifying the sender's origin, and a browser behaviour allowed the screenshot to be captured.
Impact
An attacker could capture screenshots of any Google Docs document, potentially exposing private content.
What the attacker needed
Victim visits a malicious page; victim has access to the target document
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.
Websites can send messages between windows using a browser feature called postMessage. If a site does not check who sent a message, another site can trick it into doing something unintended. Here, that mistake let an attacker take screenshots of private Google Docs.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.