Skip to content
Smuggling / CRLF Write-up Advanced

$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.

T4nv1 Follow

Published on medium.com

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…

T4nv1, on medium.com

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

  1. Confirm the edge layer negotiates HTTP/2 with clients.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

More by T4nv1

View all

113 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Request smuggling and header injection

The lesson behind this report.

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.