Skip to content
Race condition Write-up Intermediate

Race Condition 101: How I Exploited a Real Bug Bounty Scenario to Break Backend Validation

The event creation feature checked for duplicate names only in the frontend, and the backend did not enforce a unique constraint when handling concurrent requests. An attacker could send many identical requests at once and create multiple events with the same name.

keroayman77 Follow

Published on keroayman77.medium.com

Today, I’m going to share a real-world bug bounty experience where I discovered a subtle but impactful race condition vulnerability.

Kerolos Ayman, on keroayman77.medium.com

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 performed a check-then-act sequence without an atomic unique constraint or proper locking, so concurrent requests could all pass the duplicate-name check.

Impact

The frontend validation was bypassed and multiple events with the same name could be created, though success depended on the target's infrastructure and only some requests succeeded.

What the attacker needed

A user account; ability to send concurrent requests

How it was found

  1. Log in to the account.
  2. Navigate to the event creation page.
  3. Choose a unique event name.
  4. Capture the POST request in Burp Suite and send it to Repeater.
  5. Create 11 identical requests in a group and send them in parallel (single-packet attack).
  6. Check the events list page.

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 program does two things at nearly the same time and the result depends on which one finishes first. Here, the website checked whether an event name was already used, but if many requests arrived together, the check passed for several of them before any event was saved. This let the attacker create duplicate events with the same name.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.