Skip to content
Account takeover Write-up Beginner

How i accidentally found a 1-click account takeover bug

The email change verification link was not tied to the requesting user's session, so when another logged-in user opened it, their own email address was changed instead. An attacker could then use the victim's new email to reset the password and take over the account.

medium.com

Published on medium.com

While testing, I signed into redacted.com on two devices: my laptop and my phone (using two different accounts). On my laptop, I initiated an email change request.

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

A malicious user could hijack another user's account, potentially leading to data theft, identity fraud, and unauthorised access to sensitive information.

What the attacker needed

Victim is logged in; attacker shares verification link; victim clicks the link

The fix

The issue was fixed, though the text does not describe the fix.

How it was found

  1. User A requests an email change and receives a verification link.
  2. User A shares the verification link with User B, who is logged in on a separate browser session.
  3. User B clicks the link, and the system changes User B's email address instead of User A's.
  4. User A logs in using the new email address and selects 'Forgot Password'.
  5. A password reset link is sent to the new email address, which User A controls.
  6. User A resets the password and gains full control of User B'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 ask a website to change your email, it sends a special link to confirm. This site did not check that the person clicking the link was the same person who asked for the change. So if someone else clicked your link while logged in, their email got changed, and you could then reset their password and take over their 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.