Skip to content
Business logic Write-up Intermediate

Stale Admin Invitations Lead to Unauthorized Admin Access

Admin invitations on a documentation platform never expired and were not revoked when the inviting admin was removed from the project. An admin who was removed could leave behind pending invites and later accept one to regain full admin access without the owner's knowledge.

hwedy00 Follow

Published on hwedy00.medium.com

I want to share my experience discovering my first serious logic bug, which I consider one of the most impactful vulnerabilities I’ve found so far.

Mohamed Hwedy, on hwedy00.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 invitation tokens had no expiry and were not invalidated when the inviting admin was removed, so pending invites outlived the inviter's access.

Impact

A removed admin could regain full admin access later, modify or delete documentation, add admins and keep persistent access, defeating the owner's removal.

What the attacker needed

A project with an owner and admin roles; attacker holds an admin role at some point; attacker can create invites before removal

The fix

Invitations should expire and should be revoked when the inviting admin is removed or loses their role.

How it was found

  1. Owner invites an admin and that admin accepts.
  2. The admin sends an admin invite to another address.
  3. The owner removes that admin from the project.
  4. The pending invite is accepted and grants admin access.

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.

A project owner can invite other people to be admins. Normally, if the owner removes an admin, that person should lose all power. Here, the removed admin had already created extra invitations, and those invitations still worked later, so the removed person could quietly become an admin again. The invitation link was treated as a permanent key rather than something that expires or gets cancelled.

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.