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.
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
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
- Create two accounts on the target site.
- Browse the profile page with Burp running to capture requests.
- Find the profile API request in Burp's HTTP history.
- Change the timestamp parameter value and send the request twice to confirm caching.
- Open the resulting link in an incognito window and see the cached profile data.
- 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.