How I Bypassed a 403 Forbidden WAF Protection (and What I Learne
A WAF returned 403 for a WordPress XML-RPC endpoint, but appending path traversal sequences to the URL caused the WAF to allow the request and return 200. This bypass could enable brute force, DDoS amplification, SSRF, or access to sensitive files.
For me, it began with a feroxbuster scan. I was enumerating directories when I noticed multiple endpoints returning 403 Forbidden.
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's path normalisation rules were flawed, so it did not resolve traversal sequences before applying its block rules.
Impact
The bypass could allow brute force amplification, DDoS via pingback, SSRF, and access to sensitive files such as wp-config.php.
What the attacker needed
Target runs WordPress with XML-RPC enabled; WAF with flawed path normalisation
How it was found
- Scan directories and find endpoints returning 403.
- Send a normal request to the protected endpoint and confirm it is blocked.
- Append path traversal sequences to the URL and resend the request.
- Observe that the response changes from 403 to 200.
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 (WAF) is a filter that blocks suspicious requests. Here, the filter checked the URL path but did not normalise it properly, so adding '..' segments made it think the request was for a different, allowed path. The server then resolved the path back to the protected file, letting the attacker through.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.