Skip to content
Access control Write-up Beginner

The Never-Ending Party: Invite Links That Never Die

Organization invitation tokens never expire, remain valid after the invited user is removed, and multiple invites with different roles stay valid at once. An attacker could reuse an old admin invite to regain higher privileges or rejoin an organisation after removal.

ch1ta Follow

Published on ch1ta.medium.com

As usual, while exploring the features of a platform, I came across the invite system. I started casually poking around, but then — I literally got out of bed, sat at my desk, and began testing seriously.

Lakshya, on ch1ta.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 invitation tokens are not invalidated on use, on reissue, or on removal of the user, so old links remain valid indefinitely.

Impact

An attacker could escalate from a basic user to admin and could rejoin an organisation after being removed, breaking revocation and access control.

What the attacker needed

Attacker has an email address; organisation admin sends invites; attacker can access old invite links

The fix

Invitation tokens should expire after first use or a short time, be invalidated when a new invite is issued, and be revoked when the user is removed; the text says the issue is still open and awaiting a fix.

How it was found

  1. An organisation admin sends two invites to the same email address, one with the Admin role and one with the User role.
  2. The invited person accepts the User invite and joins the organisation.
  3. The person is later removed from the organisation.
  4. The person clicks the old Admin invite link and successfully rejoins as 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 write-up has not been written yet. The Original tab links to the source.

When you invite someone to a team, the platform creates a special link. This report found that those links never stop working, even after the person is removed or after a newer invite is sent. So someone could keep an old link and use it later to get back in, possibly with more power than they should have.

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 ch1ta

View all

4 more disclosed reports, best first.

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.