Skip to content
Access control Disclosed report Beginner

Pending invites remain valid even after the inviter is removed.

When an admin invites another user with admin privileges and is later removed from the team, the pending invite remains valid and can still be accepted. If the invite was already accepted, the new admin stays in the team, so a removed admin's influence is not fully revoked.

mantu1738 Follow

Originally disclosed on HackerOne

High 7.8 View original
  • Fixed in 15 days
  • Disclosed after 51 days

Summary:

When an admin (A) invites another user (B) with admin privileges, removing the inviter (A) does not invalidate the pending invite for B. Furthermore, if B has already accepted the invite, B remains in the team with admin privileges. This could allow unauthorized admin access even after the original inviter is removed.

Steps to Reproduce

  1. Invite a user (A) to the team with admin privileges.
  2. A accepts the invitation and becomes an admin.
  3. A invites another user (B) to the team with admin privileges.
  4. Remove user A from the team.
  5. Observe:
    • If B has not accepted the invite, the invite remains valid.
    • If B has already accepted the invite, B remains in the team with admin privileges.

# Expected Behavior

  • Pending invites created by a removed admin should become invalid.
  • Members already added by the removed admin should either be reviewed or removed automatically, depending on platform policy.

#Actual Behavior

  • Pending invites remain valid and can be accepted.
  • Accepted members remain in the team with admin privileges.

##POC

Impact

  • Unauthorized users may gain admin access after the inviter has been removed.
  • Violation of least privilege principles and potential for privilege escalation.
  • Security audit and compliance issues, as removed admins cannot fully revoke their influence.

The original report as published on HackerOne, by mantu1738. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the system does not link pending invitations or existing memberships to the inviter, so removing the inviter does not revoke or review them.

Impact

A removed admin's pending invite can still be accepted, and an already accepted invitee keeps admin rights, which could let unauthorised users gain or retain admin access.

What the attacker needed

An admin account that can invite others; the inviter is later removed from the team

How it was found

  1. Invite a user to the team with admin privileges.
  2. That user accepts the invitation and becomes an admin.
  3. That admin invites another user with admin privileges.
  4. Remove the first admin from the team.
  5. Observe that the pending invite remains valid, or the accepted member remains an admin.

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 report has not been written yet. The Original tab links to the source.

In a team app, an admin can invite other people. If that admin is later removed, you would expect their invitations to be cancelled too. Here they are not, so someone the removed admin invited can still join as an admin, or stay as an admin if they already joined.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by mantu1738

View all

2 more disclosed reports, best first.

More from Omise

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.