The Logout That Didn’t Happen: A Session Bug Story
After a password change, one browser session remained logged in and another logged back in automatically after a refresh without re-entering credentials. An attacker with access to an old session could retain access to the account even after the victim changed their password.
medium.com
Published on medium.com
I was testing a crypto platform (not naming names 👀), just playing around with how it handles sessions across devices and browsers. You know, the usual routine log in here, reset password there, try to break things gently.
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 application did not invalidate all existing session tokens when the password was changed, and it allowed old tokens to re-authenticate the user automatically.
Impact
An attacker with access to an old session could retain access to the account even after the victim changes their password, potentially leading to account takeover and loss of funds on a crypto platform.
What the attacker needed
A free account; access to two browsers; victim changes password
The fix
The application should invalidate every active session when the password is changed, block auto-login from old tokens after sensitive actions, and offer a 'log out from all devices' option.
How it was found
- Log into the account on Chrome and Edge.
- Change the password using a mobile browser.
- Observe that one browser may be logged out while the other stays logged in.
- Refresh the logged-out browser and see it log back in without a password.
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 change your password, a secure website should end all other logged-in sessions so that anyone who had access before is kicked out. Here, one browser stayed logged in and another came back without asking for the new password, meaning old sessions were not properly ended.
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.