Request encoding to bypass web application firewalls
The author describes a technique for bypassing cloud-based web application firewalls by encoding HTTP requests in ways that the WAF and the backend web server interpret differently. Almost all cloud WAFs tested at the time could be bypassed this way, allowing malicious requests to reach the application.
soroush.me
Published on soroush.me
I “think” I have discovered a “new” technique in bypassing external web application firewalls using request encoding. The idea is very simple but I had not seen this before to be used to bypass any protection mechanisms.
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 parser differential: the WAF and the backend web server decode or interpret the same HTTP request differently, so the WAF inspects a benign-looking form while the server processes the malicious one.
What the attacker needed
A target behind a cloud WAF
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 sits in front of a website and tries to block malicious requests. This post says that if you encode a request in an unusual way, the WAF may read it differently from the web server behind it, so the filter misses the attack while the server still understands and acts on it.
What is Smuggling / CRLF?
A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.