Poisoning the Pipeline: How HTTP Request Smuggling Let Me Capture Other Users’ Sessions ($11,000…
A CL.TE HTTP request smuggling flaw existed because the front-end proxy honoured Content-Length while the back-end Node.js server honoured Transfer-Encoding. An attacker could poison the back-end connection so that a smuggled request prefix was prepended to the next user's request, causing that user's headers and cookies to be echoed back in a search response and allowing session hijack.
There’s a category of web vulnerability that operates at a layer most hunters never look at — not application logic, not input validation, not authentication flows, but the raw mechanics of how an HTTP request gets parsed when it passes through multiple servers in sequence. HTTP request smuggling lives in that layer…
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
The front-end proxy (an older HAProxy) prioritised Content-Length when both Content-Length and Transfer-Encoding were present, while the back-end Node.js server followed the RFC and prioritised Transfer-Encoding, creating a parsing desynchronisation.
Impact
An attacker could passively capture other users' session cookies and Bearer tokens and replay them for full account takeover, and the front-end WAF did not block the attack because it only inspected requests as the front-end parsed them.
What the attacker needed
Two accounts (attacker and victim); victim makes a normal page request; front-end and back-end disagree on CL/TE
The fix
The front-end proxy was updated and configured to drop requests containing both Content-Length and Transfer-Encoding, HTTP/2 was enforced between proxy and back-end, and active sessions were invalidated.
How it was found
- Send a request with both Content-Length and Transfer-Encoding: chunked where the body ends with an invalid chunk size, and observe a multi-second timeout instead of an immediate 400.
- Send a smuggling request whose body contains a complete chunk followed by a partial GET to a non-existent path, then immediately send a normal follow-up request.
- Observe that the follow-up request returns a 404 for the smuggled path, confirming desynchronisation.
- Smuggle a partial POST to the search endpoint with a Content-Length larger than the supplied body, so the back-end waits for more data.
- Have a second account make a normal page request while the smuggled request sits in the pipeline.
- Read the attacker session's search response, which contains the victim's request headers including Cookie and Authorization, then replay the session cookie to access the victim account.
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.
When a web request passes through a proxy and then a back-end server, both must agree on where the request ends. Here they disagreed because of two length headers, so a hidden fragment of the attacker's request was left in the connection and merged with the next user's request. That let the attacker read the next user's cookies and take over their session.
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.