Skip to content
Account takeover Disclosed report Beginner

Old Session Does Not Expires After Password Change

The application did not invalidate other active sessions when a user changed their password. An attacker who already had a logged-in session could remain logged in and continue to access the account even after the victim changed their password.

Hemant Patidar Follow

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 14 days
  • Disclosed after 25 days

##Hello Team, I am Hemant Patidar working as a security researcher and I found a bug in your site. Report of bug is as follows:-

##Description: While conducting my research I discovered that the application Failure to invalidate the session after the password change. In this scenario changing the password doesn't destroy the other sessions which are logged in with old passwords.

##Steps to reproduce:

  1. Login with the same account in Chrome and Firefox Simultaneously using the URL: https://█████
  2. Change the pass in Chrome Browser using the URL: https://██████
  3. Go to firefox and Update any information, the information will be updated

##POC: ███████

##Mitigation When some change in user password, each and every active session 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 choose if they want to keep active sessions or just destroy every active session when users change his/her password!

Impact

  • If the attacker has a user password and logged in different places, As other sessions are not destroyed, the attacker will be still logged in to your account even after changing the password, cause his session is still active. A malicious actor can complete access your account till that session expires! So, your account remains insecure even after the changing of password

Please fix this Vulnerability and let me know. Looking forward to hearing from you.

Best Regards Hemant Patidar

The original report as published on HackerOne, by hemantsolo. 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 password-change routine updated the credential but did not revoke or rotate existing session tokens for that account.

Impact

An attacker who already holds a valid session could keep full access to the account until that session expires, even after the victim changes their password.

What the attacker needed

Attacker already has a valid session; victim changes password

The fix

The application should destroy every active session belonging to the account when the password is changed, or at least offer the user that choice.

How it was found

  1. Log in to the same account in two different browsers at the same time.
  2. Change the password in one of the browsers.
  3. In the other browser, update account information and observe that the change succeeds.

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 it remembers you. If you change your password, the site should throw away all other session tokens so anyone else who was logged in is kicked out. Here, it did not, so someone who already had access stayed 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 by Hemant Patidar

View all

2 more disclosed reports, best first.

More from U.S. Dept Of Defense

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.