Skip to content
Account takeover Write-up Beginner

Forging a Path to Account Takeover: Copy Password Reset Link Vulnerability worth $$$$.

The password reset link endpoint returned a valid reset link for any user ID, not just invited team members, and the password change succeeded even though the UI showed an error. An attacker could take over any account by guessing sequential user IDs and using the returned link.

Manav Bankatwala Follow

Published on infosecwriteups.com

{{media:0}}

Manav Bankatwala, on infosecwriteups.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 missing authorization check on the password reset link endpoint, allowing any user ID to be supplied and a valid reset link returned.

Impact

An attacker could take over any user account, including organization accounts, by guessing sequential user IDs and using the returned reset link, even though the UI showed an error.

What the attacker needed

A team management feature with copy reset link; sequential user IDs; no interaction from victim

The fix

The organization implemented the necessary fix, likely by adding an authorization check to the endpoint.

How it was found

  1. Note the user IDs of invited and non-invited users and capture the request sent when clicking the copy password reset link button.
  2. Change the userid parameter in the request to another user's ID.
  3. Send the request and observe that a password reset link is returned instead of an authorization error.
  4. Open the returned link, set a new password, and see an error on the frontend.
  5. Try logging in with the old password (fails) and then with the new password (succeeds), confirming the password was changed despite the error.

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.

A password reset link is a special URL that lets someone set a new password. Here, a team feature let managers copy such a link for invited users, but the server did not check that the requested user was actually in the manager's team. Because user IDs were simple numbers, anyone could ask for another person's reset link and change their password.

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 Manav Bankatwala

View all

3 more disclosed reports, 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.