Breaking Email Trust: How I Bypassed Email Verification in a Rea
The application allowed a user to change their email address after a verification link had been sent, but the verification link was still sent to the original email address. An attacker could therefore create an account using an email address they do not own, because the system verified the wrong address.
Email verification is one of the most fundamental security mechanisms in modern web applications. It ensures that users actually own the email address they register with.
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 system did not invalidate the original verification token when the email address was changed, and it continued to trust the old verification session.
Impact
An attacker could create accounts with email addresses they do not own, which could lead to impersonation, social engineering, and blocking legitimate users from registering; however, the application required admin approval, which limited the immediate impact.
What the attacker needed
Access to the signup page; a valid email address to receive the verification link; admin approval required for account creation
The fix
The system should invalidate old tokens when the email changes, generate a new verification link, send it only to the new email address, and block progress until the new email is verified.
How it was found
- Register with your own email address.
- On the verification page, click 'Change your e-mail'.
- Replace the email with the victim's email address.
- Observe that the verification email is still sent to your original email, not the new one.
- Click the verification link from your inbox and complete the registration form.
- The account is created with the victim's email address, which was never 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, a website usually sends a link to your email to prove you own it. Here, the site let the user change the email address after the link was sent, but it still sent the link to the old address. So the site ended up trusting an email address that was never actually checked.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.