Skip to content
Business logic Write-up Beginner

The Organization Had No Owner… Yet I Could Still Join It

The backend did not invalidate pending invitations when the sole owner deleted their account, so an invited user could still accept the invitation and join an organisation with no owner. The attacker then retained access to the organisation and its resources, while the victim permanently lost access.

0xMo7areb Follow

Published on medium.com

While testing the organization’s invitation workflow, I discovered a business logic vulnerability affecting organization ownership.

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 the backend does not verify the organisation's ownership state when an invitation is redeemed, so pending invitations remain valid even after the sole owner is deleted.

Impact

The attacker could join an ownerless organisation and keep access to its resources, while the victim permanently lost access and no administrator remained to manage or recover the organisation.

What the attacker needed

Victim creates an organisation; victim invites the attacker; victim deletes their account

The fix

The backend should invalidate pending invitations when the sole owner deletes their account, or delete the organisation if it has no owner.

How it was found

  1. Victim creates an organisation.
  2. Victim invites the attacker.
  3. The invitation remains pending.
  4. Victim deletes their account (the only owner).
  5. Attacker logs in and accepts the invitation.

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.

When you invite someone to an organisation, the system should check that the organisation still has an owner before letting them join. Here, the owner deleted their account, but the invitation still worked, so the invited person could join an organisation that had no one in charge. This is a logic flaw: the system forgot to check a basic rule.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by 0xMo7areb

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.