Account Takeover: How I Gained Access to Any User Account Through a Simple Registration Flaw
The registration flow allowed bypassing email verification by using a fake email with the company's domain, and later allowed account takeover by signing up with a case-variant of an existing email, which overwrote the account without proper OTP validation. The lack of rate limiting and OTP expiry made it easier to bypass the OTP and take over any user or employee account.
Hi, I’m Amr Kadry, a penetration tester and bug hunter recognized by over 45 companies, including Mozilla, CrowdStrike, Canva, and Vimeo. Today, I’m excited to share a unique scenario I encountered while testing an application’s security in an External Program.
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 application normalised email addresses inconsistently (case-sensitive comparison) and failed to enforce OTP expiry and rate limiting, allowing account overwrite via case-variant emails.
Impact
An attacker could take over any user or employee account, including bypassing email verification, due to missing rate limiting and OTP expiry.
What the attacker needed
A free trial account; victim's email address known
How it was found
- Sign up for a free trial and start creating a community.
- Enter a fake email using the company's domain (e.g., [redacted]) to bypass email verification.
- Sign up with the victim's email but with a case variation (e.g., [redacted]) to trigger OTP prompt without 'email already exists' error.
- Observe that there is no rate limiting on OTP attempts.
- Observe that the OTP has no expiry date.
- Bypass the OTP and take over the account.
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 one-time code (OTP) to your email to prove you own it. The researcher found that by changing the capitalisation of an email address (like .coM instead of .com), the site treated it as a new email but still linked it to the existing account, letting them take over that account without knowing the password. Also, the OTP could be guessed many times because there was no limit, and it never expired.
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.