Easy P4 Bug : Failure to Invalidate Sessions Post Password Chang
After changing the account password, the existing logged-in session remained valid and could still perform actions. An attacker who already had access to an active session could keep using the account even after the victim changed their password.
Published on medium.com
My name is Shridhar Rajaput, and as a security researcher, my days are often filled with exploration and discovery within the digital realm. Recently, I encountered a puzzling scenario that unveiled a significant flaw in session management — a flaw that could compromise user security in unexpected ways.
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 existing session tokens when the account password was changed.
Impact
An attacker who already holds an active session could continue to access and manipulate the account after the victim changes their password, so the password change does not remove the attacker.
What the attacker needed
A valid account; attacker already has an active session
The fix
The application should invalidate all active sessions immediately when a password is changed.
How it was found
- Log in to the application with valid credentials.
- Go to account settings and change the password.
- Open a new incognito window while keeping the original session active.
- Observe that the original session still has access and can perform actions.
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 session token so it remembers you. If you change your password, the site should throw away all old tokens so anyone else logged in is kicked out. Here it did not, so an attacker who stole a token could stay in the account even after the password was changed.
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.