Skip to content
XSS Write-up Intermediate

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.

pz Follow

Published on blog.silentsignal.eu

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.

pz, on blog.silentsignal.eu

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.

More by pz

View all

12 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.