I Didn’t Break the App — I Let Its Logic Break Itself
The application issued a context identifier that marked a user as highly trusted, and the backend never re-checked authentication or expiry, so the identifier could be replayed after logout. The trusted response was also cached, allowing later users to inherit the trust and access dashboards, admin UI elements, and support impersonation tokens.
medium.com
Published on medium.com
Free Link🎈
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 backend trusted a client-supplied context identifier without re-validating the session or expiry, and cached the trusted response without varying by user.
What the attacker needed
A verified account to obtain a context ID; ability to send custom headers; cache must be present and misconfigured
How it was found
- Verify the account once to obtain a context ID.
- Log out and clear cookies and sessions.
- Reuse the context ID in a request header.
- Access the user dashboard without authentication.
- Prime the cache with high-trust headers.
- Observe admin UI elements and sensitive endpoints unlocked for subsequent users.
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 app gave the user a special pass (a context ID) after verifying their account. The server kept accepting that pass even after logout and even for other people because it was cached. This let anyone with the pass or cache access see private data and act as other users.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.