Catching the users session
A custom server-side caching API allowed unauthenticated users to read and overwrite cached data for any user, keyed by a UUID. An attacker who obtains a valid UUID could view or alter another user's cached session data, including banking details.
medium.com
Published on medium.com
Free Article: https://medium.com/@maajix/catching-the-users-session-84278a4c1efe?source=friendslink&sk=337a7a24afd8405d7f2263cc0a44909b
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 missing access control checks on the caching API endpoints, combined with reliance on UUID unguessability instead of proper authorisation.
Impact
An attacker could read and overwrite cached data belonging to other users, potentially exposing sensitive information such as banking credentials, though obtaining valid UUIDs is limited by their randomness.
What the attacker needed
A valid UUID for the target cache item; no authentication required
The fix
The caching API should enforce proper access control so that only the authenticated owner of a cache item can read or modify it.
How it was found
- Set up an ACL matrix and use Auth Analyzer to replay requests with different user sessions.
- Notice a server-side caching endpoint that accepts JSON data and is keyed by a UUID.
- Test that an unauthenticated session can set and retrieve cache items using a valid UUID.
- Find an unauthenticated endpoint that returns different responses for valid versus invalid UUIDs, enabling brute-force.
- Modify the cached JSON payload and send it back to overwrite the cached data.
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.
The application stored user data in a server-side cache, identified by a random-looking ID. The server did not check who was making the request, so anyone who knew or guessed an ID could read or change that data. This is like leaving your diary in a public locker with a number lock that anyone can try.
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.