Skip to content
Account takeover Write-up Beginner

How I Found a Bug That Let Me Change My Account Email to Any Email Address Without Owning It

The email change workflow exposed the verification hash in the API response when resending the verification email. An authenticated attacker could use this hash to verify a new email address without owning the inbox.

omaralgbry1 Follow

Published on medium.com

While testing redacted.com, I discovered a bug in the email change functionality that allowed users to change their account email address to a new email and verify it without actually owning it.

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

Root cause

The verification hash, meant to be delivered only to the target inbox, was included in the API response to the authenticated user.

Impact

An authenticated user could bypass email ownership verification and bind their account to an email address they do not control, potentially undermining systems that trust verified emails.

What the attacker needed

An authenticated account

How it was found

  1. Intercept the request that changes the account email.
  2. Trigger the resend email action.
  3. Observe the verification hash in the response.
  4. Use the hash to confirm the email change.

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 address, the site usually sends a secret link to the new address to prove you own it. Here, the site also put that secret link in a response you could see, so you could prove ownership of an address you do not control.

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 omaralgbry1

View all

5 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.