RACE Condition vulnerability found in bug-bounty program
An application that limited an admin to three team members could be made to accept more because simultaneous requests were processed at the same time. By firing many add-member requests in parallel, the author ended up with four team members instead of the allowed three.
{{media:0}}
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 member-count check and the member creation were not performed atomically, so concurrent requests all passed the limit check before any of them recorded the new member.
Impact
An admin restricted to three team members could exceed that limit, so the intended restriction on team size could be bypassed.
What the attacker needed
An admin account on the team feature
How it was found
- Capture the add team member request in an intercepting proxy.
- Use the email and name parameters as the values to vary.
- Configure the intruder to send the requests concurrently.
- Increase the number of threads so requests reach the server faster.
- Start the attack and observe that four team members were added.
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 race condition is when a program checks a limit and then acts, but two requests arrive so close together that both pass the check before either one updates the count. Here the rule said an admin may have only three team members, yet sending several add-member requests at once let a fourth slip through. The result is that a limit meant to restrict the account can be exceeded.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.