It Worked, Then It Didn’t, Then I Understood Why: A Bug Bounty
A private project's snapshot remained accessible unauthenticated because the CDN edge cache was not invalidated when the project's visibility changed from public to private. An attacker could keep the cached private data alive indefinitely by polling the endpoint, which reset the cache expiration timer.
Published on bugbountywizard.app
Hello seniors! I am Atharv Chawan, a cybersecurity enthusiast and bug bounty hunter.
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 application failed to send a cache-invalidation command to the CDN when a project's visibility changed from public to private, so the edge cache continued serving the previously public snapshot.
Impact
An unauthenticated attacker could view private project snapshots and could keep the cached data alive indefinitely by automated polling, even after the owner made the project private or deleted their account.
What the attacker needed
Project initially public; attacker knows the blockId; victim changes project to private
The fix
The application should invalidate the CDN cache for a snapshot whenever the project's visibility changes, so that private data is not served from the edge cache.
How it was found
- While the project was public, open an unauthenticated browser window and scrape the active blockId from the frontend DOM.
- Switch the project's privacy status to private in the owner's account.
- In the attacker window, query the snapshot proxy endpoint using the stolen blockId.
- Observe that the private project loads completely unauthenticated.
- After a delay, refresh the attacker window and see the exploit no longer works because the edge cache expired.
- Send consecutive GET requests to the snapshot endpoint and observe X-Cache headers indicating a server-side CDN cache.
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.
When a project was public, the CDN saved a copy of the page to serve it faster. Later, the owner made the project private, but the CDN kept serving the old saved copy to anyone who asked. This meant private data stayed visible to people who were not logged in.
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.