Skip to content
Race condition Write-up Intermediate

‍♂️Business Logic Bug Allows Bypass of Single-Owner Restriction

The application allowed only one Owner per organisation, but by sending multiple ownership transfer requests simultaneously with different manager IDs, all requests were accepted, resulting in multiple Owners. An attacker could exploit this to grant Owner privileges to multiple users, violating the single-owner restriction.

0xMo7areb Follow

Published on medium.com

When the current owner transfers ownership, the selected manager should become the new Owner, and no other user should have that role.

0xMo7areb 🥷, 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 a race condition: the ownership transfer logic does not properly serialise concurrent requests, allowing multiple transfers to succeed simultaneously.

What the attacker needed

Valid owner account; ability to intercept and modify requests; at least two manager accounts

How it was found

  1. Log in as the owner of an organisation and go to transfer org ownership to manager.
  2. Intercept the request using Burp Suite.
  3. Send the request to Repeater.
  4. Duplicate the request multiple times.
  5. Change the Manager ID in each request.
  6. Add all requests to a Repeater Group and send all requests simultaneously.

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.

This is a race condition bug. The app checks if there is already an owner, but when many requests arrive at the same time, the check passes for all of them before any owner is saved, so multiple people become owner. An attacker with the ability to transfer ownership can make several managers owners at once.

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.

More by 0xMo7areb

View all

6 more disclosed reports, best first.

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.