How I Bypassed Email Uniqueness: Exploiting Weak Access Control in a Bug Bounty Program
The system allowed an account's email to be changed to one already used by another account, bypassing the uniqueness check enforced at registration. This could lock the original owner out of password resets, and potentially enable account takeover if other weaknesses exist.
Published on saconychukwu.medium.com
During a bug bounty assessment, I discovered an interesting account takeover and denial-of-service (DoS) vulnerability related to improper access control and weak email uniqueness enforcement. The issue allowed me to manipulate the system to associate two separate accounts with the same email address, leading to a…
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
The application enforced email uniqueness only during registration but not when updating an account's email address.
Impact
The victim could be permanently locked out of password resets, and account takeover may be possible if additional weak points exist.
What the attacker needed
Attacker controls one account; victim has an account; attacker knows victim's email
How it was found
- Register two accounts with different email addresses and confirm both.
- Log into the first account and go to account settings.
- Change the first account's email to the second account's email address.
- The system accepts the change despite the email already being in use.
- Log out and request a password reset for the first account.
- The reset email is sent to the second account's email, locking out the first user.
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 checks that your email isn't already used. But when you later change your email in settings, it forgot to check again. So one account can end up with an email that already belongs to someone else, which can stop the real owner from resetting their password.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.