Skip to content
Smuggling / CRLF Write-up Advanced

HTTP Desync Attack (Request Smuggling) - Mass Account Takeover

The front-end server used the Content-Length header while the back-end server used Transfer-Encoding, causing request smuggling. An attacker could log other users' HTTP requests, including cookies and tokens, by storing them in a form field.

medium.com

Published on medium.com

I had found an HTTP Desync (Request Smuggling) vulnerability affecting one of the cryptocurrency payment system (https://my.vulnerable.com) along with 121 other hosts utilizing the Distil Bot protection.

bugbounty_learners, on medium.com

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 interpreted conflicting Content-Length and Transfer-Encoding headers differently, allowing a smuggled request to prefix the next user's request.

Impact

An attacker could log other users' HTTP requests, including cookies and tokens, without any victim interaction, potentially leading to account takeover; the attack also affected 121 other websites behind the same infrastructure.

What the attacker needed

Attacker can send requests to the target; victim makes requests to the target; no user interaction required

How it was found

  1. As a victim, visit the site and intercept a GET request, then send it to Burp Repeater to confirm a normal 200 OK response.
  2. As an attacker from a different IP, craft an ambiguous request with both Content-Length and Transfer-Encoding headers and keep it in Burp Repeater.
  3. On the victim's machine, send the request to Burp Intruder and replay it 200-300 times.
  4. Simultaneously, repeatedly send the attacker's request from Repeater until the Intruder finishes.
  5. Observe unusual 405 Not Allowed responses containing 'hopefully405' in the victim's Intruder results.
  6. To log requests, send a smuggled POST request with a form field as the last parameter, then visit the Legal Entity page to see other users' requests saved as the field value.

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 request passes through a front-end proxy to a back-end server, both must agree on where the request ends. Here they disagreed: one used the Content-Length header, the other used Transfer-Encoding. This mismatch let an attacker sneak a second request that the back-end would treat as part of the next user's request, so the next user's data got saved into the attacker's form field.

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.

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.