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.
- 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
- Invite a user (A) to the team with admin privileges.
- A accepts the invitation and becomes an admin.
- A invites another user (B) to the team with admin privileges.
- Remove user A from the team.
- 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.
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
- Invite a user to the team with admin privileges.
- That user accepts the invitation and becomes an admin.
- That admin invites another user with admin privileges.
- Remove the first admin from the team.
- 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.