Persistent Session Validity After Password Change
The application did not invalidate existing session tokens after a password change, so an attacker who already held a valid session could keep full access to the victim's account even after the victim reset their password. The author demonstrated this by keeping a session active in one browser while changing the password in another, and the old session continued to work.
medium.com
Published on medium.com
A Doctor in the collage was always say “You should know what is the story :) ” so, let’s go to know it
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 session management subsystem does not bind session validity to the user's credential state, so existing tokens are not checked against updated authentication contexts after a password change.
Impact
An attacker holding an existing session token could maintain persistent account takeover, continue data exposure or impersonation, and prevent the legitimate user from recovering by changing the password.
What the attacker needed
Attacker already holds a valid session token; victim changes password
The fix
The application should invalidate all active sessions immediately upon password change, issue new session IDs, and force re-authentication across all devices.
How it was found
- Log in on Browser A with valid credentials and confirm the session is established.
- Change the account password from Browser B and confirm the update.
- Return to Browser A, refresh the page, and observe the session remains active.
- Test a separate session on a Kali machine that was active before the password change; it also remains valid and can perform sensitive actions such as changing the password again.
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 website gives your browser a session token (a kind of temporary pass) so you don't have to type your password on every page. Normally, changing your password should cancel all those passes so anyone who stole one is locked out. Here, the old passes kept working, so someone who had already broken in stayed logged in even after the real owner changed the password.
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.