Skip to content
Smuggling / CRLF Write-up Advanced

Smuggling Through the Front Door... Achieving Global Redirect Poisoning at the Edge

Malformed HTTP/1.x requests with ambiguous Content-Length headers desynchronised request processing at Azure Front Door, letting an attacker influence the redirect returned to a different, clean client. A victim visiting the correct hostname could be sent to attacker-controlled Azure Front Door infrastructure before reaching the intended application.

d3d Follow

Published on malicious.group

Turning a malformed Content-Length into cross-user traffic redirection through Azure Front Door,and discovering that the bug was a platform class, not a single parser trick.

d3d, on malicious.group

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 inconsistent normalisation of ambiguous request boundaries (such as a Content-Length header with extra whitespace) across the parsers in the Azure Front Door chain, so a smuggled absolute URL influenced redirect construction for other clients.

Impact

An unauthenticated attacker could cause a clean client on another network to receive an attacker-selected redirect at the HTTP-to-HTTPS boundary, potentially enabling phishing from the trusted hostname, credential collection, traffic diversion before application controls, or denial of service; the text notes results varied by customer configuration and were not universal.

What the attacker needed

No account needed on victim site; attacker-owned Azure Front Door endpoint; victim makes a normal request; affected Front Door configuration

The fix

Microsoft fixed the reported behaviour, but the author argues the durable fix is to make every hop agree on request boundaries and never build redirects from data that crossed an ambiguous parser boundary.

How it was found

  1. Send a normal request to the Front Door-backed host and note the expected HTTP-to-HTTPS redirect.
  2. Send a malformed POST whose body contains a second request with an absolute URL, keeping the bytes unmodified in the proxy tool.
  3. Send a clean control GET alongside the malformed requests over separate connections.
  4. Observe the clean request's Location header change to the smuggled destination.
  5. Repeat the clean request from a remote VPS on another network while sending the malformed group, and capture the poisoned redirect there.
  6. Replace the destination with an attacker-owned Azure Front Door endpoint to show cross-tenant routing.

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 web server reads a request, it has to decide where that request ends and the next one begins. If two systems in the chain disagree about that boundary, one request can be hidden inside another, a trick called request smuggling. Here the hidden request carried a web address, and the edge service used it when building a redirect for an unrelated visitor, so that visitor was sent somewhere the attacker chose.

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 d3d

View all

1 more disclosed report, 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.