Skip to content
Smuggling / CRLF Write-up Advanced

Smuggling Through the Front Door... Achieving 0-Click XSS with Cache Poisoning

A request desynchronization flaw in Azure Front Door allowed an attacker to smuggle a Host header that was reflected as HTML in the platform's 400 error page. Because the poisoned error response could be served to other users' clean requests, this became a zero-click cross-user XSS, and it survived the first fix and also worked on HTTP/2-facing targets.

d3d Follow

Published on malicious.group

Turning Azure Front Door's own error pages into a cross-user, zero-click XSS primitive through request desynchronization and poisoned response delivery,including on HTTP/2-facing targets after the first fix.

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

Impact

A victim making a clean request could receive a poisoned error page that executed attacker JavaScript in the affected origin, enabling credential phishing, session or token theft where accessible, and account takeover when chained with application-specific session handling; the issue affected many Azure Front Door-backed properties and also worked on HTTP/2-facing targets.

What the attacker needed

Target fronted by Azure Front Door; ability to send malformed HTTP requests; victim makes a clean request to the host; poisoned error page is served to victim

The fix

Microsoft fixed the issue and the researcher could no longer reproduce it; the report recommends normalising malformed length headers at the edge, never reflecting raw Host into HTML error templates, not caching generated error pages in a way that lets one client's desync poison another's response…

How it was found

  1. Send a malformed request to an Azure Front Door hostname, using a non-standard Content_Length header and an embedded second request with a crafted Host value.
  2. Observe that the first response looks normal, but sending the request again produces a 400 error page containing the injected Host as HTML.
  3. Run a separate clean client loop against the same host while sending several malformed requests from the attacker machine.
  4. Confirm the clean client receives the poisoned 400 page and that a browser executes the script in the victim origin.
  5. Repeat the same approach against HTTP/2-facing targets, where the request still carried Connection and Content-Length headers plus an embedded HTTP/1.1 request.

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 and the systems in front of it disagree about where one request ends and the next begins, an attacker can sneak extra data into the stream. Here the smuggled data was a fake hostname that Azure's own error page inserted into HTML without proper encoding. Because that poisoned error page could be cached and shown to other visitors, their browsers ran the attacker's script on the site's real domain without them clicking anything.

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.