Unicode Normalization Leads To Account Takeover
The report claims that a web application fails to properly normalise Unicode characters in email addresses, allowing an attacker to log in to another user's account by submitting a differently normalised version of the victim's email. The attacker could then access personal information and payment details.
I found a flaw that gave me access to user accounts by using Unicode normalization during my security analysis of the web application.
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 does not apply consistent Unicode normalisation when storing and comparing email addresses during registration and login.
Impact
An attacker could take over a user's account and access personal information, payment details, and other sensitive data.
What the attacker needed
Victim has an account with a Unicode email; attacker can guess or know the victim's email; attacker can send login requests
The fix
The website should validate and normalise all user-supplied Unicode characters consistently, using a whitelist of permitted characters and normalisation forms, and add two-factor authentication to detect unusual logins.
How it was found
- Create an account with an email address containing Unicode characters.
- Log in normally with that email address.
- Normalise the email address using a different Unicode normalisation form.
- Log in again using the normalised email address.
- Observe that the login succeeds, indicating account takeover.
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.
Unicode is a standard for representing text characters. Some characters can be written in more than one way but should be treated as the same. If a website does not normalise these variations consistently, an attacker might log in as another user by using a different form of the same email address.
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.