WAF bypass made easy
A web application behind a blacklist-based WAF filtered some HTML tags and event handlers, but the filtering was incomplete, so the author could still perform cross-site scripting in limited ways. The text does not show the full exploitation or its consequences.
In this post I will share my testing experiences about a web application protected by a web application firewall (WAF). The investigation of the parameters of web interfaces revealed that I can perform XSS attacks in some limited ways.
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 WAF relied on a blocklist of HTML tags and event handlers rather than properly encoding or sanitising user input, leaving alternative syntaxes unfiltered.
What the attacker needed
Target protected by a WAF
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 web application firewall is a filter that sits in front of a website and tries to block malicious input. Here the filter used a blocklist, meaning it only rejected a known set of dangerous HTML tags and event handlers, so other ways of getting script to run could slip through. Cross-site scripting means tricking a victim's browser into running attacker-supplied script on the site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.