When 200 OK Lies: Breaking Down WAF Soft-404 Deception in Real-Wo
Sensitive paths on a subdomain returned HTTP 200 with empty bodies, which initially looked like critical exposure but was actually a WAF soft-404 deception. After recognising this, the author found backend error leakage, internal hostnames in a CSP header, and probable origin servers on neighbouring IPs.
Published on medium.com
In modern bug bounty programs, the most dangerous mistakes no longer come from missing vulnerabilities — they come from misinterpreting the infrastructure protecting them.
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 was configured to return a uniform 200 OK with an empty body for any path it did not recognise, hiding real 404s and creating false positives.
Impact
No data was exposed by the soft-404 itself; the secondary issues could leak internal architecture and backend state and help map the origin surface, though the text does not show any direct compromise.
What the attacker needed
None
How it was found
- Request sensitive paths such as environment, git config, API user list and Swagger docs on the subdomain.
- Observe that each returns 200 OK with zero content length and the QRATOR server header.
- Compare response size and body across valid, sensitive and random paths to see they are identical.
- Conclude the responses are a WAF soft-404 and retract the exposure finding.
- Force backend interactions with legitimate resources to trigger a 502 error page that leaks an internal backend identifier.
- Inspect the Content-Security-Policy header for internal hostnames and probe neighbouring IPs, which return 401.
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 server normally answers 200 OK when a page exists and 404 when it does not. Here a protective layer in front of the site (a WAF) answered 200 OK even for files that do not exist, so a scanner would wrongly think secret files were exposed. The author checked the actual response bodies, saw they were empty, and realised it was a trick.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.