Punycode 0-Click Account Takeover
A website's MySQL database, using a case-insensitive collation, treats visually similar email addresses (e.g., with accented characters) as equal to legitimate ones. An attacker can register a lookalike domain, trigger a password reset for a victim's email, and receive the reset token on their own server, leading to account takeover without victim interaction.
medium.com
Published on medium.com
In a world where cyber threats are constantly increasing and social engineering techniques are evolving, new methods occasionally emerge that exploit vulnerabilities in ways you’d never expect. Among these methods, the Punycode 0-Click Account Takeover attack stands out as one of the most deceptive yet simple…
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
Impact
An attacker could take over a victim's account without any interaction from the victim, as the password reset email is sent to the attacker's server.
What the attacker needed
Attacker controls a lookalike domain; victim has an account with a normal email; database uses a case-insensitive collation
The fix
The platform should enforce Unicode normalization on email addresses and use a strict binary collation in the database to distinguish between similar-looking characters.
How it was found
- Create a regular user account with a normal email address.
- Go to the target website and use the 'Forgot Password' feature to receive a reset email.
- Try to sign up with a visually similar email address (using an accented character); if the site says the account already exists, the vulnerability is present.
- Go to the 'Forgot Password' page and submit the visually similar email address.
- Intercept the request and manually change the Punycode-encoded domain back to the accented domain.
- The password reset email is sent to the attacker's fake SMTP server, allowing 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.
This is about how some databases treat email addresses that look almost the same as equal. For example, an email with a fancy 'à' might be seen as the same as one with a normal 'a'. An attacker can use this to get a password reset link sent to their own fake email server, taking over the 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.