Skip to content
Account takeover Write-up Intermediate

One Click Account Takeover: how an insecure password-reset flow + mass assignment leads to full…

The password-change endpoint accepted sensitive fields such as the recipient email and a display name directly from client input, so an attacker could send a legitimate-looking reset email to any address with custom text. When the victim clicked the confirmation link, their password was silently changed to the attacker's chosen value, giving a one-click account takeover.

0xmekky Follow

Published on medium.com

On ex.com I started looking into the reset flow and theemail-campaign endpoint that triggers the password-change confirmation. At first glance the UI looked completely normal: a reset email, a confirmation link, a form to set a password.

SaY_Mekky, 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

Impact

An attacker could send convincing reset emails to arbitrary users and take over the account once the victim clicked the link, with no further input needed.

What the attacker needed

A free account; victim clicks the emailed link

How it was found

  1. Test the reset password page and confirm it behaves normally.
  2. Intercept the change-password request and note the display_name, reply_to, to_email and newPassword parameters.
  3. Send the request as-is and click the confirmation link to see the password change immediately.
  4. Replace display_name with custom text and confirm it is reflected in the email.
  5. Change to_email to another address and confirm the reset email is delivered there.
  6. Have the recipient click the link so their password becomes the attacker-supplied value.

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 change your password, the website sends a request to its server. This server trusted extra details in that request, such as who the email goes to and what text it shows, instead of deciding them itself. So an attacker could make the site send a real password-reset email to someone else, with wording of their choice, and one click by that person handed 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 0xmekky

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.