HTTP Request Smuggling + IDOR
The front-end and back-end disagreed on how to parse HTTP request boundaries, allowing a crafted request to smuggle a second request that modified the next user's request. By combining this with an IDOR endpoint that added a card using only a user ID, an attacker could redirect a victim's card-adding request to the attacker's own account.
Published on hipotermia.pw
Everything is redacted and highly modified to not disclose this bug bounty program's information.
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 used the Content-Length header while the back-end used Transfer-Encoding: chunked, so the two disagreed on request boundaries and leftover bytes were prepended to the next request.
Impact
An attacker could redirect a victim's card-adding request to the attacker's own account, potentially capturing the victim's card details; the text notes that attempts to redirect the Host header did not work, suggesting some internal header filtering.
What the attacker needed
Front-end and back-end parse requests differently; victim sends a request that can be redirected; attacker knows a user ID for the IDOR endpoint
How it was found
- Send a crafted request with both Content-Length and Transfer-Encoding: chunked headers, where the chunked body ends early and the remainder is a second request.
- Observe that the back-end responds only up to the chunk terminator, leaving the smuggled request queued.
- Send a normal follow-up request and see it return the response for the smuggled path, confirming the desync.
- Find an IDOR endpoint that adds a card using only a user ID and no authentication.
- Smuggle a request that changes the path of the next request to the addCard endpoint with the attacker's user ID.
- When a victim sends an addCard request, it is redirected to the attacker's account.
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 server behind it must agree on where one HTTP request ends and the next begins. Here they disagreed, so an attacker could sneak a hidden request that got attached to the next visitor's request. The attacker used this to change where a victim's card-adding request was sent, so the card went to the attacker's account instead.
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.