How I Found Session Not Invalidated After Account Deletion
The application did not invalidate existing sessions after a password change or account deletion. An attacker who had compromised a session could keep access even after the user changed their password or deleted their account, and could regain control of a newly created account that reused the same email address.
medium.com
Published on medium.com
This story is not just about finding a bug, but about thinking deeper when facing a duplicate report — something every beginner bounty hunter should know. Remember: When you hit a wall, sometimes the best bugs are hiding just behind it.
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 sessions were tied to the user's email address rather than a unique account identifier, and deleting an account did not clear active sessions.
Impact
An attacker who had compromised a session could keep access even after the user changed their password or deleted their account, and could take over a newly created account that reused the same email address.
What the attacker needed
Attacker has a valid session token; victim changes password or deletes account; victim recreates account with same email
How it was found
- Log in on Browser A with valid credentials.
- On Browser B, request a password reset and set a new password.
- Log in on Browser B with the new password.
- Observe that Browser A remains logged in.
- Delete the account from Browser B.
- Register a new account with the same email and a different password, then observe that Browser A's old session now controls the new account.
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 server gives your browser a session token so it remembers you. This report found that changing your password or deleting your account did not cancel those tokens, so anyone who had stolen one could stay logged in. Worse, if you later made a new account with the same email, the old token would start working on the new account.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.