My First Paid Bug Bounty: A $250 Reward For Session Management Vu
The application did not invalidate session cookies on logout, so an attacker who obtained an old cookie could reuse it to regain access to a user's account without re-authentication. The reporter demonstrated this by exporting cookies, logging out, and re-importing them to become logged in again.
Published on medium.com
Bug bounty hunting has always been a passion of mine, but this moment is truly special — my first paid bug bounty! Recently, I discovered and reported a Session Management Vulnerability classified under CWE-613: Insufficient Session Expiration.
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 server did not destroy or revoke the session on logout, so the same session cookie remained valid.
Impact
An attacker who obtains a user's old session cookie could regain access to that user's account without needing credentials, though the report does not describe how such a cookie would be obtained.
What the attacker needed
A free account; access to the victim's session cookie; a browser cookie editor extension
How it was found
- Log into the application using any authentication method.
- Export the session cookies using a browser cookie editor extension.
- Log out of the application.
- Import the previously exported cookies back into the browser.
- Refresh the page or navigate to a protected resource.
- Observe that the user is logged back in without re-authentication.
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 you log in, the site gives your browser a small piece of data called a session cookie so it remembers you. Logging out should make that cookie useless. Here, the old cookie still worked, so anyone who copied it could get back into the account even after the real user logged out.
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.