Skip to content
Account takeover Disclosed report Beginner

old session dose not expire after password change

The application does not invalidate existing sessions when a user changes their password. An attacker who already has a valid session (e.g., from a compromised password) remains logged in even after the victim changes their password.

scorpion_x Follow

Originally disclosed on HackerOne

Informational View original
  • Triaged in 26 hours
  • Fixed in 4 months
  • Disclosed after 5 months

hello all ::

I discovered that the application Failure to invalidate session after password changed . In this scenario changing the password doesn't destroys the other sessions which are logged in with old passwords.

url:: ==https://app.upchieve.org/==

STEPS TO REPRODUCE:

1- create account in ==https://app.upchieve.org/== and login in two browser ==[firefox an Chrome]== 2- go to reset password and change it 3- you will see that session not expire and accountThe account is still loged in with old password

session-not-expire-after-change-password.mp4 From the original on HackerOne

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! Please fix this Vulnerability and let me know. Looking forward to hear from you

Impact

Due to this bug, there is no way for the victim to revoke access of attacker if account has been already compromised and 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

The original report as published on HackerOne, by scorpion_x. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 does not revoke or invalidate existing session tokens when a user's password is changed.

Impact

An attacker who already has a valid session remains logged in even after the victim changes their password, so the victim cannot revoke the attacker's access until the session expires.

What the attacker needed

Attacker has a valid session (e.g., stolen password); victim changes password

The fix

The application should destroy all active sessions for the account when the password is changed, optionally letting the user choose whether to keep other sessions open.

How it was found

  1. Create an account and log in using two different browsers.
  2. Go to the password reset page and change the password.
  3. Observe that the session in the other browser remains active and logged in with the old password.

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, the site gives your browser a session token so you don't have to type your password every time. If someone else has stolen your password and logged in, they get their own session token. Changing your password should cancel all old session tokens, but here it doesn't, so the attacker 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.

More from UPchieve

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.