Found a Race Condition That Led to Privilege =>$750
The invitation system did not properly enforce the plan's user limit when multiple invite requests were sent simultaneously. An attacker could exceed the allowed number of users and potentially assign them roles with access to sensitive features.
medium.com
Published on medium.com
Free Article Link: Click for free!
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 checked the user limit without locking or synchronising concurrent requests, so multiple invites could pass the check before any were counted.
Impact
An attacker could bypass plan restrictions, exceed user limits, cause data inconsistencies, and potentially escalate privileges by assigning extra users roles with access to sensitive features.
What the attacker needed
A user account on the platform; ability to intercept and replay requests
The fix
The invitation system should be fixed by adding proper synchronisation or locking so concurrent requests cannot exceed the user limit.
How it was found
- Log into the test account.
- Go to Manage > Users and click Invite User.
- Intercept the invitation request with Burp Suite and send it to Intruder.
- Set a payload on the email field with random or predefined addresses.
- Set a high number of threads in Intruder to send requests simultaneously.
- Run the attack and check the user list for more users than the plan allows.
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 happens when a system does two things at once and the result depends on timing. Here, the server checked the user limit but didn't stop multiple invites arriving at the same moment, so more users were added than allowed. This could let someone add extra accounts with special roles.
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.