Session Not Invalidated After Logout Allowing Session Reuse (Server-Side also)
The application did not invalidate session tokens on logout, so a previously captured session cookie remained valid and could still access authenticated endpoints. An attacker who obtained a session token could reuse it to hijack the user's session and access their account.
Originally disclosed on Bugcrowd
- Accepted in 8 days
- Disclosed after 3 months
Summary by Genius
We do not invalidate session tokens during a simple logout. Users have to change their password to invalidate previous session tokens.
Summary by ketaxpl0it
User sessions were not properly invalidated after logout, allowing a previously captured session cookie to remain valid and access authenticated endpoints. This could enable session hijacking and unauthorized account access if a session token is compromised.
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 server did not delete or revoke the session token on logout, only clearing it on the client side.
Impact
A captured session token could be reused after logout to access the victim's account, enabling session hijacking and unauthorised access.
What the attacker needed
Attacker has a captured session token
The fix
The server should invalidate the session token on logout, for example by deleting it from the session store, so it cannot be reused.
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 out of a website, the site should destroy the session token that kept you logged in. Here, the token kept working after logout, so anyone who had copied it could still act as the user. This is like a hotel key card that still opens your room after you check out.
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.