Skip to content
XSS Write-up Intermediate

How i can bypassing strong WAF in XSS with simple payload

The search page reflected user input into the HTML without proper output encoding, so script could run in a victim's browser. A web application firewall blocked common payloads, but the author found tag and encoding variations that slipped past it and triggered an alert.

0xRedFox29 Follow

Published on medium.com

In this write-up, I want to share how I bypassed a strong WAF in XSS after the CSIRT team rejected my first bug report. Instead of giving up, I persevered.

0xRedFox29, on medium.com

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 search parameter was reflected into the page without output encoding, and the WAF relied on blocklists that missed alternative tag and encoding forms.

Impact

An attacker could run script in a victim's browser on the site's domain, which could be used to act as the victim or read data the script can reach; the text only demonstrates an alert.

What the attacker needed

Victim opens a crafted search link

How it was found

  1. Open the site's search page with a keyword parameter.
  2. Send a basic script payload and observe that the WAF blocks it.
  3. Try alternative tag types and encodings until one is not blocked.
  4. Confirm the browser runs the script and shows an alert.

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.

Cross-site scripting (XSS) happens when a website puts text you typed into the page without making it safe, so a browser treats it as code. Here the search box echoed the search term back, and the author found a way to make the browser run a small script. A web application firewall (WAF) is a filter that tries to block such attacks, but it can be fooled by slightly different spellings.

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 0xRedFox29

View all

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