The Invite That Took Over Accounts: A Logic Flaw
The collaborator invite API returned a login token for the invited user directly to the inviter. An attacker could use that token in a login URL to take over the invited user's account without any action from the victim.
medium.com
Published on medium.com
Hey Hackers, I am Parth Narula. A penetration tester, bug hunter, red teamer and overall a security researcher.
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 invite endpoint returned an active login token for the invited user to the inviter, breaking the intended verification flow.
Impact
An attacker could take over the account of any invited user without their consent or interaction.
What the attacker needed
Attacker has a valid account; attacker can send invites; victim's email address is known
How it was found
- Send a collaborator invite request with the victim's email address.
- Observe that the API response includes a token field for the invited user.
- Send an invite to your own email to learn the login URL structure, which uses a loginToken parameter.
- Replace the token in the login URL with the victim's token from the API response.
- Visit the modified URL and become logged in as the invited user.
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 system should send them a secret link by email. Here, the system also gave that secret link back to the person sending the invite. The attacker could then open the link themselves and be logged in as the invited person.
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.