Invalidate session after password reset
The website did not invalidate existing sessions after a password change, so an attacker who had already compromised a session could keep using it even after the victim reset their password. The reporter demonstrated that two browsers logged into the same account remained active after the password was changed in one of them.
- Triaged in 4 hours
- Fixed in 46 days
- Disclosed after 3 months
Website doesn't invalidate session after the password is reset which can enable attacker to continue using the compromised session.
Steps:
- Open same accounts in two different browsers
- Change password in one browser and you will see that another browser still validate the session after password change (even after refresh the page ).
Recommendation:
As per OWASP, it is recommended to terminate all the active sessions when a password is changed and force the user to re-login.
Impact
Logging in with the new password doesn't invalidate the older session either: I could browse Liberapay using two sessions (in two different browsers) which were initiated using two different passwords.
Attachments
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application did not revoke or expire existing session tokens when a user's password was changed.
Impact
An attacker who already had a valid session could continue to access the account even after the victim changed their password, as the old session was not terminated.
What the attacker needed
Attacker has a valid session; victim changes password
The fix
The application should terminate all active sessions when a password is changed and force the user to log in again.
How it was found
- Open the same account in two different browsers.
- Change the password in one browser.
- Observe that the other browser still has a valid session, even after refreshing the page.
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 report has not been written yet. The Original tab links to the source.
When you log in to a website, it gives your browser a session token so you stay logged in. If you change your password, the site should throw away all old session tokens so anyone else who was logged in is kicked out. Here, the old tokens kept working, so someone who had stolen a session could still access the account 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.