♂️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.
When the current owner transfers ownership, the selected manager should become the new Owner, and no other user should have that role.
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
- Log in as the owner of an organisation and go to transfer org ownership to manager.
- Intercept the request using Burp Suite.
- Send the request to Repeater.
- Duplicate the request multiple times.
- Change the Manager ID in each request.
- 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.