Skip to content
XSS Write-up Intermediate

XSS Auditor bypass using obscure <param> tag

Chrome's XSS Auditor blocked the usual object parameters but not the obscure 'code' and 'url' parameters, so an attacker could load a Flash file and run JavaScript. The bypass worked on Chrome Canary 57 but not on IE, Edge or Firefox.

Unknown Follow

Published on mksben.l0.cm

The original lives on mksben.l0.cm

We do not hold its text, 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 XSS Auditor's blocklist did not include the 'code' and 'url' parameters that Chrome's HTMLObjectElement also accepts for loading content.

Impact

An attacker could bypass the XSS Auditor in Chrome Canary 57 to execute JavaScript via a Flash file, but the technique did not work on IE, Edge or Firefox.

What the attacker needed

Chrome Canary 57 (or similar); Flash plugin enabled; Victim visits a crafted page

The fix

Chrome should remove support for these legacy parameters, as the researcher suggests.

How it was found

  1. Craft a page containing an object element with allowscriptaccess set to always.
  2. Add a param element using the name 'url' or 'code' pointing to a Flash file that runs JavaScript.
  3. Load the page in Chrome Canary 57 and observe that the XSS Auditor does not block it and the JavaScript executes.

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.

A browser feature called XSS Auditor tried to stop certain scripts from running on a page. The researcher found that it missed two unusual ways of telling a Flash object where to load content from, so a malicious Flash file could still run JavaScript. This only affected Chrome, not other browsers.

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 Unknown

View all

32 more disclosed reports, best first.

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.