Skip to content
XSS Write-up Advanced

XSS Auditor bypass using Flash and base tag

Chrome's XSS Auditor could be bypassed by injecting an unclosed base tag when the page had no whitespace directly after the injection point, allowing an attacker to change the base URL and load same-origin scripts. The author also used Flash to load an external resource before the base URL was set.

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 pattern matching failed to block an unclosed base tag when no whitespace followed the injection point, and it also missed cases where quote characters below the injection point allowed attribute breakout.

Impact

An attacker could bypass the XSS Auditor and execute script in the context of the vulnerable page, but the bypass depended on page layout (no whitespace after the injection point) and required Flash to load external resources.

What the attacker needed

Reflected injection point; no whitespace directly after injection; Flash enabled

How it was found

  1. Find a page with a reflected injection point that has no whitespace directly after it.
  2. Inject an unclosed base tag to change the base URL.
  3. Use Flash to load an external resource before the base URL is set, bypassing the same-origin restriction.

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.

The XSS Auditor was a browser feature that tried to stop script injection by blocking suspicious input. The researcher found that if the page had no space right after the injection point, the Auditor did not block an unclosed base tag, which changes where relative links point. This let the attacker load a script from the same site and run code.

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.