The Most Underrated 0-Click Account Takeover Using Punycode IDN Homograph Attacks
The application failed to consistently normalise email addresses containing Punycode/Unicode characters, so a second account could be registered with a visually similar email. An attacker could then trigger a password reset for the original account and receive the reset link, leading to account takeover.
ππ€π¨π©π¨ππ Follow
Published on infosecwriteups.com
Internationalized Domain Name (IDN) Homograph Attacks take advantage of characters from different languages that look nearly identical, such as the Latin βaβ and the Cyrillic βΠ°β. While it might look like a regular domain or email on the surface, whatβs really happening behind the scenes is a character-swap usingβ¦
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 inconsistent Unicode normalisation of email addresses across signup, login and password reset flows, allowing visually similar addresses to be treated as the same account.
Impact
An attacker could take over a victim's account without any user interaction, and the text also claims this could bypass two-factor authentication if the application mishandles email normalisation.
What the attacker needed
Target allows email signup; attacker can intercept HTTP requests; attacker has an email callback server
The fix
The application should enforce strict ASCII-only email validation, normalise addresses consistently across all flows, and block Punycode domains unless internationalised domains are explicitly supported.
How it was found
- Register a new account with a normal email address and confirm login works.
- Sign up again using a Punycode-modified version of the same email address, intercepting the request to prevent browser encoding.
- Observe that the server responds that the email already exists, indicating normalisation treats both as the same.
- Go to the forgot password page and submit the Punycode version of the email, again via an intercepting proxy.
- Receive the password reset link in the callback server and use it to set a new password.
- Log in with the original email address and the new password to confirm 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.
Websites often treat email addresses as text, but some characters look identical to normal letters while being different underneath. If a site does not clean up these lookalike characters the same way everywhere, it may think two different email addresses belong to the same account. An attacker can then use the lookalike address to receive a password reset meant for the real account.
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.