How I Found My First Critical Bug: Account Takeover via Email Verification Bypass
The profile update endpoint allowed changing the email address without any verification, and the new email could be used to log in immediately. An attacker with access to a session could swap the email to their own, lock out the real user, and take over the account.
Let me share how I found my first critical vulnerability — a simple yet powerful bug that led to full account takeover (ATO) on an e-commerce platform. It all started with a casual conversation with a friend…
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 trusted the client to have completed email verification and did not re-check ownership when the email field was updated.
Impact
An attacker who already had access to a user's session could change the account email, log in with it, and lock the real user out, achieving full account takeover.
What the attacker needed
A valid user session; ability to send crafted API requests
The fix
The profile update endpoint should require re-verification of any new email address before it becomes active or usable for login.
How it was found
- Create an account and complete email and phone verification.
- Capture the profile update request in Burp Suite.
- Change the email field to a different address and send the request.
- Log out and log in using the new email with the original password.
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 send a confirmation link to prove you own the new address. Here, the site skipped that check, so anyone who could edit the profile could set their own email and then log in as that user.
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.