Skip to content
Race condition Write-up Intermediate

How Race condition leading to business logic flaws affecting

A group-creation endpoint did not enforce unique group names when requests were sent concurrently, so several groups with the same name and members could be created. This left the owner unable to edit the group or reduce members' privileges, and a separate race let a user invite more members than the subscription limit allowed.

omarmeslam2 Follow

Published on medium.com

While browsing the website, I noticed a feature for creating groups and decided to create one.

Mesalam_17, 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 uniqueness check and the group creation were not performed atomically, so concurrent requests all passed the check before any group was stored.

Impact

The owner of a duplicated group could lose the ability to edit it or control members' privileges, and the race also let a user exceed the five-member invitation limit, though the program excluded the limit bypass from rewards.

What the attacker needed

A user account; ability to send concurrent requests

How it was found

  1. Create a group on the site.
  2. Send a second group-creation request with the same name at the same time as the first.
  3. Observe that both groups are created with the same name but different IDs.
  4. Try to edit the duplicated group and note that editing fails.
  5. Add members with admin privileges to the duplicate groups and observe that privileges cannot be reduced.

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 program checks something and then acts, and an attacker sends many requests at the same moment so the check passes for all of them before any is saved. Here the site checked that a group name was free, but two requests sent together both passed the check, creating duplicate groups. The duplicates confused the site's editing logic, so the real owner lost control of the group.

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.