Skip to content
Smuggling / CRLF Write-up Advanced

HTTP/1.1 must die: the desync endgame

HTTP/1.1 request boundaries are ambiguous, allowing parser discrepancies between front-end and back-end servers to cause desync attacks. An attacker could poison caches or hijack other users' requests, potentially taking over entire websites.

portswigger.net

Published on portswigger.net

Upstream HTTP/1.1 is inherently insecure and regularly exposes millions of websites to hostile takeover. Six years of attempted mitigations have hidden the issue, but failed to fix it.

The author, on portswigger.net

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

HTTP/1.1 has no unambiguous delimiter between requests and multiple ways to specify length, so any parser discrepancy in a proxy chain causes desync.

Impact

The text says this could expose millions of websites to hostile takeover.

What the attacker needed

A proxy chain with a parser discrepancy; HTTP/1.1 used upstream

The fix

The text argues mitigations have hidden but not fixed the issue, and the real fix is to stop using HTTP/1.1 upstream.

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 sits behind a proxy, the proxy and the real server must agree on where one HTTP request ends and the next begins. HTTP/1.1 lets you state a request's length in more than one way, so if the two systems disagree, an attacker can slip extra data in and have it treated as the start of someone else's request. That lets them redirect or hijack other visitors.

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.

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.