Skip to content
Account takeover Write-up Beginner

I Could Verify Any Email and Take Over Accounts — Critical

The email verification flow did not bind the verification code to the email address it was sent to, so an attacker could request a code for a victim's email, swap the email parameter to their own address, receive the code, and have the victim's email marked as verified. This allowed verifying any email address without owning it and potentially taking over accounts.

k4yd0_ Follow

Published on medium.com

Yo, it’s k4yd0, and I wanted to share a quick write-up on a bug I found a while back. It’s a simple but powerful one — a logic flaw in email verification that let me confirm any email address without owning it.

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

Likely the backend did not bind the verification code to the email address it was issued for, allowing the email parameter to be changed while keeping the same transaction identifier.

Impact

An attacker could verify any email address without access to its inbox and could potentially take over real users' accounts.

What the attacker needed

No victim interaction; ability to intercept requests

How it was found

  1. Go to the registration page and enter the victim's email address.
  2. Trigger the email verification step so the app sends a code to that email.
  3. Intercept the backend request using a proxy tool.
  4. Change the email address in the request to the attacker's own email while keeping the same transaction identifier and authorization.
  5. Receive the verification code at the attacker's email inbox.
  6. Submit the code to complete the flow, which marks the victim's email as verified.

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 sign up, the site sends a code to your email to prove you own it. The bug was that the site did not check that the code was actually sent to the email being verified. An attacker could ask for a code for someone else's email, change the request so the code went to their own email, then use that code to mark the victim's email as verified.

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.