Cache Poisoning DoS on downloads.exodus.com
A crafted Authorization header sent to a file download subdomain caused the origin storage host to return a 403 error, which the CDN cached and served to all users. An attacker could poison the cache for a file, causing a denial of service for legitimate downloads.
- Triaged in 1 hour
- Fixed in 4 hours
- Paid in 4 hours
- Disclosed after 8 months
Summary by the researcher
For more details about the vulnerability, check out: https://youst.in/posts/cache-poisoning-at-scale/
The report
Summary:
Hello,
The subdomain downloads.exodus.com hosts all files meant to be downloaded by exodus users. A few of the file I found are:
https://downloads.exodus.com/releases/exodus-linux-x64-21.4.9.zip
https://downloads.exodus.com/releases/hashes-exodus-21.2.12.txt
https://downloads.exodus.com/releases/exodus-macos-21.3.29.dmg
The files are hosted on a azure storage host and are cached by Cloudflare. A crafted Authorization header causes a 403 on the azure storage host, which is cached by cloudflare and passed to all other users accessing the source.
Disclaimer:
No actual denial of service attack was caused troughout my testing. All the testing used cache-busters, meaning it did not affect the live website in any way.
Steps To Reproduce:
- Send the following request to poison the cache:
GET /releases/hashes-exodus-21.2.12.txt?cachebuster=hackerone HTTP/1.1
Host: downloads.exodus.com
Authorization: SharedKeyLite myaccount:ctzMq410TV3wS7upTBcunJTDLEJwMAZuFPfr0mrrA08=
Notice you will get a 403.
- The cache is now poisoned so sending a request without the header or visiting the poisoned url in a browser will show you the cached 403.
```http
GET /releases/hashes-exodus-21.2.12.txt?cachebuster=hackerone HTTP/1.1
Host: downloads.exodus.com
Will show the same 403 response.
Supporting Material/References:
Video PoC:
████████
Impact
The steps that were used to take down a reosurce including a random parameter as a cache-buster can also be reproduced on the actual files when their cache is about to expire. This will cause a DoS, restricting users from downloading or accessing the files hosted on downloads.exodus.com.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could cause a denial of service, preventing users from downloading files from the subdomain, but only when the cache is about to expire and no actual denial of service was caused during testing.
What the attacker needed
Ability to send HTTP requests; cache-buster parameter; timing near cache expiry
How it was found
- Send a request to a file URL with a cache-buster parameter and a crafted Authorization header.
- Observe that the response is a 403 error.
- Send the same request without the Authorization header or visit the URL in a browser.
- Observe that the cached 403 error is returned.
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 report has not been written yet. The Original tab links to the source.
A website uses a caching service to speed up file downloads. The attacker sent a special request that made the storage server return an error, and the cache stored that error. Then everyone else got the error instead of the file.
What is Cache bugs?
A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.