Alternative link
A CL.TE HTTP request smuggling vulnerability allowed an attacker to poison the back-end's request queue with a crafted request containing a reflected XSS payload, so that subsequent users' requests would receive the XSS response. This escalated a reflected XSS to a site-wide, no-user-interaction XSS.
hazanasec.github.io
Published on hazanasec.github.io
As with the majority of HTTP Smuggling, it started with a smuggle probe from Burp’s HTTP Request Smuggler Extension:
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 front-end and back-end servers used different headers (Content-Length vs Transfer-Encoding) to determine request boundaries, creating a CL.TE desynchronisation.
Impact
An attacker could poison the back-end so that nearly every user visiting the site receives a response containing an XSS payload, potentially leading to site-wide script execution; the report notes this could be chained with CSRF or CORS misconfiguration.
What the attacker needed
CL.TE request smuggling vulnerability; reflected XSS endpoint; ability to send crafted HTTP requests
How it was found
- Send a request with both Content-Length and Transfer-Encoding: chunked headers, with a chunked body of length 0 followed by a smuggled request line.
- Observe that sending the request twice returns a 404 for the second request, confirming the smuggled request was processed.
- Craft a Turbo Intruder payload that prepends a smuggled request containing a reflected XSS payload to a normal request.
- Send the attack request followed by several victim requests to poison the back-end queue.
- Observe that one of the subsequent responses contains the smuggled XSS payload.
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.
HTTP request smuggling is when a front-end server and a back-end server disagree about where one HTTP request ends and the next begins. Here, the front-end used the Content-Length header while the back-end used Transfer-Encoding, so the attacker could sneak extra data that the back-end treated as the start of the next user's request. By putting an XSS payload in that extra data, the attacker made other users' browsers run the script.
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.