I Was Removed From the Organization, But My Access Still Worked: Lessons From a Broken Access Control Vulnerability
A user removed from an organization could still modify organization resources using an existing session. An attacker with a removed account could retain access to organization-scoped actions.
Published on cybersecuritywriteups.com
One of the most common security assumptions in modern applications is also one of the most dangerous:
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 did not re-check the user's current organization membership on each request, trusting stale session or cached permissions.
Impact
A removed user could still modify organization resources, and potentially other organization-scoped actions if similar authorization logic is reused.
What the attacker needed
A free account; victim clicks a link; none
The fix
The application should validate the user's current permissions on every sensitive request and invalidate sessions or cached roles upon membership changes.
How it was found
- Create two accounts: a regular member and an admin.
- Admin invites member to organization; member accepts and gains access to a project.
- Member edits project name; intercept the request.
- Admin removes member from organization.
- Replay the captured edit request from the removed member's session.
- Observe the project name changes successfully.
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 remove someone from a team, the system should immediately stop them from doing team things. Here, the website's backend kept letting the removed person change project details because it didn't check their current membership on each request.
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.