0-Click Account Takeover Using Special Characters ✔
The application allowed an organisation owner to change the email address of invited users, and by using a special character in the email, an attacker could bypass the check that prevented inviting a user who already belonged to another organisation. This resulted in a zero-click account takeover, as the victim was added to the attacker's organisation without needing to accept the invitation.
medium.com
Published on medium.com
captinsharky-organization.gitbook.io](https://captinsharky-organization.gitbook.io/captnisharky/bug-bounty/expline-good-writeups/the-power-of-a-special-character-bypassing-email-validation)
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 validation and duplicate-account check did not normalise or reject special Unicode characters, allowing an attacker to create an email string that passed the uniqueness check but still resolved to the victim's existing account.
Impact
An attacker could take over a victim's account without any action from the victim, by adding the victim to the attacker's organisation and then changing the victim's email.
What the attacker needed
Attacker has an account with organisation owner role; Victim has an account in another organisation; Attacker knows victim's email
The fix
The application should normalise and strictly validate email addresses, rejecting any special Unicode characters that could be used to bypass uniqueness checks.
How it was found
- Create an account and invite a normal user to your organisation.
- As the owner, edit the invited user's email address.
- Try to invite a user who already belongs to another organisation; observe the error.
- Bypass the error by inserting a special character into the victim's email address.
- The invitation succeeds and the victim is added to the attacker's organisation without needing to accept.
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.
In this app, an organisation owner could edit the email of people they invited. The system tried to stop you from inviting someone who already had an account elsewhere, but it only checked the exact email text. By putting a special character in the email, the attacker tricked the system into thinking it was a new address, and the victim was silently added to the attacker's organisation. This gave the attacker control over the victim's account without the victim doing anything.
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.