All Active user sessions should be destroyed when user change his password!
The application does not invalidate existing user sessions when a password is changed, so an attacker who already has an active session remains logged in even after the victim changes their password. The attacker retains full access to the account until that session expires.
Originally disclosed on HackerOne
- Triaged in 5 hours
- Fixed in 5 days
- Disclosed after 38 days
Hello, There is an user sessions issue on your application that should be fixed.
Proof of Concept
Suppose, you have an account on uzbey Somehow an attacker manage to get your password and logged in your account.. after knowing that your ID has been compromised what you'll do ? i guess first thing that will popup into your head is, "I should change my password!" and you'll change the password.. maximum users just change his/her password when they recover their ID. in uzbey, changing the password doesn't destroys the other sessions which are logged in with old passwords. (Logging in with the new password doesn't invalidate the older sessions either) As other sessions is not destroyed, attacker will be still logged in your account even after changing password, cause his session is still active.. he'll have complete access on your account till that session expires! So, your account remains insecure even after the changing of password.
PATCH
- When someone change his/her password, each and every active sessions that belongs to that particular account must be destroyed!
- I would recommend you to follow Facebook on this security issue.. They fixed this issue few months back by adding 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 users change his/her password!
I look forward to hearing from you!
Thanks and Best Wishes.
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
Impact
An attacker who has obtained the password and logged in can keep full access to the account even after the victim changes the password, until the attacker's session expires.
What the attacker needed
Attacker has obtained the victim's password; attacker has logged in and has an active session
The fix
The application should destroy all active sessions for the account when the password is changed, or offer the user the choice to close all open sessions.
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, like a temporary pass that keeps you logged in. If someone else has stolen your password and logged in, they get their own session. Changing your password should cancel all other sessions, but here it does not, so the thief stays 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.