Skip to content
Access control Disclosed report Beginner

Email Forwarding invitations for Drafts are not marked as accepted, allowing multiple users to join a program after disabling Email Forwarding

Invitation links for a sandboxed team on HackerOne stayed valid after being accepted, so multiple users could join the team using one link.

d4rk_g1rl Follow

Originally disclosed on HackerOne

Bounty$500 Low 3.8 View original
  • Triaged in 44 hours
  • Fixed in 12 days
  • Paid in 5 days
  • Disclosed after 18 days

###STEPS TO REPRODUCE:

  1. I have found a sandboxed team in hackerone,named █████.
  2. The manager of that team sends an invitation to: ██████████ ( which email was not exist on hackerone account)
  3. Now the invitation link receive was ========> ████
  4. I logged in from multiple researcher account and visited the link and accepted the request.
  5. Now the invitation link was still live.

So, a member can pass this token to other people and they will be added to the team.I used this token multiple times and it's still live.

Impact

The invitation token can be use in multiple times.

The original report as published on HackerOne, by d4rk_g1rl. 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 itself, specifically the team invitation flow that relies on email forwarding. The researcher found a sandboxed team, referred to in the report as █████, and worked from the invitation that its manager sent.

The steps in the report are short and worth following in order:

  1. A sandboxed team was identified.
  2. The team manager sent an invitation to an email address that did not exist on a HackerOne account.
  3. The invitation link was received.
  4. The researcher logged in from multiple researcher accounts, visited the link and accepted the request each time.
  5. The invitation link was still live after those acceptances.

The report does not include the invitation URL, the token, the email address or any HTTP request or response. The link is only described as an invitation link, so there is nothing to reproduce verbatim here beyond the steps above.

The finding is that the invitation token could be used more than once. A member who holds the link can pass it to other people, and each of them is added to the team. The researcher states that the token was used multiple times and remained live.

Root cause

The report points to a state problem in the invitation lifecycle. When an invitation is accepted, the server is expected to mark it as accepted and invalidate the token so that it can no longer be redeemed. Here, accepting the invitation did not change that state, so the same token kept working for further accounts.

The report title refers to email forwarding invitations for Drafts not being marked as accepted, allowing multiple users to join after disabling email forwarding. The likely cause is that the acceptance handler adds the user to the team but does not persist an accepted or consumed flag on the invitation record, or does not check that flag when the token is presented again. The report does not describe the server-side implementation, so this remains an inference from the observed behaviour.

Impact

Because the token stays valid, anyone who obtains the invitation link can join the team. The report describes a member passing the token to other people, who are then added to the team. The researcher used the token multiple times and it was still live.

The report does not describe what those added accounts could then access, so the practical reach of the issue depends on the permissions the team grants. The platform rated it low severity with a CVSS score of 3.8, classified it as a business logic error, and paid a bounty of 500.00 USD. The report was disclosed on 2018-04-18.

How this kind of bug works

Single-use tokens are a common pattern: password reset links, email verification links, invitation links, magic login links and similar flows. The security property they rely on is that the token is bound to one action and one redemption. That property is enforced entirely by server-side state, not by the secrecy of the link alone.

The failure mode is a missing or incomplete state transition. The server validates the token, performs the action (adding the user, resetting the password, verifying the address), and returns success, but never records that the token has been consumed. A second request with the same token passes validation again. Related variants include marking the token consumed only after a later step, checking the flag but not writing it, or scoping the flag to the wrong record so that a new invitation resets it.

Defences are straightforward in principle: store a per-token state (issued, accepted, expired, revoked), check it on every redemption, and transition it atomically so that two concurrent requests cannot both succeed. Tokens should also expire, be bound to the intended recipient where the flow allows it, and be invalidated when the underlying invitation is revoked or superseded.

How to test for it

Look for any flow that hands out a link carrying a token: team and organisation invitations, password reset, email change confirmation, account verification, share links and one-time download links.

  1. Create the invitation or token in a controlled account you own, and capture the full link.
  2. Redeem it once with a first account and confirm the action succeeded.
  3. Redeem the exact same link again, either with a second account or by replaying the same request, and observe whether the action succeeds a second time.
  4. Repeat after the intended state change, for example after the invitation has been accepted, after the invited address has been changed, or after the invitation has been revoked.
  5. Where the flow involves email forwarding, test the case the report describes: disable forwarding, then try the link again.

A positive result is a second successful redemption: a second account added to the team, a second password change accepted, or a second confirmation processed. Record the responses for both attempts so the difference, or lack of it, is visible.

Common false positives: the second attempt returns an error page but the action still happened; the application issues a fresh token on each visit, so the link appears reusable when it is not; the second redemption succeeds only because the first account was removed in between; or the flow is intentionally multi-use, such as a public share link, where reuse is by design. Confirm that the same token value, not a newly generated one, was accepted twice.

How it is fixed

Mark the token as consumed in the same transaction that performs the action, and reject any later presentation of a consumed token. Enforce single use atomically so concurrent requests cannot both pass the check. Expire tokens after a defined period, revoke them when the invitation is withdrawn or replaced, and bind them to the intended recipient or context where the flow permits. Return a generic error for consumed or invalid tokens so the response does not reveal which state the token is in.

Hunting notes

Invitation and onboarding flows are fertile ground because they combine multiple state transitions (sent, forwarded, accepted, revoked) with access control decisions. Look at team and organisation invites, especially where the invited address does not yet have an account, and at any flow that mentions forwarding, drafts or pending invitations. Password reset and email change links are worth the same replay test.

Recon signals include endpoints that accept a token as a path segment or query parameter, responses that differ between first and second use, and features that let an inviter resend, revoke or edit an invitation. Comparing the response body and status for a first and second redemption is usually enough to spot a missing state check.

To make the report land, show the same token value accepted twice, name the accounts involved, and describe what the second account gains. If the added account inherits team permissions, say which ones. Keep the reproduction minimal and deterministic so a triager can repeat it without guessing.

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. 8 min read.

What happened, in plain words

HackerOne is a platform where companies run bug bounty programs: they invite security researchers to test their software and report problems. Each company has a team area on HackerOne, and people join that team through an invitation. The invitation arrives as a link containing a token that acts like a temporary key. Whoever holds the link can use it to join.

The researcher found a sandboxed team, a test team set up for practice, named █████ in the report. The manager of that team sent an invitation to an email address that did not belong to any HackerOne account. The researcher logged in from several different researcher accounts, visiting the link and accepting the invitation each time. Every acceptance worked, and the link was still live afterwards.

That is the whole bug: an invitation that should work once worked again and again. Anyone who gets hold of the link can pass it on, and each new person is added to the team.

What the report shows

The target is HackerOne itself, specifically the team invitation flow that relies on email forwarding. The researcher worked from an invitation sent by the manager of the sandboxed team.

The steps are short, and each one matters:

  1. A sandboxed team was identified. A test team is a safe place to experiment without touching a real customer's program.
  2. The team manager sent an invitation to an email address that did not exist on a HackerOne account. The report notes that the email address did not exist on a HackerOne account.
  3. The invitation link was received. The link carries the token, the key that unlocks the join action.
  4. The researcher logged in from multiple researcher accounts, visited the link and accepted the request each time. Each acceptance succeeded, and the link was still live afterwards.
  5. The invitation link was still live after those acceptances. The link was still live after those acceptances.

The report does not include the invitation URL, the token, the email address or any HTTP request or response, so there is nothing to copy verbatim beyond the steps above.

The finding is that the invitation token could be used more than once. A member who holds the link can pass it to other people, and each of them is added to the team. The researcher states that the token was used multiple times and remained live.

Why it happens

The report points to a state problem in the invitation lifecycle. Think of a paper invitation with a tear-off stub: once the guest arrives, the host should tear the stub so the invitation cannot be used again. Here, accepting the invitation did not change that state, so the same token kept working for further accounts.

The report title refers to email forwarding invitations for Drafts not being marked as accepted, allowing multiple users to join after disabling email forwarding. The likely cause is that the acceptance handler adds the user to the team but does not save an accepted or consumed flag on the invitation record, or does not check that flag when the token is presented again. The report does not describe the server-side implementation, so this remains an inference from the observed behaviour.

Impact

Because the token stays valid, anyone who obtains the invitation link can join the team. The report describes a member passing the token to other people, who are then added to the team. The researcher used the token multiple times and it was still live.

The report does not describe what those added accounts could then access, so the practical reach depends on the permissions the team grants. The platform rated it low severity with a CVSS score of 3.8, classified it as a business logic error, and paid a bounty of 500.00 USD. The report was disclosed on 2018-04-18.

In general, how this kind of bug works

Single-use tokens are a common pattern: password reset links, email verification links, invitation links, magic login links and similar flows. The security property they rely on is that the token is bound to one action and one redemption. That property is enforced entirely by server-side state, not by the secrecy of the link alone. A secret link is like a key; a single-use key must also be taken out of the lock after the first turn.

The failure mode is a missing or incomplete state transition. The server validates the token, performs the action (adding the user, resetting the password, verifying the address), and returns success, but never records that the token has been consumed. A second request with the same token passes validation again. Related variants include marking the token consumed only after a later step, checking the flag but not writing it, or scoping the flag to the wrong record so that a new invitation resets it.

Defences are straightforward in principle: store a per-token state (issued, accepted, expired, revoked), check it on every redemption, and transition it atomically so that two concurrent requests cannot both succeed. Tokens should also expire, be bound to the intended recipient where the flow allows it, and be invalidated when the underlying invitation is revoked or superseded.

In general, how to test for it

Look for any flow that hands out a link carrying a token: team and organisation invitations, password reset, email change confirmation, account verification, share links and one-time download links.

  1. Create the invitation or token in a controlled account you own, and capture the full link.
  2. Redeem it once with a first account and confirm the action succeeded.
  3. Redeem the exact same link again, either with a second account or by replaying the same request, and observe whether the action succeeds a second time.
  4. Repeat after the intended state change, for example after the invitation has been accepted, after the invited address has been changed, or after the invitation has been revoked.
  5. Where the flow involves email forwarding, test the case the report describes: disable forwarding, then try the link again.

A positive result is a second successful redemption: a second account added to the team, a second password change accepted, or a second confirmation processed. Record the responses for both attempts so the difference, or lack of it, is visible.

Common false positives: the second attempt returns an error page but the action still happened; the application issues a fresh token on each visit, so the link appears reusable when it is not; the second redemption succeeds only because the first account was removed in between; or the flow is intentionally multi-use, such as a public share link, where reuse is by design. Confirm that the same token value, not a newly generated one, was accepted twice.

In general, how it is fixed

Mark the token as consumed in the same transaction that performs the action, and reject any later presentation of a consumed token. Enforce single use atomically so concurrent requests cannot both pass the check. Expire tokens after a defined period, revoke them when the invitation is withdrawn or replaced, and bind them to the intended recipient or context where the flow permits. Return a generic error for consumed or invalid tokens so the response does not reveal which state the token is in.

In general, where to look

Invitation and onboarding flows are fertile ground because they combine multiple state transitions (sent, forwarded, accepted, revoked) with access control decisions. Look at team and organisation invites, especially where the invited address does not yet have an account, and at any flow that mentions forwarding, drafts or pending invitations. Password reset and email change links are worth the same replay test.

Recon signals include endpoints that accept a token as a path segment or query parameter, responses that differ between first and second use, and features that let an inviter resend, revoke or edit an invitation. Comparing the response body and status for a first and second redemption is usually enough to spot a missing state check.

To make the report land, show the same token value accepted twice, name the accounts involved, and describe what the second account gains. If the added account inherits team permissions, say which ones. Keep the reproduction minimal and deterministic so a triager can repeat it without guessing.

Glossary

  • Bug bounty program: a scheme where a company invites researchers to find and report security problems in its software, often paying for valid reports.
  • Sandboxed team: a test team on the platform, used for practice rather than for a real customer program.
  • Invitation flow: the sequence of steps by which a person is invited to join a team and accepts.
  • Token: a long random string embedded in a link that acts as a temporary key for one action.
  • Single-use token: a token that should stop working after it has been redeemed once.
  • State: the recorded status of something, such as whether an invitation is pending, accepted, expired or revoked.
  • State transition: a change from one state to another, for example from pending to accepted.
  • Consumed flag: a stored marker saying a token has already been used.
  • Atomic: done as one indivisible operation, so two simultaneous requests cannot both succeed.
  • Business logic error: a flaw in how a feature's rules are implemented, rather than in low-level code such as memory handling.
  • CVSS: a standard scoring system that rates the severity of a vulnerability, here 3.8.
  • Severity: a label for how serious a bug is, here low.
  • Bounty: the money paid to a researcher for a valid report, here 500.00 USD.
  • Disclosure: the point at which a report is made public.
  • False positive: a result that looks like a bug but is not one.
  • Replay: sending the same request or using the same link again.
  • Endpoint: a specific address on a server that accepts requests.
  • Query parameter: the part of a URL after the question mark that carries values, such as a token.
  • Triager: the person who reviews a submitted report and decides whether it is valid.

More by d4rk_g1rl

View all

5 more disclosed reports, best first.

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.