hn.today

HTTP/1.1 must die: the desync endgame (2025)

portswigger.net3 points1 comments
Screenshot of HTTP/1.1 must die: the desync endgame (2025)

HTTP request smuggling exploits disagreement between servers about where one HTTP request ends and the next begins. HTTP/1.1 makes those boundaries ambiguous: messages are concatenated on a connection, and their lengths can be interpreted through Content-Length, Transfer-Encoding, implicit-zero rules, or HTTP/2 framing converted into HTTP/1.1. In proxy chains, a small parser discrepancy can desynchronize shared connections, letting an attacker prepend malicious content to other users’ requests and potentially take over a site. The paper argues that years of stricter parsing and familiar detection methods have made attacks harder to spot, not eliminated the underlying weakness. HTTP/2 helps only when it is used throughout the connection; downgrading it to HTTP/1.1 can preserve or deepen the risk.

The research presents new desync techniques and case studies involving major infrastructure providers. One Cloudflare flaw, discovered while investigating an attack on a Heroku-hosted site, could have enabled takeover of more than 24 million websites; Cloudflare patched it within hours. The work also reports critical vulnerabilities involving Akamai and Netlify, and describes techniques using differing parser behavior and the HTTP Expect mechanism. An open-source toolkit helps systematically detect these discrepancies and target-specific weaknesses; the methods generated more than $200,000 in bug bounties over two weeks. The central conclusion is that patching individual implementations cannot reliably secure a protocol whose design makes boundary ambiguity routine. The proposed endgame is to retire upstream HTTP/1.1 in favor of HTTP/2 or later, while treating continued HTTP/1.1 use as a risk requiring strict defenses.

Read on portswigger.net1 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.