Skip to content
Info disclosure Write-up Intermediate

I Almost Missed This WAF Bypass Here is What I Learned

The author probed a Cloudflare-protected host for a .env file using path obfuscation and fuzzing, but did not retrieve it. They instead found a misconfigured debug endpoint that exposed stack traces and received a $750 bounty.

medium.com

Published on medium.com

A few weeks back, I was sipping on some lukewarm tea in my tiny apartment, half-awake and half-distracted, when Nuclei spat out something strange —

Rahimuddin Alrashel, 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 a debug endpoint left enabled in production, which returned stack traces to unauthenticated users.

Impact

The exposed stack traces could reveal internal details useful for further attacks, though the .env file itself was not obtained.

What the attacker needed

Permission to test (bug bounty or pentest); target behind Cloudflare

How it was found

  1. Detect the WAF in front of the target.
  2. Try path obfuscation variants against the .env path.
  3. Fuzz common sensitive paths with encoding.
  4. Test SQL injection tamper scripts to observe WAF filtering.
  5. Use Burp Intruder and IP rotation to vary requests.
  6. Find a debug endpoint exposing stack traces.

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 .env file often holds secret keys and passwords, so finding one exposed is serious. The author tried many tricks to get past Cloudflare, a web firewall that blocks suspicious requests, but did not get the file. They did find a debug page that leaked error details, which was still a real bug worth a reward.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.