Skip to content
XSS Write-up Advanced

Browsers Anti-XSS methods in ASP (classic) have been defeated!

The paper shows that browser anti-XSS filters do not account for quirks in how classic ASP parses request parameters, so crafted inputs can slip past those filters and execute script. An attacker could use these parsing differences to bypass client-side XSS protections in affected browsers.

soroush.me

Published on soroush.me

Download Link: https://soroush.me/downloadable/BrowsersAnti-XSSmethodsinASP(classic)havebeendefeated.pdf

The author, on soroush.me

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 browser anti-XSS filters did not model ASP's parameter parsing quirks, such as duplicate names, Unicode-to-ASCII conversion, case-insensitivity, null-byte truncation, stray percent signs and ampersand handling, so their normalisation differed from the server's.

Impact

The paper claims that browser anti-XSS protections could be bypassed in IE8/9/10 and Google Chrome, while NoScript had been updated to cover the rules and IE9 had better awareness than Chrome but still lacked all rules.

What the attacker needed

Victim uses a browser with anti-XSS filter; target runs classic ASP; attacker can supply crafted input

The fix

Browser anti-XSS filters should include language-specific parsing rules for ASP classic, as NoScript did after being patched.

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.

Websites sometimes try to stop malicious scripts by having the browser filter suspicious input. This paper shows that the server language ASP reads some inputs differently from the browser, so an attacker can write input that looks harmless to the browser but still runs as a script. The result is that the browser's protection can be tricked.

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.