Skip to content
Smuggling / CRLF Write-up Intermediate

HTTP Request Smuggling: Basic CL.TE Vulnerability

The front-end and back-end servers disagree on how to parse HTTP request boundaries when both Content-Length and Transfer-Encoding headers are present. An attacker can smuggle a request that causes the back-end to treat the next request's method as GPOST, bypassing front-end controls.

medium.com

Published on medium.com

In the CL.TE (Content-Length / Transfer-Encoding) HTTP request smuggling scenario, the security issue arises when two servers in a request chain (a front-end and a back-end) interpret the boundaries of an HTTP request differently.

Bash Overflow, 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 ignores the Transfer-Encoding header and uses Content-Length, while the back-end honours Transfer-Encoding, causing a parsing mismatch.

Impact

An attacker could bypass front-end security controls and potentially hijack user sessions by stealing cookies or tokens, though the text only demonstrates a lab environment.

What the attacker needed

A lab environment with front-end and back-end servers; ability to send crafted HTTP/1 requests; Burp Suite or similar tool

How it was found

  1. Open the lab in Burp Suite and send the GET / request to Repeater.
  2. Change the request protocol from HTTP/2 to HTTP/1.
  3. Change the request method from GET to POST.
  4. Create a second request and group both requests to be sent in sequence over separate connections.
  5. In the first request, add Transfer-Encoding: chunked and Connection: keep-alive headers, and include an extra HTTP request in the body.
  6. Send the group and observe that the second request receives an unexpected response, then modify the smuggled body to make the back-end interpret GPOST as the next method.

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 uses two servers in a chain, they must agree on where one HTTP request ends and the next begins. If they disagree, an attacker can hide a second request inside the first, so the back-end server processes something the front-end never intended. This can let the attacker bypass security checks or interfere with other users' requests.

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.