How to narrow recon giving me $$$$ Bounty
An API endpoint under the authentication path returned sensitive user information and API keys, and was vulnerable to web cache deception. An attacker could trick a victim into requesting a crafted path so the response was cached and then retrieve that cached data, exposing user details and API keys.
Published on mmdz.ninja
In this writeup, I explain how to get 4 digit bounty with web applications recon and I hope this article will be helpful for you.
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 cache treated a crafted path as a static, cacheable resource while the application still served authenticated API data for it, so private responses were stored and shared.
Impact
An attacker could obtain other users' information and API keys through the cache, and the program rated it critical.
What the attacker needed
A free account on the sandbox; victim loads a crafted URL; a caching layer in front of the API
How it was found
- Sign up for an account on the sandbox domain and browse the application.
- Review the proxy history and note that requests are GraphQL POST calls.
- Observe that a CSRF token endpoint is requested periodically and is vulnerable to cache deception.
- Fuzz the authentication API path to find an endpoint returning sensitive information.
- Confirm that this endpoint is also vulnerable to cache deception and exposes user information and API keys.
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 cache deception tricks a caching layer into storing a private page as if it were a public file. The attacker gets a logged-in user to load a specially crafted URL, then fetches the same URL and reads the stored copy. Here the stored copy contained user details and API keys.
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.