Skip to content
XSS Write-up Intermediate

Admob Creative image XSS

The AdMob advert creation form saved an image URL without filtering or escaping, so an attacker could inject HTML and JavaScript into the advert page. This allowed stored cross-site scripting, potentially executing script in the context of users viewing the advert.

bitquark Follow

Published on bitquark.co.uk

Google's vulnerability reward programme gets a lot of attention, and includes not just Google's main websites, but also those of acquisitions older than 6 months. With this in mind, I thought I'd venture off the beaten path and take a look at Admob, one of the world's largest mobile advertising platforms according to…

Bitquark (@bitquark), on bitquark.co.uk

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

The application stored user-supplied image URL data without validation or output encoding, allowing HTML and JavaScript injection.

What the attacker needed

An AdMob account; ability to intercept or modify form data

The fix

The application should validate and escape user-supplied image URLs before storing and rendering them.

How it was found

  1. Create a new advert and proceed through the setup steps.
  2. Upload an image and intercept the form submission.
  3. Modify the image URL field to include HTML and JavaScript.
  4. Submit the form to save the advert with the injected content.

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 create an advert, the form lets you upload an image and stores its web address. The site did not check or clean that address before putting it back on the page. An attacker could change the address to include code, and that code would run when someone viewed the advert.

What is XSS?

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

More by bitquark

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.

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.