Skip to content
Business logic Write-up Beginner

Invite Link Doesn’t Expire After Organization Deletion

An invitation link for an organization remained valid after the organization was deleted, allowing a user to rejoin the deleted organization and invite others. This effectively restored the organization without approval.

medium.com

Published on medium.com

Hello, I’m Ahmed Mahmoud. I work as a penetration tester on HackerOne.

Ahmed Mahmoud, 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 application did not invalidate pending invitation tokens when an organization was deleted, and did not check whether the organization still existed before accepting an invitation.

Impact

An attacker could rejoin a deleted organization with old permissions and invite others, effectively restoring the organization without approval.

What the attacker needed

An existing organization; a pending invitation link; the organization is deleted

The fix

The application should cancel all invitation links immediately upon organization deletion and block new members from joining if the organization is not active.

How it was found

  1. Create an account and a new organization.
  2. Invite a member to your organization.
  3. Delete your organization or your account.
  4. Accept a pending invitation.
  5. Observe that you regain access to the deleted organization and can still invite new users.

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 delete an organization, you expect it to be gone for good. But here, an old invitation link still worked, so someone could use it to get back into the deleted organization and even add new people. This means the deletion didn't fully clean up the invitations.

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.

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.