Password Change Doesn’t Expire Sessions — A Hidden Risk in Session Management
Changing the account password did not invalidate existing sessions in other browsers, so an attacker with a stolen session could remain logged in even after the victim changed their password. The author claims this could lead to account takeover.
In the world of cybersecurity, small oversights often lead to big consequences. During one of my recent bug bounty hunting sessions, I discovered a security flaw in Oneweb application, where changing the password didn’t invalidate sessions in other browsers.
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
Impact
An attacker who already holds a valid session could retain full access even after the victim changes their password, potentially leading to account takeover.
What the attacker needed
Attacker has a valid session token; victim changes password
The fix
The application should invalidate all existing sessions when a password is changed.
How it was found
- Log into the same account on two different browsers.
- Change the password in one browser.
- Refresh the page in the other browser and observe that the session is still active.
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 website gives your browser a session token (like a temporary key) so you stay logged in. If you change your password, the website should throw away all old keys so anyone else using an old key is logged out. Here, the old key still worked, so someone who had stolen it could keep using your 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.