Skip to content
Access control Write-up Beginner

πŸͺ Secrets in Session: How a Forgotten Cookie Let Me Walk Into Admin Panel Like I Owned the Place πŸ”‘

The logout endpoint did not invalidate the session cookie on the server, so a copied cookie still granted access after logout. The author claims that reusing a developer's session cookie gave access to the admin dashboard and exposed user data.

iski Follow

Published on infosecwriteups.com

Free Link🎈

Iski, on infosecwriteups.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 never invalidated the session on logout, so the cookie stayed valid until it expired.

Impact

An attacker with a copied session cookie could access the admin dashboard and view user data, even after the user logged out.

What the attacker needed

A valid session cookie; access to the staging environment

How it was found

  1. Log in with a test account and capture the session cookie.
  2. Click logout and observe that the session cookie is still present.
  3. Reuse the copied cookie in a new browser session and access the dashboard.
  4. Use the cookie to request the admin dashboard and receive admin data.

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 to a website, the site gives your browser a small piece of data called a session cookie so it can remember who you are. Logging out should tell the server to forget that cookie, but here it only changed what the page showed. Anyone who had a copy of the cookie could keep using the account, even after the real user logged out.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by iski

View all

186 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.