Skip to content
XSS Write-up Intermediate

Google Docs XSS – no bounty today

The author noticed that Gmail displays the contents of compressed files when they are opened in Google Docs, and wondered whether HTML could be injected into the file listing. The text stops before showing any actual injection or impact, so no vulnerability is demonstrated.

sensepost.com

Published on sensepost.com

A few days ago, during one of those nights with the baby crying at 2:00 am and the only thing you can do is to read emails, I realised that Gmail shows the content of compressed files when reading them in Google Docs. As often is the case at SensePost, the “think evil ™” came to me and I started to ponder the…

The author, on sensepost.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 file listing rendered by Google Docs did not escape file names, but the text does not confirm this.

Impact

The text does not show any exploit or impact; it only raises the possibility of HTML injection in the file listing.

What the attacker needed

None stated

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.

When you open a compressed file (like a .zip) in Google Docs, the service lists the files inside it. The author wondered if a crafted file name could contain HTML, which is the code that makes up web pages, and cause something to run. The write-up ends before any test or result is shown.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.