Skip to content
Account takeover Write-up Beginner

How a Resend Invitation Feature Led to Unauthorized Account Creation

The resend invitation feature returned the secret invitation code in the HTTP response, allowing an attacker to obtain another user's invitation token. By replacing the token in their own invitation URL, the attacker could set a password and activate the victim's account without any interaction from the victim.

vineet08 Follow

Published on vineet08.medium.com

Hello fellow bug bounty hunters, hope you guys are doing well and finding lots of bugs.

Vineet Singh, on vineet08.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

The application disclosed the secret invitation token in the HTTP response of the resend invitation request instead of only sending it via email.

Impact

An attacker could activate and take over any invited user's account without any action from the victim, completely bypassing the invitation workflow.

What the attacker needed

A valid account; ability to invite a user; intercept HTTP traffic

The fix

The resend invitation endpoint should not return the invitation token in the response; the token should only be sent to the invited user's email.

How it was found

  1. Log in with a valid account and create a team.
  2. Add a player using an email address you own and receive the invitation email.
  3. Open the invitation link and note the invitation code in the URL.
  4. Create another player using a different email address.
  5. Click 'Resend Invitation' and intercept the request.
  6. Observe the response and extract the invitation code.

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 app sends them a secret link with a code. The app also has a 'resend invitation' button, and when the attacker clicked it, the server sent back the secret code in the response. The attacker could then use that code to set a password for the invited person's account, taking it over without the victim doing anything.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by vineet08

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.