Skip to content
Account takeover Write-up Intermediate

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…

π™‡π™€π™¨π™©π™¨π™šπ™˜, on infosecwriteups.com

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

  1. Register a new account with a normal email address and confirm login works.
  2. Sign up again using a Punycode-modified version of the same email address, intercepting the request to prevent browser encoding.
  3. Observe that the server responds that the email already exists, indicating normalisation treats both as the same.
  4. Go to the forgot password page and submit the Punycode version of the email, again via an intercepting proxy.
  5. Receive the password reset link in the callback server and use it to set a new password.
  6. 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.

More by π™‡π™€π™¨π™©π™¨π™šπ™˜

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.