Skip to content
Account takeover Write-up Intermediate

Full Account Takeover via Password Reset Link Manipulation

The password reset endpoint accepted an array of email addresses in the email parameter, so a single reset request could be sent to both the victim and the attacker. The attacker then used the shared reset link delivered to their own inbox to set the victim's password and take over the account.

ikhaleelkhan Follow

Published on ikhaleelkhan.medium.com

This report aims to outline my journey in reproducing this vulnerability, demonstrating its potential for exploitation, and stressing the critical importance of securing web application workflows against such attack vectors.

Khaleel Khan, on ikhaleelkhan.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 reset handler accepted an array where it expected a single email string and generated one shared reset token for every address in it, without checking that the requester owns the account.

Impact

An attacker could take over any account on the platform without any action from the victim, gaining access to private and sensitive information.

What the attacker needed

Victim's email address known; a proxy tool to edit the request; no victim interaction needed

The fix

The reset process should be fixed so the email parameter accepts only a single address and the reset token is bound to the account owner, with extra verification of the requester.

How it was found

  1. Open the password reset page and submit the victim's email address.
  2. Intercept the outgoing reset request with a proxy.
  3. Change the email field in the JSON body so it holds both the victim's and the attacker's addresses.
  4. Forward the modified request to the server.
  5. Both inboxes receive an email containing the same reset link.
  6. Open the link from the attacker's email and set a new password for the victim's 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 forget a password, a site emails you a special link that lets you set a new one. Here, the request that asks for that link could be edited to name two email addresses at once, and the site sent the same link to both. The attacker only had to add their own address, then open the link they received to change the victim's 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 ikhaleelkhan

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.