Skip to content
Race condition Write-up Intermediate

OneSpan Race Condition — Duplicate Group Names? Ez Game

The group creation endpoint lacked proper concurrency controls, allowing multiple identical group names to be created simultaneously. An attacker could send concurrent requests to create duplicate groups, causing application logic errors and server errors that leaked internal technology details.

medium.com

Published on medium.com

So I was messing around with the group creation feature on a certain platform, and guess what? They forgot to lock it down properly.

MostReal, on 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 absence of a database unique constraint and atomic transaction handling allowed concurrent requests to bypass uniqueness checks.

Impact

This could break application logic that assumes unique group names and may be abused for denial of service or privilege bugs, while also leaking internal server errors and technology details.

What the attacker needed

Ability to send concurrent requests; access to group creation feature

The fix

The fix should add a unique constraint on the group name in the database, use atomic transactions or locking to ensure only one request succeeds, and avoid leaking backend technology in error messages.

How it was found

  1. Create a simple POST request to create a group.
  2. Use a tool like Turbo Intruder or Burp to send multiple concurrent requests.
  3. Fire off 6 concurrent requests with the same group name payload.
  4. Observe that 6 groups with the same name are created.
  5. Interact with the duplicate groups to trigger server errors and stack trace leaks.

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 checks something and then acts, but another request can sneak in between the check and the action. Here, the server checked if a group name was free, but six requests did this at once, so all six passed the check and created groups. This breaks the assumption that names are unique and can cause errors.

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.