Stored XSS in Google Doubleclick Studio
An uploaded HTML creative in Google DoubleClick Studio ran its embedded script when previewed, so attacker-supplied JavaScript executed in the preview context. Because the preview runs on a sandbox domain, the impact was limited and no reward was paid.
Published on jasminderpalsingh.info
This bug was reported under Google Research Grant. I received $500 research grant from Google in November 2020 and decided Double Click Studio as target.
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 preview rendered uploaded HTML creatives without sanitising or isolating their scripts, so embedded JavaScript executed in the preview page.
Impact
Script from an uploaded creative could run in the preview, but only within a sandbox domain, which limited what it could reach.
What the attacker needed
Ability to upload an HTML creative; victim opens the creative preview
How it was found
- Create an HTML file containing a script that loads the Studio enabler library and then runs JavaScript.
- Open the DoubleClick Studio creatives page and upload that HTML file.
- Fill in the remaining details and go to the preview, where the script runs.
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.
DoubleClick Studio lets advertisers upload HTML files that become ads. The site showed the uploaded file in a preview without stopping the JavaScript inside it, so the file's script ran as if it were part of the page. This is called stored cross-site scripting: harmful script is saved on the server and runs later for whoever views it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.