Skip to content
Smuggling / CRLF Write-up Advanced

Client Side Desync Attack (CL.0 Request Smuggling) — Bounty of $150

The web server mishandled the Content-Length header on POST requests, allowing a client-side desync attack. An attacker could smuggle a second request to access the admin dashboard, which was otherwise forbidden.

Bodhendu Panda Follow

Published on bpandasec.medium.com

Bounty$150 View original

I was hunting for a program, and let’s call the subdomain abc.example.com. I have observed that the website has two ports open (80,443).

Bodhendu Panda, on bpandasec.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 server did not correctly process the Content-Length header of POST requests, causing request boundaries to be misinterpreted.

Impact

An unauthenticated attacker could poison other users' requests, potentially leading to account takeover, and in this case could access the admin dashboard.

What the attacker needed

Target uses HTTP/1.1 on port 80; attacker can send crafted requests

The fix

The server should be patched to correctly process POST requests or close the connection after handling them, or HTTP/2 should be enabled.

How it was found

  1. Observe that the target has ports 80 and 443 open.
  2. On port 80, downgrade HTTP/2 to HTTP/1.1.
  3. Turn off automatic Content-Length updating in Burp Repeater settings.
  4. Change the connection from closed to keep-alive.
  5. Add a second request to the repeater to perform request smuggling.
  6. Send both requests in a group to access the admin dashboard via the smuggled request.

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 browser talks to a website, it sends requests one after another on the same connection. If the server misreads how long a request is, it can get confused and treat part of one request as the start of the next. Here, the server did not handle the length correctly, so the attacker could sneak in an extra request that reached a protected admin page.

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.