How I Locked a Victim Out of Their Own Account — Before They Ev
The email change function allowed an attacker to bypass OTP verification by manipulating the server's response, letting them associate a victim's email address with their own account. This permanently locked the victim out of the platform because they could neither log in nor sign up, and no recovery path existed.
There’s a category of bugs that doesn’t get enough attention. Not the ones that hand the attacker a session.
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 server relied on a client-side success flag for OTP verification and failed to require confirmation from the new email address before completing an email change.
Impact
Any registered user could permanently lock any unregistered email address out of the platform, with no recovery path and no indication to the victim.
What the attacker needed
A free account on the platform; victim's email address known; ability to intercept and modify server responses
The fix
The platform should validate OTPs only on the server, require confirmation from the new email address before completing an email change, fix the redirect logic to route existing emails to login, and provide a recovery flow independent of email OTP.
How it was found
- The attacker logs into their own account.
- The attacker goes to profile settings and starts an email change, entering the victim's email address.
- The platform sends an OTP to the victim's inbox.
- The attacker intercepts the server's response and modifies it to show successful verification without the OTP.
- The email change succeeds, and the attacker's account now has the victim's email address.
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, it usually sends a one-time code (OTP) to prove you own the new address. Here, the website trusted a simple 'success' message from the browser instead of checking the code itself, so an attacker could pretend the code was correct. The attacker then linked the victim's email to their own account, which meant the victim could never register or log in because the system thought the email was already taken.
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.