Skip to content
Account takeover Disclosed report Beginner

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.

nikhil786 Follow

Originally disclosed on HackerOne

  • 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:

  1. Open same accounts in two different browsers
  2. 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

Screencast_Wednesday_21_August_2019_09_54_51__IST.webm From the original on HackerOne

The original report as published on HackerOne, by nikhil786. 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 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

  1. Open the same account in two different browsers.
  2. Change the password in one browser.
  3. 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.

More from Liberapay

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.