Skip to content
Account takeover Write-up Beginner

How I Identified a Session Management Flaw and Pushed for Change

Session tokens issued by the application stayed valid after a user logged out, so a token captured by any means could be replayed to regain full access to the account. The author demonstrated this by swapping a logged-out token into another browser and getting authenticated access.

Shantanu Gupta Follow

Published on medium.com

Security research is rarely about a single “gotcha” moment. More often, it’s about persistence, clear communication, and standing your ground when something feels wrong, even if the initial response says otherwise.

Shantanu Gupta, 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 relied on framework-default session handling that kept tokens alive for a fixed period and never invalidated them server-side on logout.

Impact

Any leaked token, whether from a malicious browser extension, an interception on public Wi-Fi, or a shared device, could be replayed for continued authenticated access, turning a leak into a persistent account takeover risk.

What the attacker needed

A valid session token obtained by some means; ability to set or replay the token

The fix

Sessions should be invalidated immediately on logout so a token cannot be reused afterwards; the text says the company later implemented this and the author confirmed it worked.

How it was found

  1. Log into one account and extract its session token.
  2. Log out of that account.
  3. Log into a second account in a different browser.
  4. Replace the second account's session token with the first account's token.
  5. Observe that the first account is fully accessible 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, a website gives your browser a small piece of data called a session token, which acts like a temporary key proving who you are. Logging out should make that key useless on the server. Here it did not, so anyone who copied the key could keep using the account even after the real owner thought they had signed 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.

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.