Skip to content
Account takeover Write-up Beginner

“Password Changed, Attacker Still Logged In: The Hidden Risk of Session Persistence” P4 Bug paid…

The application did not invalidate existing session tokens when a user changed their password, so a session created before the change remained fully authenticated. An attacker who had stolen a session could keep using the account even after the victim reset their password.

saijayanth25dec2003 Follow

Published on medium.com

Most users believe changing their password immediately secures their account. It feels like the ultimate reset button — if someone had unauthorized access before, they should be locked out the moment the password changes.

Sai Jayanth, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application updates the password but does not revoke previously issued session tokens or refresh tokens.

Impact

An attacker who had stolen a session could maintain persistent account takeover and continue accessing sensitive data or performing actions even after the victim changed their password.

What the attacker needed

Attacker has a valid stolen session; victim changes password

The fix

The application should invalidate all active sessions and revoke refresh tokens when a password is changed, forcing re-authentication on all devices.

How it was found

  1. Log in to the application in one browser and confirm the session is active.
  2. Log in to the same account from a second browser, creating an independent session.
  3. From the second browser, change the account password successfully.
  4. Return to the first browser, refresh the page, and observe that the old session is still authenticated.

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 write-up has not been written yet. The Original tab links to the source.

When you log in, the site gives your browser a session token, a kind of temporary pass that keeps you logged in. If someone steals that pass, they can use your account. Changing your password should cancel all old passes, but here it did not, so the thief 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 saijayanth25dec2003

View all

1 more disclosed report, best first.

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.