Skip to content
Access control Write-up Beginner

A short tale of Session Fixation

The web application failed to expire session cookies after logout and issued a session ID before authentication was complete. An attacker could reuse a session cookie to regain access to an account after the victim logged out.

medium.com

Published on medium.com

In the early days of the Internet, everything was simple, just static pages lying around on the internet. No fancy graphics, no dynamic data, no personalized Content, everything was simple but boring.

Kanchan Singh Yadav, 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 invalidate the session on logout and issued session identifiers before verifying login.

What the attacker needed

Attacker obtains a valid session cookie

How it was found

  1. Log in to the application and note the session cookie.
  2. Log out of the account.
  3. Use the browser back button to return to the previous page.
  4. Observe that the account is still accessible.
  5. Log in again and compare the session cookie with the earlier one.

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.

A session cookie is like a temporary key that keeps you logged in. This website did not throw away the key when you logged out, so anyone who still had the key could use it to get back into the account.

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.

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.