Skip to content
Account takeover Write-up Beginner

Leaky Response, Easy Takeover!

The invite-user response exposed a secret key that was also used in the invitation registration link. An attacker could reuse that key to set a password for the invited user's account and take it over, including enabling two-factor authentication.

medium.com

Published on medium.com

Happy New Year, everyone! 🎉 I hope you’re all doing great. A huge thank you for 200+ followers – I’m truly grateful that you enjoy my blogs.

Tanya Goyal, on 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 response disclosed the invitation key, and the registration flow trusted that key alone to let anyone set a password without verifying the invited user's identity.

Impact

An attacker could take over an invited user's account and enable two-factor authentication, leaving the victim without access.

What the attacker needed

Ability to invite users; access to the invite response

How it was found

  1. Invite a user through the site while capturing traffic.
  2. Inspect the response and find the key parameter.
  3. Copy the key and put it into the invitation registration URL.
  4. Open the URL and set a password for the invited account.

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 site, the site often creates a special link for them to finish signing up. Here, the site accidentally included the secret part of that link in a response that the inviter could see. That let the inviter finish the signup themselves and set the password, locking out the real 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.

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.