Privilege Escalation Turned a Regular User Into an Admin [part-1]
A regular user could add, edit and remove team members through the API even though the documentation said users cannot do this. An attacker with a basic account could therefore manage team membership as if they were a team admin.
Published on senoritaahunter.medium.com
You know those days when you open your laptop just to “test a few things”… and suddenly you’re holding admin powers you were never supposed to have?
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 API only checked whether the requester was a member of the team, not what global role they held.
Impact
A normal user could add fake accounts, remove real teammates, change roles, or grant admin powers to someone else.
What the attacker needed
A free user account; ability to create a team
The fix
The issue was fixed by the xyz.com team in May.
How it was found
- Log in with a plain user account that has no admin permissions.
- Create a team.
- Add a member to the team and observe that the request succeeds.
- Edit the new member and confirm it works.
- Remove the member and confirm it works.
- Check the documentation, which states users cannot add, edit or remove members.
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 website has different roles, such as a normal user and an admin. The site is supposed to check your role before letting you do admin actions. Here the server only checked that the person was part of the team, not what role they had, so a normal user could do admin things.
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.