Skip to content
Access control Write-up Beginner

Session Revocation Failure — “Sign Out All Other Web Sessions

The 'Sign out all other web sessions' feature did not terminate other active sessions, and the revocation endpoint returned 200 OK even without any authentication. An attacker with a stolen session could remain logged in despite the victim using the sign-out feature.

Just_try_shit Follow

Published on medium.com

Most users never think twice about the “Sign Out Everywhere” button. They click it, assume every session is gone, and move on.

Just_try_shit, 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 system only stored one session record per account (overwriting previous ones) and the revocation endpoint lacked authentication and did not actually invalidate tokens.

Impact

An attacker who has stolen a session cookie could remain logged in even after the victim uses the sign-out feature, because the feature does not revoke other sessions and the endpoint accepts unauthenticated requests.

What the attacker needed

A free account; multiple browsers or devices; ability to intercept HTTP requests

The fix

The report suggests tracking each session independently, showing all sessions to the user, requiring authentication on the revocation endpoint, validating tokens on every request, using POST/DELETE with CSRF protection, and returning JSON; the text does not state that a fix was applied.

How it was found

  1. Create an account and log in on four different browsers/devices.
  2. Check the session management panel; it shows only the current session.
  3. Click 'Sign out all other web sessions'.
  4. Refresh the other browsers; they remain logged in.
  5. Intercept the revocation request and replay it with all cookies, then with only a consent cookie, then with no cookies; each returns 200 OK.
  6. Check the other browsers again; they are still logged in.

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, which keeps you logged in. A 'sign out everywhere' button is meant to cancel all those cookies on all your devices, so if someone stole one, they get kicked out. Here, the button did nothing: other devices stayed logged in, and the server even said 'OK' to requests that had no login at all.

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.