Bypassing Business Logic via Race Condition: A $500 Bounty Bug
The member creation system allowed multiple insurance profiles to be created with the same email and employee ID when concurrent requests were sent, bypassing duplicate account restrictions. An attacker could create duplicate profiles, leading to data inconsistencies and potential fraud.
medium.com
Published on medium.com
Hi Everyone! Recently, I discovered a race condition vulnerability in Examlife’s member creation system that allowed attackers to bypass duplicate account restrictions and create multiple insurance profiles using the same email and employee ID.
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 backend did not properly lock database transactions or enforce uniqueness at the database level, allowing multiple concurrent requests to pass the duplicate check.
Impact
Attackers could create duplicate profiles, leading to data inconsistency, billing errors, incorrect coverage, and potential fraud; the program acknowledged the bug but noted a proper fix would be complex and did not confirm a fix.
What the attacker needed
An account with permission to add members; ability to send concurrent requests
The fix
The backend should enforce uniqueness at the database level and use proper locking mechanisms to prevent concurrent requests from bypassing duplicate checks; the text does not state that a fix was implemented.
How it was found
- Create an attacker account with permissions to add members.
- Capture the member creation request using Burp Suite while adding a new employee profile.
- Modify the request payload (GraphQL mutation) to include an email that should not be allowed to be reused.
- Send the request to Turbo Intruder (or a similar tool) to trigger multiple simultaneous requests.
- Observe the response — multiple profiles get created despite the system’s restriction.
- Verify in the platform’s UI that multiple profiles now exist under the same email and employee ID.
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 system checks something (like 'is this email already used?') and then acts, but if two requests arrive at almost the same time, both checks pass before either action is recorded. Here, the system didn't lock the database during the check, so sending many requests at once let the same email be used for multiple profiles.
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.