Skip to content
Smuggling / CRLF Write-up Advanced

Regilero's blog; Mostly tech things about web stuff.

Apache Traffic Server (ATS) versions 6.0.0 to 6.2.2 and 7.0.0 to 7.1.3 had multiple HTTP request smuggling and cache poisoning issues. An attacker could craft malicious requests to split HTTP messages, potentially causing cache poisoning or bypassing security controls.

regilero.github.io

Published on regilero.github.io

This article will give a deep explanation of HTTP Smuggling issues present in CVE-2018-8004. Firstly because there's currently not much informations about it ("Undergoing Analysis" at the time of this writing on the previous link).

regilero, on regilero.github.io

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 root cause is that ATS did not properly validate or handle malformed HTTP requests, such as those with multiple Content-Length headers, NULL bytes, or oversized headers, and did not close connections after errors, allowing request splitting.

Impact

An attacker could perform HTTP request splitting, potentially leading to cache poisoning or bypassing security controls, though some attacks may be blocked by other proxies like HaProxy.

What the attacker needed

ATS versions 6.0.0-6.2.2 or 7.0.0-7.1.3; ability to send crafted HTTP requests; controlled test environment recommended

The fix

The issues were fixed in ATS versions 7.1.4 and 6.2.3 by closing the connection after a 400 error and validating Content-Length headers.

How it was found

  1. Set up a lab with ATS, Nginx, and HaProxy using Docker.
  2. Send a request with two Content-Length headers to ATS, which returns a 400 error and a 200 response, splitting the request.
  3. Send a request with a NULL byte in a header to ATS, causing premature end of query and splitting the pipeline.
  4. Send a request with a huge header (around 65536 characters) to ATS, triggering early end-of-query and splitting.

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 specially crafted request that different servers interpret differently, allowing them to sneak in a second request. In this case, Apache Traffic Server (a load balancer and cache) could be tricked into treating parts of a request as a separate request, which might poison the cache or bypass security filters.

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.