"How a Missing Email Verification Can Lock You Out Forever"
The application changed a user's registered email address immediately without verifying ownership of the new address. An attacker with an active session could change the email to one they control, permanently locking the legitimate user out.
Published on medium.com
While testing a web application, I stumbled upon a subtle but dangerous flaw — one that could lock a user out of their account permanently with nothing more than a single unverified email change.
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 email update endpoint writes the new address to the database without any verification step or confirmation flow.
Impact
An attacker who already has an active session could change the email to one they control and permanently lock the legitimate user out; the report notes this requires session hijacking via XSS or stolen cookies.
What the attacker needed
A free account; attacker has an active session (e.g. via XSS)
The fix
The application should send a verification link or OTP to the new email before updating the database, keep the old email until confirmation, and alert the original email when a change is requested.
How it was found
- Log in to a user account.
- Go to the Email Update page.
- Enter an email address you do not own.
- Click Update; the system accepts it without verification.
- The original email is immediately replaced.
- Log out and try logging in with the old email; it no longer works.
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 on a website, the site should first send a confirmation link to the new address to prove you own it. Here, the site skipped that step and swapped the email straight away. If someone else gets into your account for a moment, they can change the email to theirs and you can no longer log in.
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.