Skip to content
Smuggling / CRLF Write-up Advanced

Practical HTTP Header Smuggling: Sneaking Past Reverse Proxies to Attack AWS and Beyond

The article shows that by appending characters after a space in an HTTP header name, a front-end server may ignore the header while a back-end server still parses it, allowing header smuggling. This was used to bypass IP restrictions in AWS API Gateway, poison caches via CloudFront, and detect CL.CL request smuggling.

Daniel Thatcher Follow

Published on intruder.io

Modern web applications typically rely on chains of multiple servers, which forward HTTP requests to one another. The attack surface created by this forwarding is increasingly receiving more attention, including the recent popularisation of cache poisoningand request smugglingvulnerabilities.

Daniel Thatcher (@_danielthatcher), on intruder.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 front-end and back-end servers in a chain parse HTTP headers differently, so a mutated header name (e.g., with a space and extra characters) is ignored by the front-end but still recognised by the back-end.

Impact

Header smuggling could allow bypassing IP restrictions in AWS API Gateway, poisoning caches (e.g., via CloudFront) to control victim API content, and enabling CL.CL request smuggling; however, some defences like Cloudflare not forwarding headers with spaces may limit the attacks.

What the attacker needed

A chain of servers with differing header parsing; ability to send crafted HTTP requests; for cache poisoning: a cache in front of API Gateway

The fix

Front-end servers should avoid forwarding weirdly formatted headers, and systems should be scanned with the released Param Miner extension to identify vulnerabilities.

How it was found

  1. Send a request with a valid Content-Length header and observe the response.
  2. Send a request with an invalid Content-Length value (e.g., 'z') and observe a different response, indicating a server parses the header.
  3. Send a request with a mutated header name (e.g., 'Content-Length abcd') with a valid value and observe the same response as the regular valid header, showing the mutation does not break the request.
  4. Send a request with the mutated header and an invalid value and observe a different error response, indicating a different server parses the mutated header.
  5. Compare the error responses to confirm that the front-end ignores the mutated header while the back-end parses it, confirming header smuggling.

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 you visit a website, your request often passes through several computers (servers) before reaching the application. Each server may read the request's headers (small labels like 'Content-Length' that describe the request) differently. This article shows that by slightly changing a header's name, you can make one server ignore it while another still uses it, which can let you sneak past security checks or poison what other users see.

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.

More by Daniel Thatcher

View all

5 more disclosed reports, best first.

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.