Skip to content
Cache bugs Write-up Beginner

How I Found a Simple but Impactful Web Cache Deception (WCD) Vuln

A dynamic endpoint containing personal user details lacked cache-control headers, so appending a fake static file extension caused the CDN to cache the response. An unauthenticated attacker could then retrieve that cached sensitive data.

Yusuf Follow

Published on medium.com

I’m Yusuf. Today, I’ll be sharing a short write-up of one of my findings, purely for educational purposes, with endpoint names replaced by dummy values in line with Responsible Disclosure.

Yusuf, on medium.com

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

Root cause

Likely the endpoint lacked Cache-Control prevention headers and the cache was configured to treat URLs with static-looking extensions as cacheable, so user-specific content was stored.

Impact

An attacker could retrieve sensitive user-specific data without authentication by accessing the cached version of the page.

What the attacker needed

Victim visits a crafted URL; cache stores the response; attacker knows the URL

The fix

The endpoint should be configured to send Cache-Control: no-cache, must-revalidate (or similar) and the cache should not treat dynamic endpoints as static resources.

How it was found

  1. Observe the sensitive endpoint and note the absence of cache-control headers.
  2. Append a fake static file extension to the endpoint URL.
  3. Send the request and confirm the response is cached (X-Cache: HIT).
  4. Open an incognito window without logging in and visit the same URL.
  5. Observe that the cached sensitive data is still served.

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.

Websites often use a cache to store copies of pages so they load faster. If a page with private information is mistakenly stored in that cache, anyone who knows the address can see the copy without logging in. This report shows that adding a fake file ending made the cache treat a private page as a public 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Web cache poisoning and deception

The lesson behind this report.

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.