Clickjacking in google docs and void typing feature
Google Docs pages were served without an X-Frame-Options header, so a document could be embedded in an attacker's page. Because the voice typing feature could be enabled inside that frame with microphone permission granted, an attacker could get a victim to activate it and capture their spoken audio.
Published on medium.com
Google Docs page response doesn’t have x-frame-options headers i.e; it can be embedded into any other webpage.
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 Google Docs editor response lacked framing protections such as X-Frame-Options or a frame-ancestors policy, allowing it to be embedded and interacted with from a third-party page.
Impact
An attacker could record a victim's private conversations, though the text notes this requires a few clicks from the victim and the document being public.
What the attacker needed
A public Google Doc; attacker-controlled webpage; victim visits the page; victim grants microphone access
How it was found
- Create a public Google Doc and open the voice typing feature in it.
- Embed the document in an iframe on an attacker-controlled page, granting microphone permission to the frame.
- Share the page with the victim and use a few clicks to get voice typing activated so their speech is captured.
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.
Clickjacking is when a page you trust is hidden inside another page so that your clicks or permissions go to the hidden page without you realising. Here the Google Docs editor could be framed, and the frame was allowed to use the microphone, so a victim could be tricked into turning on voice typing and having their speech recorded.
What is UI spoofing?
The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.