Failed to validate Session after Password Change
The application did not invalidate existing sessions when a user changed their password. An attacker who had already logged in with the old password could continue to access the victim's account even after the password was changed.
Originally disclosed on HackerOne
- Disclosed after 23 days
While conducting my research I discovered that the application Failed to validate session after password change. In this scenario changing the password doesn't destroys the other sessions which are logged in with old passwords in another browser.
Steps To Reproduce:
- Login with the same account in Chrome and Firefox Simultaneously
- Change the pass in Chrome Browser
- Go to firefox and Update any information, information will be update.
--------> If attacker login with firefox and user know his password stolen so even user change their password, his account remain insecure and attacker have full access of victim account.
Mitigation
When some change in user password, each and every active sessions that belongs to that particular account must be destroyed! I would like to recommend you to add a process that asks users whether user want to close all open sessions or not right after changing password. So there is two way, either you let users to choose if they want to keep active sessions or just destroy every active sessions when an users change his/her password!
Impact
If attacker have user password and logged in different places, As other sessions is not destroyed, attacker will be still logged in your account even after changing password, cause his session is still active.. Malicious actor can complete access your account till that session expires! So, your account remains insecure even after the changing of password
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 invalidate existing session tokens when the user's password was changed.
Impact
An attacker who had logged in with the old password could retain full access to the victim's account until that session expires, even after the victim changes their password.
What the attacker needed
Attacker has valid credentials; attacker logs in before password change; victim changes password
The fix
The application should destroy all active sessions for the account when the password is changed, or ask the user whether to close all other sessions.
How it was found
- Log in to the same account in two different browsers at the same time.
- Change the password in one browser.
- In the other browser, update account information and observe that the change is accepted.
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 don't have to type your password every time. If you change your password, the website should cancel all other session tokens so that anyone else who was logged in is kicked out. This report says the site did not do that, so an attacker who knew the old password could stay logged in.
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.