Skip to content
Path traversal Write-up Intermediate

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.

samael0x4 Follow

Published on samael0x4.medium.com

For me, it began with a feroxbuster scan. I was enumerating directories when I noticed multiple endpoints returning 403 Forbidden.

samael0x4, on samael0x4.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 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

  1. Scan directories and find endpoints returning 403.
  2. Send a normal request to the protected endpoint and confirm it is blocked.
  3. Append path traversal sequences to the URL and resend the request.
  4. 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.

More by samael0x4

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.