How I Found a Full Team Takeover Vulnerability Through a Simple ID Exchange
The application hid teams from users who were not members, but the backend did not check team membership when a team ID was supplied. An attacker could use another team's ID to view and modify that team, including deleting it.
Published on medium.com
In modern SaaS applications, multi-tenant architecture is common. Organizations, teams, roles, and permissions are core building blocks that ensure data separation between users.
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 missing server-side authorization validation: the backend checked only that the user was logged in, not that the user belonged to the team or had permission for the action.
Impact
An attacker could fully take over any team by using its ID, including viewing team data, modifying permissions, adding or removing members, and deleting the team.
What the attacker needed
A free account; knowledge of a target team ID
The fix
The backend should enforce authorization checks on every request, validating the user's identity, team membership, role, and permission level before allowing any action.
How it was found
- Create an organization and two teams, Team 1 and Team 2.
- Invite User A to Team 1 only, not Team 2.
- Log in as User A and use the Team 2 ID in a direct request or URL.
- Observe that User A can access Team 2 and perform actions such as viewing members, inviting or removing users, changing permissions, renaming, and deleting the team.
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.
A team ID is a unique code in the web address that identifies a team. The website hid teams you were not in, but the server did not check if you belonged to the team before showing or changing it. So anyone who knew or guessed a team ID could take over that 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.