Browser-Powered Desync Attacks: A New Frontier in HTTP Request Smuggling
The report describes how a browser can be used to trigger HTTP request smuggling attacks, including a new class called client-side desync, by exploiting servers that ignore the Content-Length header. An attacker could poison a victim's browser connection pool to hijack their account or access internal networks.
Published on portswigger.net
The recent rise of HTTP Request Smuggling has seen a flood of critical findings enabling near-complete compromise of numerous major websites. However, the threat has been confined to attacker-accessible systems with a reverse proxy front-end... until now.
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
Likely the back-end server ignores the Content-Length header on certain requests, causing it to treat the request body as the start of the next request.
Impact
An attacker could poison a victim's browser connection pool to hijack their account or access internal networks, though the attack is limited to HTTP/1.1 connections and may be blocked by proxies that do not support HTTP/2.
What the attacker needed
Victim visits attacker's website; target uses HTTP/1.1; server ignores Content-Length
The fix
Servers should correctly handle the Content-Length header and not ignore it, and vendors should patch desync vulnerabilities promptly.
How it was found
- Identify a request where the server ignores the Content-Length header.
- Confirm the desync by sending two requests over the same connection and observing the second response.
- Replicate the attack in a browser using fetch() from an attacker-controlled site.
- Use the poisoned connection to trigger a harmful response, such as account takeover.
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 browser talks to a website, it reuses the same connection for several requests. If the website's server mishandles how it reads the length of a request, an attacker can sneak in extra data that the server treats as the start of the next request. This can let the attacker take over the victim's account or reach internal systems.
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.