Skip to content
UI spoofing Write-up Intermediate

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.

Raushan Raj Follow

Published on medium.com

Bounty$2,337 View original

Google Docs page response doesn’t have x-frame-options headers i.e; it can be embedded into any other webpage.

Raushan Raj, on medium.com

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

  1. Create a public Google Doc and open the voice typing feature in it.
  2. Embed the document in an iframe on an attacker-controlled page, granting microphone permission to the frame.
  3. 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.

More by Raushan Raj

View all

4 more disclosed reports, best first.

More from Google

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

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.