Skip to content
Account takeover Write-up Beginner

Session Reuse After Logout: Vulnerability Report on Improper Session Invalidation

The platform did not invalidate a user's session on the server after logout, so a session cookie captured before logout still worked. An attacker who had stolen that cookie could keep accessing the victim's authenticated pages and data.

FufuFaf1 Follow

Published on medium.com

Session Reuse After Logout: Vulnerability Report on Improper Session Invalidation

MostReal, 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 server did not destroy or expire the session record when the logout request was processed, so the old session identifier remained valid.

Impact

An attacker holding a captured session cookie could perform session hijacking and potentially account takeover, accessing sensitive data and acting as the account owner.

What the attacker needed

A valid account; attacker obtains the victim's session cookie

The fix

The server should terminate the session immediately on logout and expire all related session cookies.

How it was found

  1. Log in to a valid account on the tested platform.
  2. Copy the session cookie using developer tools or an intercepting proxy.
  3. Log out through the logout menu.
  4. Replay the copied session cookie in an HTTP request to an authenticated 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 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 cookie, like a temporary pass. Logging out should make that pass useless on the server. Here it did not, so anyone holding a copy of the pass could still get in after the real user had logged 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.

More by FufuFaf1

View all

5 more disclosed reports, 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.