Skip to content
Access control Disclosed report Beginner

Team member invitations to sandboxed teams are not invalidated consistently

An invitation link stayed valid and could be accepted by accounts that were never invited, letting them join the team as a Manager.

mazengamal Follow

Originally disclosed on HackerOne

Bounty$500 View original
  • Triaged in 19 days
  • Fixed in 21 days
  • Paid in 23 days
  • Disclosed after 53 days

hello today i found a Bug about Auth in Send invitation to member to join the team ,, so if Now The Victim Send invition to Another Victim Account to join the team as a Manager,, the link of the invitation is will Be Valid For Many Many Many time to Accept the invtiation from Another Accounts in H1 so let's say example : A send invtation emai to B

the other Acconts could access to the Account and open it and Accept the invtiation Without invtiet them !!!

the invetion url :https://hackerone.com/invitations/54a725ee8c5b8d7c1225e8b486716145

the poc : http://youtu.be/dL7FOBCssFE

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

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is HackerOne's own team feature, specifically the flow that sends an invitation to a member to join a team. The researcher reports an authentication problem in that flow: an invitation link, once issued, stays valid for a very long time and can be accepted by accounts other than the one it was meant for.

The scenario described is straightforward. A victim sends an invitation to another account to join the team as a Manager. The invitation email carries a link, and that link remains usable "for many many many time". Because of this, other accounts can open the link and accept the invitation even though they were never invited.

The researcher gives a concrete example: A sends an invitation email to B, and other accounts can then access the account and accept the invitation without having been invited at all.

The invitation URL is given as:

Text
https://hackerone.com/invitations/[redacted]

The proof of concept is a video:

Or watch on YouTube
From the original on HackerOne

The report records a bounty of 500.00 USD and was disclosed on 2015-03-28. The weakness is classified as Improper Authentication (generic). No severity rating or CVSS score is given, and the report does not describe a fix.

Root cause

The report describes the invitation link staying valid and being accepted by other accounts. One possible cause is that acceptance does not check that the account accepting the invitation is the one it was addressed to. The second part of the problem is lifetime. The link stays valid for a long time, so someone else can use it to accept the invitation.

In other words, whoever holds the link can use it to accept the invitation.

Impact

Within the report's own framing, another account that opens the invitation link can accept it and join the team as a Manager without being invited. Since the example role is Manager, the practical consequence is unauthorised access to the team and whatever a Manager can do there. The report does not enumerate those permissions, so the exact blast radius is not stated. The report also does not explain how an attacker would obtain the link in the first place; it only states that other accounts can use it.

How this kind of bug works

Invitation flows are a classic place for authentication mistakes because they combine three things: a secret delivered out of band (usually by email), a state change (adding a user to a team or organisation), and a role assignment. Bugs appear when any of these is handled loosely.

The common failure modes are:

  1. Unbound tokens. The token is validated but the accepting session is not compared with the invited identity. Anyone holding the link can redeem it.
  2. Reusable tokens. The token is not consumed on first acceptance, so it can be redeemed repeatedly, including after the legitimate user has joined.
  3. Long or missing expiry. Tokens that never expire, or expire after weeks, widen the window in which a leaked link is useful.
  4. Role escalation at acceptance. The invitation carries a role, and acceptance applies it without re-checking that the inviter was allowed to grant that role.
  5. Leakage. Invitation links end up in referrer headers, shared inboxes, chat logs, ticket systems or email forwarding, which is how a third party gets hold of them.

The defence is to treat the invitation token as a single-use, short-lived, recipient-bound credential: verify the logged-in user's email against the invited address, consume the token on acceptance, expire it quickly, and re-check authorisation for the role being granted at the moment of acceptance.

How to test for it

A general method for this bug class:

  1. Map the flow. Create a team or organisation, invite an address you control, and capture the invitation link from the email. Note the token format and where it appears in the URL or request body.
  2. Test identity binding. Log in as a second account with a different email and try to accept the invitation using the captured link. A positive result is the second account joining the team. A negative result is an error stating the invitation is for another address.
  3. Test reuse. Accept the invitation once with the intended account, then try the same link again from a fresh session or another account. A positive result is a second successful acceptance.
  4. Test expiry. Hold a link and retry it after a reasonable interval. If the token still works days later, that is a finding, though its severity depends on how the link could leak.
  5. Test role handling. Invite with a low role and inspect whether the acceptance request carries the role, then try to change it to a higher role.
  6. Test revocation. Remove the invited user or cancel the invitation, then retry the link. A positive result is the link still granting access after cancellation.

Common false positives: the application may deliberately allow any logged-in user with the link to join a public or open team; the second account may already have been a member; or the apparent success may be a UI message without an actual membership change. Always confirm by checking the member list or an authenticated API response, not just the page text.

How it is fixed

Standard fixes for invitation flaws:

  • Bind the token to the invited email address and reject acceptance from any other identity.
  • Make the token single-use and invalidate it on acceptance, cancellation and removal of the member.
  • Apply a short expiry and rotate tokens on re-invitation.
  • Re-check the inviter's permission to grant the requested role at acceptance time.
  • Avoid putting long-lived secrets in URLs where they can leak through referrers and logs; where possible, require an authenticated session in addition to the token.

Hunting notes

Invitation and onboarding flows hide in team management, organisation settings, workspace admin panels and any product with seats or roles. Recon signals worth watching: endpoints containing invite, invitation, join, accept, token or magic; emails that contain a direct link with a long random path segment; and features where roles are assigned at invite time.

To make a report land, show the full chain: the invitation as issued, the acceptance from an unintended account, and the resulting membership or role visible in the application. Include the exact URL or request, the account state before and after, and a short video or screenshot sequence. If the link could plausibly leak (shared inboxes, forwarded mail, referrer headers), say so, because that is what turns a theoretical weakness into a realistic attack.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

HackerOne is a platform where security researchers report bugs to companies. It has a team feature: a team has members, and members can hold roles such as Manager. To add someone to a team, an existing member sends them an invitation by email. The email contains a link, and clicking that link lets the recipient join the team.

The researcher found a problem in that invitation flow. The invitation link, once it has been created, stays valid for a very long time. It stays valid for a very long time, so other accounts can open it and accept the invitation. So any other account that gets hold of the link can open it and accept the invitation, even though that account was never invited.

The scenario in the report is simple. A victim sends an invitation to another account to join the team as a Manager. The invitation email carries a link, and that link remains usable "for many many many time". Because of this, other accounts can open the link and accept the invitation without having been invited at all.

The researcher gives a concrete example: A sends an invitation email to B, and other accounts can then access the account and accept the invitation without being invited.

The invitation URL in the report is:

Text
https://hackerone.com/invitations/[redacted]

That long string of letters and digits at the end is the invitation token. A token is a secret value that stands in for something, here the right to join the team. Think of it like a cloakroom ticket: whoever holds the ticket can collect the coat, because the attendant checks the ticket, not the person. If the ticket is not tied to you and never expires, anyone who finds it can use it.

The proof of concept is a video:

Or watch on YouTube
From the original on HackerOne

The report records a bounty of 500.00 USD and was disclosed on 2015-03-28. The weakness is classified as Improper Authentication (generic). No severity rating or CVSS score is given, and the report does not describe a fix.

Why it matters

Within the report's own framing, another account that opens the invitation link can accept it and join the team as a Manager without being invited. Since the example role is Manager, the practical consequence is unauthorised access to the team and whatever a Manager can do there. The report does not list those permissions, so the exact reach of the problem is not stated. The report also does not explain how an attacker would obtain the link in the first place; it only states that other accounts can use it.

In general, how this kind of bug works

Invitation flows are a classic place for authentication mistakes. Authentication means proving who you are, for example by logging in with an email address and password. An invitation flow combines three things: a secret delivered out of band (usually by email), a change of state (adding a user to a team), and a role assignment. Bugs appear when any of these is handled loosely.

The common failure modes are:

  1. Unbound tokens. The token is checked, but the account accepting it is not compared with the invited person. Anyone holding the link can redeem it.
  2. Reusable tokens. The token is not used up on first acceptance, so it can be redeemed again, including after the legitimate user has joined.
  3. Long or missing expiry. Tokens that never expire, or expire after weeks, widen the window in which a leaked link is useful.
  4. Role escalation at acceptance. The invitation carries a role, and acceptance applies it without re-checking that the inviter was allowed to grant that role.
  5. Leakage. Invitation links end up in referrer headers (the address of the page you came from, which browsers can send to the next site), shared inboxes, chat logs, ticket systems or forwarded email. That is how a third party gets hold of them.

The defence is to treat the invitation token as a single-use, short-lived, recipient-bound credential: check the logged-in user's email against the invited address, use up the token on acceptance, expire it quickly, and re-check permission for the role being granted at the moment of acceptance.

In general, how to test for it

A general method for this bug class:

  1. Map the flow. Create a team or organisation, invite an address you control, and capture the invitation link from the email. Note the token format and where it appears in the URL or request body.
  2. Test identity binding. Log in as a second account with a different email and try to accept the invitation using the captured link. A positive result is the second account joining the team. A negative result is an error saying the invitation is for another address.
  3. Test reuse. Accept the invitation once with the intended account, then try the same link again from a fresh session or another account. A positive result is a second successful acceptance.
  4. Test expiry. Hold a link and retry it after a reasonable interval. If the token still works days later, that is a finding, though how serious it is depends on how the link could leak.
  5. Test role handling. Invite with a low role and inspect whether the acceptance request carries the role, then try to change it to a higher role.
  6. Test revocation. Remove the invited user or cancel the invitation, then retry the link. A positive result is the link still granting access after cancellation.

Common false positives: the application may deliberately allow any logged-in user with the link to join a public or open team; the second account may already have been a member; or the apparent success may be a message on the page without an actual membership change. Always confirm by checking the member list or an authenticated API response, not just the page text.

In general, how it is fixed

Standard fixes for invitation flaws:

  • Bind the token to the invited email address and reject acceptance from any other identity.
  • Make the token single-use and invalidate it on acceptance, cancellation and removal of the member.
  • Apply a short expiry and issue a new token on re-invitation.
  • Re-check the inviter's permission to grant the requested role at acceptance time.
  • Avoid putting long-lived secrets in URLs where they can leak through referrers and logs; where possible, require a logged-in session in addition to the token.

Glossary

  • Authentication: proving who you are, usually by logging in.
  • Authorisation: deciding what a logged-in user is allowed to do.
  • Bounty: a payment a company makes to a researcher for a valid bug report.
  • Credential: a secret that proves identity or grants access, such as a password or a token.
  • CVSS: a standard scoring system for how severe a vulnerability is.
  • Disclosure: making a bug report public.
  • Endpoint: a specific address or action in a web application that a request can target.
  • Expiry: the point in time after which a token stops working.
  • Improper Authentication: a weakness class where the application does not correctly verify identity.
  • Invitation token: the secret value in an invitation link that grants the right to join.
  • Manager: a team role with elevated permissions, as used in the report's example.
  • Proof of concept (PoC): a demonstration that a bug can actually be triggered.
  • Referrer header: information a browser can send to a site about the page you came from.
  • Request: a message a browser sends to a server asking it to do something.
  • Role: a named set of permissions, such as Manager or member.
  • Session: the period during which a site remembers that you are logged in.
  • Severity: a rating of how damaging a vulnerability is.
  • Token: a secret value used in place of something else, here the right to accept an invitation.
  • Vulnerability: a weakness in software that can be abused to do something unintended.

More from HackerOne

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.