Skip to content
Cache bugs Write-up Intermediate

How I found Cache Deception in a private bug bounty program.

A profile API endpoint returned the logged-in user's personal data and was cached by the CDN based on a query parameter, so a crafted link could store one user's data under a URL an attacker controls. The attacker could then load that URL and read the victim's information before the cache expired.

mos693570 Follow

Published on medium.com

5- if i change value of timestamp to any value such that https://target.com/web-api/v1/getuser?timestamp=111111 ,and send this link to victim , this timestamp will be attached to victim account , and i can show Pll data by this value

Mo Salah, 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 caching layer treated the API response as cacheable and keyed it on a user-supplied query parameter, without marking personalised responses as private.

Impact

An attacker could read a victim's profile data from the cache, but the victim had to open the link and the page had to be refreshed, and the data was only readable before the cache expired.

What the attacker needed

Two accounts on the target; victim opens the crafted link; victim's page refreshes; attacker loads link before cache expires

How it was found

  1. Create two accounts on the target site.
  2. Browse the profile page with Burp running to capture requests.
  3. Find the profile API request in Burp's HTTP history.
  4. Change the timestamp parameter value and send the request twice to confirm caching.
  5. Open the resulting link in an incognito window and see the cached profile data.
  6. Send the crafted link to the victim and load it before the cache expires.

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.

Web caches store copies of responses to make sites faster. If a page with private data is stored under a URL that anyone can request, another person can fetch that stored copy and see data that was not meant for them. This is called web cache deception.

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.

More by mos693570

View all

1 more disclosed report, best first.

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.