Skip to content
Account takeover Disclosed report Beginner

Session not invalidated after password reset

After a password reset, sessions created with the 'Remember me for a week' option were not invalidated, so an attacker with a stolen remembered session could keep access even after the victim changed their password. The reporter demonstrated two active sessions using different passwords simultaneously.

guido Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 2 hours
  • Paid in 2 hours
  • Disclosed after 2 hours

After a password reset link is requested and a user's password is then changed, not all existing sessions are logged out automatically. The automatic removal of existing sessions linked to a user whose password was changed is only the case if the session was initiated with the 'Remember me for a week' box NOT checked at the log-in page; sessions with the 'remember' option enabled will persist after the password change.

Logging in with the new password doesn't invalidate the older session either: I could browse HackerOne using two sessions (in two different browsers) which were initiated using two different passwords.

The original report as published on HackerOne, by guido. 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-reset flow only revoked sessions without the remember-me flag, leaving remember-me tokens valid.

What the attacker needed

Attacker has a remembered session token; victim changes password

How it was found

  1. Log in with 'Remember me for a week' checked.
  2. Request a password reset and change the password.
  3. Observe that the remembered session remains active.
  4. Log in with the new password in another browser and confirm both sessions work.

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 with 'Remember me', the site keeps that session active. This report found that changing your password did not cancel those remembered sessions, so they still worked.

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 guido

View all

49 more disclosed reports, best first.

More from HackerOne

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.