$16,500 for a Protocol Downgrade Nobody Double-Checked: HTTP/2 Desync Smuggling
The edge layer downgraded HTTP/2 requests to HTTP/1.1 without stripping the transfer-encoding header, allowing a client to smuggle a Content-Length/Transfer-Encoding ambiguity into the reconstructed request. An attacker could poison the shared backend connection's response queue, potentially exposing other users' session data or account contents.
I’d found request smuggling before, built on the classic Content-Length versus Transfer-Encoding disagreement between a front-end proxy and a back-end server. This bug lives in the same general neighborhood — two systems disagreeing about where one request ends and the next begins — but the mechanism is different…
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 able to send HTTP/2 requests could poison the shared downgraded connection's response queue, potentially exposing other users' session data or account contents depending on what the next request on the affected connection happens to be.
What the attacker needed
Ability to send HTTP/2 requests to the edge; edge downgrades HTTP/2 to HTTP/1.1; backend reuses connections
The fix
The downgrade layer was patched to strip the offending header, and the team began evaluating native HTTP/2 support on the backend to eliminate the downgrade boundary.
How it was found
- Confirm the edge layer negotiates HTTP/2 with clients.
- Send an HTTP/2 request with a malformed transfer-encoding header field and observe a different backend response, indicating a downgrade to HTTP/1.1.
- Send an HTTP/2 request with both content-length and transfer-encoding: chunked header fields and observe a timing delay consistent with CL.TE desync.
- Craft an HTTP/2 request that smuggles a complete HTTP/1.1 request in the body, using a chunked terminator followed by the smuggled request.
- Use two browser sessions under your own control to confirm that the second session receives the response intended for the smuggled request, demonstrating response-queue poisoning.
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 website speaks a newer version of the web protocol (HTTP/2) to visitors but an older version (HTTP/1.1) to its internal servers, it must translate requests between them. This report shows that if the translation keeps a header that only makes sense in the older version, an attacker can sneak a second hidden request into the connection. That hidden request can then be answered to the next visitor who uses the same connection, leaking their data.
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.