Organization Without Owner
A race condition in the invitation acceptance process allowed an attacker to move a user, including the organization Owner, from one organization to another without consent. This left the original organization without an Owner, making it impossible to manage settings, roles, billing, or recover ownership.
medium.com
Published on medium.com
This isn’t something you can just pick up and try on any random target. A blind attempt, with no research and no understanding of how the system actually works, will get you nowhere — you don’t get to spray requests and expect a vulnerability to pop out on its own.
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 in the invitation validation, where the check for existing membership and the creation of the invitation are not atomic, allowing two simultaneous requests to both pass validation.
Impact
The original organization was left without an Owner, so nobody could delete it, change roles, remove members, manage billing, or recover ownership.
What the attacker needed
Attacker has an account in the target organization; attacker can send invitations; victim (Owner) accepts the invitation
How it was found
- Send an invitation to a new email and simultaneously send an invitation to an email already in another organization.
- The invitation to the existing email is created successfully.
- The invited user accepts the invitation and is moved to the new organization.
- Repeat the same method targeting the Owner of the original organization.
- The Owner accepts and is moved, leaving the original organization without an Owner.
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.
Organizations have one Owner who controls everything. The system checks that an email isn't already in another organization, but if two requests arrive at the same moment, that check can be bypassed. This let the attacker move the Owner out, leaving the organization with no one in charge.
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.