Skip to content
Smuggling / CRLF Write-up Advanced

HTTP REQUEST SMUGGLING TO BYPASS FRONT-END SCURITY CONTROL IN TE

The report describes a CTF challenge where the front-end and back-end servers disagreed on how to parse HTTP request boundaries (TE.CL). By crafting a request that the front-end forwards whole but the back-end truncates, the attacker could smuggle a second request to the admin panel and access it without authentication.

Arunoday Tiwari Follow

Published on medium.com

In a recent CTF I was given a challenge where i was supposed to delete a user by accessing admin panel. The configuration was TE.CL(front end understood transfer encoding and backend understood content length).

Arunoday Tiwari, 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 server used the Transfer-Encoding header to determine request length while the back-end used Content-Length, so a crafted body was split differently by each.

Impact

An attacker could bypass front-end authentication controls and reach the admin panel, then delete a user; the text does not describe any defence that limited the attack.

What the attacker needed

Front-end and back-end parse request length differently; ability to send HTTP requests to the site

How it was found

  1. Craft a request whose body contains a chunked-encoded smuggled request to the admin endpoint.
  2. Set the first request's Content-Length so the back-end treats only the chunk size as the body.
  3. Send the request twice so the smuggled request is processed on the second attempt.
  4. View the second response in the browser to confirm admin access.
  5. Use the admin panel to delete the target user.

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 or load balancer, two servers read the same HTTP request. If they disagree about where one request ends and the next begins, an attacker can hide a second request inside the first. This is called request smuggling, and here it let the attacker reach an admin page that should require a login.

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.