From Admin to Ghost: Post-Removal Access Control Bypass in Team Management Functionality
A removed team member could still access and modify business settings because the server did not check their current team membership. An attacker could change the owner's name, phone number, and other sensitive fields after being removed.
The original lives on medium.com
We do not hold its text, 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 verify that the user was still a member of the team before processing requests to sensitive endpoints.
Impact
A removed team member could still modify sensitive business settings, potentially leading to data manipulation or brand impersonation.
What the attacker needed
Attacker must be a team member with admin role; attacker must be removed from the team; attacker must know the business settings URL
The fix
The backend should enforce authorization checks to ensure that only current team members can access and modify business settings.
How it was found
- From the owner account, invite a user as an Admin.
- The user accepts the invitation and joins the team, gaining access to business settings.
- While the member is on an authenticated page, the owner removes them from the team.
- Upon refreshing, the member sees an error confirming removal and loses access to most pages.
- The removed member can still visit the business settings page URL directly or use the back button.
- The page remains functional, allowing the removed member to modify business name, phone number, and other fields.
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 someone is removed from a team, the website should stop letting them do anything. Here, the website's front page showed an error, but the behind-the-scenes part still accepted changes from the removed person. So they could still edit important business information even though they were no longer on the team.
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.