HTTP Request Smuggling CL.TE
The author found a CL.TE HTTP request smuggling vulnerability on a Synack target, allowing them to bypass front-end controls and leak front-end headers. They also attempted to access AWS metadata but were blocked by a 403 response.
Not all bounties are a success, this is a story about how I tried harder when failing. (As full time Security Consultant I spent my own time on this which was about 1 week and I don’t regret the learning experience) To make this process easier I’d recommend using the Burp plugin “HTTP Request Smuggler”.
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 front-end and back-end servers interpret request boundaries differently: the front-end uses the Content-Length header while the back-end uses the Transfer-Encoding header, leading to request smuggling.
Impact
The attacker could bypass front-end security controls and leak front-end headers, but attempts to access AWS metadata were blocked by a 403 response, and the impact was lower than usual.
What the attacker needed
Front-end and back-end servers with different request…; ability to send crafted HTTP requests
The fix
The fix is to disable reuse of back-end connections, use HTTP/2 for back-end connections, or use the same web server software for front-end and back-end.
How it was found
- Send a request that triggers a 404 response to confirm smuggling.
- Send a normal request to see a 200 response for further confirmation.
- Add localhost to the Host header, which results in a 403 Forbidden.
- Attempt to access AWS metadata by changing the Host header to [redacted], but receive a 403.
- Modify the smuggled request so that the second request's headers are appended to the smuggled request body to avoid Host header conflicts.
- Leak front-end headers by finding a POST request that reflects a parameter, shuffling parameters so the reflected one is last, and smuggling the request followed by a normal request.
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.
HTTP request smuggling is a technique where an attacker tricks a front-end server (like a load balancer) and a back-end server into disagreeing about where one HTTP request ends and the next begins. This can let the attacker sneak in a second request that the front-end doesn't see, potentially bypassing security controls or accessing internal resources.
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.