Breaking Through the Firewall: How I Bypassed a WAF and Found a C
The author claims that a web application firewall blocked common attacks but could be bypassed using encoding, parameter duplication, header spoofing, and case manipulation. They then state that POST requests to an admin login endpoint were not sanitised, allowing SQL injection and full admin access.
Published on infosecwriteups.com
It was 2 AM, and I was staring at my Burp Suite window, watching 403 Forbidden responses flood my screen. I had spent hours testing this bug bounty target, trying to break through its defenses.
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
Impact
An attacker could bypass the WAF and gain full administrative access to the application.
What the attacker needed
Target uses a WAF; admin login endpoint exists
How it was found
- Send a normal SQL injection payload and observe a 403 Forbidden response.
- Encode the payload and observe a 200 OK response.
- Duplicate a parameter to bypass the WAF and observe a 200 OK response.
- Spoof the User-Agent header to appear as Googlebot and observe a 200 OK response.
- Change the case of an XSS payload and observe a 200 OK response.
- Send a POST request with a SQL injection payload in the password field to the admin login endpoint and gain full admin access.
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 tries to block malicious requests. The author says they tricked the filter with simple changes like encoding characters or duplicating parameters, and then found that one part of the site did not check input at all, letting them log in as an administrator without a password.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.