How I Found the race condition vulnerability?
A non-premium user could create more than the five allowed app sections by sending several section-creation requests at the same time. The attacker could therefore obtain a premium feature without paying.
medium.com
Published on medium.com
“A race condition vulnerability occurs when multiple processes or threads access shared resources concurrently without proper synchronization, leading to unpredictable and exploitable behavior. It’s a critical issue in both system-level and web applications, especially when timing affects logic or state transitions.”
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 section count and created the new section without an atomic lock, so concurrent requests all saw a count below the limit.
What the attacker needed
A free account; ability to send parallel HTTP/2 requests
How it was found
- Capture the request that creates an app section.
- Send the request to Burp Repeater and resend it more than five times (seven in this case).
- Change the sort order value from 1 to 7, noting the default section value was 0.
- Add all the requests to a single group.
- Select the group and send the requests in parallel using the single-packet attack option.
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 website checks a limit and then acts on it, but several requests arrive so close together that the check is passed by all of them before any of them updates the count. Here, a free user is only allowed five sections, but by firing many create requests at once the limit was bypassed. This is like several people slipping through a door before the guard has time to mark the first one as entered.
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.