Skip to content
Smuggling / CRLF Write-up Advanced

Account takeover via HTTP Request Smuggling

The system was vulnerable to HTTP request smuggling (TE.CL), allowing an attacker to poison the next request. By chaining an internal header disclosure and an open redirect via Host header poisoning, the attacker could redirect a victim to a malicious site and steal their session cookie, leading to account takeover.

hipotermia Follow

Published on hipotermia.pw

This is my second write-up about detecting and exploiting HTTP Request Smuggling by chaining different bugs with it to get critical vulnerabilities, you can find my first write-up here: HTTP Request Smuggling + IDOR.

hipotermia (@_hipotermia_), on hipotermia.pw

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 disagreed on how to parse the request body due to conflicting Content-Length and Transfer-Encoding headers, and the application also had an open redirect via Host header and reflected internal headers.

Impact

An attacker could steal a victim's session cookie and take over their account, though the attack required the victim to make a request after the payload and the attacker had to wait for an authenticated user.

What the attacker needed

Victim makes a request after the payload; attacker can send requests to the server; victim is authenticated

How it was found

  1. Send a request with both Content-Length and Transfer-Encoding headers to test for TE.CL smuggling.
  2. Observe that the back-end processes only part of the request and the remainder is prepended to the next request.
  3. Craft a smuggled request to the login endpoint with the onerror parameter at the end to reflect the next request's headers.
  4. Use Host header poisoning to cause a redirect to an attacker-controlled domain.
  5. Combine both to redirect a victim to the attacker's site and capture their session cookie from the request headers.

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 a technique where an attacker sends a request that is interpreted differently by two servers (like a front-end proxy and a back-end server). This can cause the back-end to treat part of the attacker's request as the start of the next user's request. In this case, the attacker used that to redirect a victim to a malicious site and steal their session cookie, which is like a temporary password that keeps them logged in.

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.

More by hipotermia

View all

1 more disclosed report, best first.

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.