One Invite Endpoint, One Race Condition — 4 Bugs Later
The team platform only enforced privileged-role seat limits in the frontend, so a user could change the role field in a role-update request to make an Observer an Admin or Creator. Sending two such requests at the same time also let both succeed, exceeding the seat quota.
medium.com
Published on medium.com
Sometimes the most interesting vulnerabilities don’t require complex payloads or advanced exploitation chains. Sometimes, all it takes is changing one field in a JSON request.
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 server trusted the client-supplied role value and checked the seat quota without an atomic lock around role updates and invitations.
Impact
A user could create privileged Admins and Creators beyond the allowed quota, and a race condition let two upgrades or an upgrade plus an invite both succeed.
What the attacker needed
A team account; ability to invite users; intercepting proxy
The fix
The server should validate the role and seat quota on every role update and invitation, and wrap both operations in a single atomic lock.
How it was found
- Invite several users as Observers through the normal interface.
- Intercept a role update request and find the role field in the JSON body.
- Change the role from observer to admin or creator and forward the request.
- Send two upgrade requests for joined Observers simultaneously with one seat remaining.
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 account has roles like Admin, Creator and Observer, and the site only allows a few Admins and Creators. The website's screens stopped you adding more, but the server behind them did not check, so editing the request directly let you create extra privileged users. Sending two requests at the same moment also slipped past the check.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.