How I Discovered an Email Verification Misbinding Leading to Priv
Email verification and organisation invitations were bound to the email address string rather than to a unique user account, so when two accounts shared the same address, verification and invites landed on the wrong one. An attacker could verify their own account using another user's verification flow and accept organisation invitations meant for the victim, gaining privileges without access to the victim's inbox.
Published on mostafa0x.medium.com
While testing a web platform, I noticed something curious: email verification and organization invitations were tied to email addresses rather than unique user IDs.
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 platform identified accounts by email address rather than by a unique user identifier when applying verification and invitation state.
Impact
An attacker could take over an account before the real owner registers it and escalate privileges within an organisation by accepting invitations meant for the victim, without access to the victim's inbox.
What the attacker needed
Ability to register with a chosen email; victim's email address known; victim has not yet verified
How it was found
- Create a normal account with an email address and leave it unverified.
- Create a second account using the same email address.
- Log in to the first account and request email verification.
- Observe that the second account becomes verified while the first stays unverified.
- Create a third account and an organisation, then send an invitation to the shared email address.
- Observe that both accounts receive the invite and the attacker-controlled one can accept it.
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 usually treats your email address as proof of who you are. Here the site matched that proof to the email text instead of to one specific account, so two accounts with the same address both counted as the same person. That let someone else's account get verified and accept an invitation that was meant for the real owner.
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.