Skip to content
Access control Write-up Beginner

When “Removed” Doesn’t Mean Removed: Finding an Authorizati

An administrator removed from an organisation could still use their existing session cookie to read the organisation's user list and to delete users and teams. The backend trusted the permissions tied to the old session instead of checking current membership.

OWL Follow

Published on medium.com

One of the most basic security expectations in web applications is that removing a user immediately removes their access to performing any actions.

OWL, 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 backend trusted permissions stored with the already-issued session instead of re-checking the user's current organisation membership on each privileged request.

Impact

A removed administrator could still read organisation user data and delete users and teams, though the report notes the finding was a duplicate.

What the attacker needed

An admin account in an organisation; owner removes the admin; old session cookie still valid

The fix

The backend should validate the user's current organisation membership and revoke sessions on every privileged request after removal.

How it was found

  1. Observe that the users endpoint returns organisation users using only a session cookie.
  2. Have the organisation owner remove the admin account.
  3. Replay the users request with the old session cookie and receive the user list.
  4. Replay delete requests for a user and a team with the old cookie and receive success responses.

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 session cookie so it can remember who you are. This report shows that after an admin was removed from an organisation, the site kept accepting that old cookie for privileged actions. The site should have checked on every request whether the person still belonged to the organisation.

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 OWL

View all

1 more disclosed report, 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.