Skip to content
Account takeover Write-up Intermediate

Unauthenticated Account Takeover Through Forget Password

The password reset flow used two separate requests: one returned the account's password and email for a given vendor identifier, and a second sent a newly generated password to an email address supplied in the request itself. An attacker who knew a valid vendor identifier could obtain credentials and log into the account.

Nikhil Follow

Published on infosecwriteups.com

I was hunting a full month on a federal private program and comes up with plenty of account takeovers. I am going to share one of the findings.

Nikhil (niks), 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 the reset endpoint returned sensitive account data (password and email) in its response and trusted a client-supplied email address for delivery, instead of keeping the reset server-side and bound to the stored address.

Impact

An attacker with a valid vendor identifier could obtain the account's password and email and log in, taking over the account.

What the attacker needed

A valid nine-digit vendor identifier; unauthenticated access to the reset flow

How it was found

  1. Find the login page for the online invoice system via search results on the subdomain.
  2. Obtain a valid nine-digit vendor identifier from publicly posted licensing documents.
  3. Start the forgot-password flow, which first asks for the vendor identifier.
  4. Observe that one request returns the account password and email for that identifier.
  5. Observe that a second request sends a newly generated password to an email address supplied in the request.
  6. Log in with the newly generated 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.

When you forget a password, a website usually sends a reset link or a new password to the email it already has on file. Here the site instead handed back the existing password and email in a response, and let the person asking choose which email the new password went to. That means anyone who knew a valid account identifier could take over the 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 Nikhil

View all

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