Skip to content
Account takeover Write-up Intermediate

Find An Interesting Account Take-Over Vulnerability.

The email change verification endpoint accepted a token and a new email address as separate parameters, and the server did not check that the new email matched the one the token was issued for. An attacker could change a victim's account email to their own address, leading to a pre-account takeover.

mdnawshadahmmed Follow

Published on mdnawshadahmmed.medium.com

The email change functionality contains a logical vulnerability. When a user requests an email change, a verification link is generated and sent to the email address.

Md Nawshad Ahmmed, on mdnawshadahmmed.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 change a victim's account email to their own, leading to a pre-account takeover; the report notes users would be unaware and lose trust.

What the attacker needed

A free account; victim clicks a link

How it was found

  1. Log in to a target.com customer account.
  2. Navigate to Account Settings and initiate an email change request to any email address.
  3. Receive the verification email containing a link with token and newUid parameters.
  4. Before clicking the link, modify the newUid parameter in the URL to a different, attacker-controlled email address.
  5. Visit the modified URL in a browser.
  6. Observe that the account email is changed to the attacker supplied address not the originally requested address.

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 email, the site sends a link to confirm. That link includes both a secret code and the new email address. The site checked the code but not that the email address in the link was the same one you asked to change to. So an attacker could swap in their own email and 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.

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.