Skip to content
Account takeover Disclosed report Intermediate

Account Hijacking (Only rare case scenario)

A user who mistakenly enters another person's email address during an email change triggers a verification link to that address. The recipient can then use the password reset flow to take over the account.

xtross1 Follow

Originally disclosed on HackerOne

  • Disclosed after 32 days

Hi, This is a logical flaw in the application which may allow any arbitrary user to obtain account access of another user. Below is the exploit scenario which may lead to potential account takeover in certain circumstances:

  • User changes email while he is logged in his own account (Some wrong email)
  • User enters an incorrect mail
  • Another user (user-2) receives the verification link
  • User- 2 clicks on the link (as of yet the new email doesn't get assoc. with the account)
  • Now, User-2 clicks on forgot password - the reset link is sent on the User-2 's email address.
  • User-2 clicks on that link, and changes the password.

Successfully gains any hackerone's account.

The glitch - User-1 needs to set wrong email by-mistake.

Possible Fix:

Authentication after the reset link is sent via the old creds. Use Codes which can be sent to emails and not Links for verification

The original report as published on HackerOne, by xtross1. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the verification link lets the recipient trigger a password reset before the new email is associated with the account.

Impact

An attacker could gain access to another user's account, but only if the victim mistakenly enters the attacker's email address.

What the attacker needed

Victim enters attacker's email by mistake; attacker receives verification link; attacker clicks link and resets password

The fix

The application should require authentication with the old credentials after a reset link is sent, and use codes instead of links for email verification.

How it was found

  1. User-1 changes their email to a wrong address while logged in.
  2. User-2 receives the verification link.
  3. User-2 clicks the link (email not yet associated).
  4. User-2 uses 'forgot password' and receives a reset link.
  5. User-2 clicks the reset link and changes the 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 report has not been written yet. The Original tab links to the source.

When you change your email, the site sends a link to the new address to confirm it. If you type someone else's email by mistake, that person gets the link. They can then use the 'forgot password' option to reset the password and access your 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 xtross1

View all

4 more disclosed reports, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

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.