Bypassing Email Uniqueness Check: A Logic Flaw Disrupting Passwor
The site's email uniqueness check only rejected the first attempt to change an email to one already in use, but accepted a second attempt, allowing two accounts to share the same email address. This caused password reset requests for that email to fail because the backend could not handle duplicate addresses.
I wanted to share a bug I found some time ago. This is the first bug I’ll be sharing, but it certainly won’t be the last, inshallah.
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 uniqueness check was only enforced on the first request (perhaps via a one-time notification) and not on subsequent requests, allowing duplicate emails.
Impact
A user cannot request a password reset for the affected email, causing a denial of service for that account's recovery; the report rates severity as low and mainly affecting availability.
What the attacker needed
An account on the site; knowledge of an email already in use
How it was found
- Attempt to change an account's email to an address already used by another account; the first attempt is rejected.
- Attempt the same email change again; the second attempt is accepted.
- Request a password reset for the duplicated email; the reset fails because the backend finds two users with that email.
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.
A website normally stops you from signing up or changing your email to one that another account already uses. Here, that check only worked the first time; trying again let the change through, so two accounts ended up with the same email. Later, when someone asked to reset the password for that email, the system got confused and could not send the reset link.
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.