Skip to content
Access control Write-up Beginner

$900 Session Flaw: Deprovisioned Users Retain Access After Permission Removal

A SaaS platform blocked new logins for fully deprovisioned users but did not invalidate their existing sessions, so those users could still reach the Home dashboard and previously shared resources. An attacker with an already open session could keep using it after all permissions were removed.

a13h1 Follow

Published on medium.com

Hi Everyone! Recently, while testing a SaaS platform (let’s call it ExampleCenter), I came across a very interesting access control issue that doesn’t look dangerous at first glance but in real-world scenarios, it can be quite impactful.

Abhi Sharma, 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

The backend checked permissions only at login and did not revalidate the session's authorization state on later requests.

Impact

A fully deprovisioned user could retain access to the Home dashboard and previously shared resources through an existing session, creating a window for data exposure during offboarding.

What the attacker needed

An active session before deprovisioning; admin removes all permissions

The fix

The fix ensured that sessions are properly invalidated and access is revoked consistently.

How it was found

  1. Create a user in an organization and grant access to any product.
  2. Log in as that user and keep the session active.
  3. As an admin, remove all product permissions from the user and save.
  4. Confirm that a new login attempt for the user fails.
  5. Reuse the original session and observe that the Home dashboard and shared resources are still accessible.

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 server gives your browser a session cookie so it remembers you. If an admin later removes all your permissions, the server should also throw away that cookie's validity. Here it did not, so an old browser tab kept working even though the account was supposed to have no access.

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 a13h1

View all

8 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.