Bypassing Cache Deception Armor using .avif extension file
Cloudflare's Cache Deception Armor could be bypassed by appending an .avif extension to a crafted URL, causing the edge cache to store normally non-cacheable sensitive content. An attacker could then retrieve that cached information, potentially leading to account takeover or stored XSS depending on what the origin exposed.
- Triaged in 8 days
- Fixed in 8 days
- Paid in 8 days
- Disclosed after 8 months
Summary by the program
Cloudflare Deception Armor could be bypassed by using .avif extension making Cache deception attack possible on vulnerable origin servers.
Cloudflare Cache Deception Armor uses a Page rule to protect Cloudflare Cache against caching possibly sensitive information.
This attack could be performed by tricking a user into clicking a crafted URL (using "path confusion techniques") ending with an .avif extension which makes Cloudflare edge cache the returned (normally non-cachable) content. An attacker could then retrieve this cached information from Cloudflare's edge.
The page rule was improved to better handle .avif formats and the presented bypass is no longer possible.
Summary by the researcher
I was able to achieve Cache Deception and/ Poisoning to Cloudflare Customers who were using Cache Deception Armor Software using .avif extension file
This required User interaction, hence the severity set to Medium
Severity varies, it depends on what the customer was exposing in their responses
e.g.
If the customer had user's session within the response, Account Takeover was possible
If I was able to find a XSS on the customer website, Stored XSS was possible
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
Root cause
Likely the Cache Deception Armor page rule did not correctly recognise the .avif extension as a non-cacheable file type, so it allowed caching of responses that should have been excluded.
Impact
An attacker could retrieve cached sensitive information, potentially leading to account takeover if session data was exposed or stored XSS if an XSS existed on the customer site; the attack required user interaction and severity varied by exposed content.
What the attacker needed
Cloudflare Cache Deception Armor enabled; victim clicks a crafted link; origin returns sensitive content
How it was found
- Craft a URL using path confusion techniques that ends with an .avif extension.
- Trick a user into clicking the crafted URL.
- Cloudflare edge caches the returned normally non-cachable content.
- Retrieve the cached information from Cloudflare's edge.
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 cache is a temporary storage that speeds up websites by keeping copies of pages. Cache deception tricks the cache into storing a private page (like your account details) by making it look like a harmless file, so an attacker can later fetch that copy. Here, adding a .avif image extension fooled Cloudflare's protection into caching sensitive responses.
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.