Skip to content
Account takeover Write-up Beginner

Account takeover via Password reset

The password reset form accepted a username and an arbitrary email address, sending the reset link to the attacker-supplied email. An attacker who knew only a victim's username could therefore reset the victim's password and take over the account.

Rahulkrishnan_R_Panicker Follow

Published on medium.com

I was looking at the authentication functionality of a subdomain i will call it as mdu.example.com

Rahulkrishnan R Panicker, 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 password reset endpoint trusted a user-supplied email address instead of using the email address stored for the account.

Impact

An attacker with only a username could take over any user's account, and if that user had admin privileges the harm to the institution would be greater.

What the attacker needed

Victim's username; attacker-controlled email address

The fix

The password reset should send the link only to the email address already registered to the account, not to an address supplied in the request.

How it was found

  1. Go to the password reset page.
  2. Enter the victim's username and your own email address.
  3. Submit the form.
  4. Receive the password reset link in your inbox.
  5. Use the link to reset the victim's password.

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 form should only send a reset link to the email address already registered to the account. Here, the form let the person requesting the reset type any email address, and the system sent the link there. So anyone who knew a username could receive the reset link and set a new password for that account.

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 Rahulkrishnan_R_Panicker

View all

5 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.