Skip to content
Account takeover Disclosed report Intermediate

Account Takeover via Unverified Email Change and Improper Session Handling

The system allowed changing an account email to an unregistered address without verification, and existing sessions were not invalidated. When the victim later registered with that email, the attacker's session was mapped to the victim's account, enabling account takeover.

0xoroot Follow

Originally disclosed on HackerOne

High 8.8 View original
  • Triaged in 6 days
  • Fixed in 23 days
  • Disclosed after 4 months

Hi team,

During testing on ███ , I noticed an issue with session handling after changing the account email. When I update the email to an unregistered one, the system accepts it without proper verification. If the victim later registers on the website using that email, my existing session does not expire. Instead, I am able to access the victim’s newly created account data.

I also attempted to end the session and log in again, but the system still redirected me into the victim’s account, indicating improper session invalidation and account takeover risk.

Steps to Reproduce

##steps_Reproduce 1.Register a new account using Google authentication. 2.Change the account email to the victim’s email address (note: the victim’s email is not yet registered). 3.The victim registers on the website using that same email. 4.Observe that the attacker’s existing session is not expired, and the attacker now has access to the victim’s account data, even though the email is associated with the victim. 5.Log out from the attacker’s account. 6.Log in again with the attacker’s credentials. 7.You will notice that you are automatically logged into the victim’s account instead of your own, confirming account takeover.

##POC █████████

Impact

An attacker can fully take over any user account by exploiting weak email change and session handling logic. When the attacker changes their email to an unregistered victim email, the system does not verify ownership of that email nor invalidate active sessions. If the victim later registers with that email, the attacker’s session automatically maps to the victim’s account.

System Host(s)

████

The original report as published on HackerOne, by 0xoroot. 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 application failed to verify email ownership before allowing the change and did not invalidate existing sessions when the email was updated or when a new account was created with that email.

Impact

An attacker could take over an account whose email is not yet registered, as the attacker's session maps to the victim's account after registration.

What the attacker needed

Attacker can register an account; victim's email is not yet registered; victim later registers with that email

How it was found

  1. Register a new account using Google authentication.
  2. Change the account email to the victim's email address (not yet registered).
  3. The victim registers on the website using that same email.
  4. Observe that the attacker's existing session is not expired and now has access to the victim's account data.
  5. Log out from the attacker's account.
  6. Log in again with the attacker's credentials and notice being logged into the victim'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 report has not been written yet. The Original tab links to the source.

A user can change their email address to one that does not yet belong to anyone. The website does not check that the user actually owns that email. Later, when the real owner of that email signs up, the attacker's old login session is still active and gets linked to the new account, letting the attacker see and control it.

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 0xoroot

View all

4 more disclosed reports, best first.

More from U.S. Dept Of Defense

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.