Skip to content
Account takeover Write-up Intermediate

puny-code,0-click account takeover

The password reset function treated a punycode-encoded email address as equivalent to the original ASCII email, allowing an attacker to receive the reset link for another user's account. This could lead to account takeover without any action from the victim.

canonminibeast Follow

Published on medium.com

A zero-click account takeover is when a hacker takes control of your account without you clicking or doing anything. They use security flaws in apps or systems.

Canonminibeast, on medium.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 the application normalised or compared email addresses without properly handling punycode, treating the encoded form as identical to the original.

Impact

An attacker could receive the password reset link for another user's account, leading to account takeover.

What the attacker needed

Access to the forgot password page; ability to intercept requests

How it was found

  1. Go to the forgot password functionality.
  2. Enter the non-puny-coded email address.
  3. Intercept the request and change the email to its punycode-encoded form.
  4. Check the inbox to receive the password reset email.

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.

Punycode is a way to represent non-English characters in domain names or email addresses using only standard ASCII characters. The website's password reset feature failed to distinguish between a normal email and its punycode-encoded version, so an attacker could request a reset for someone else's email and receive the link themselves.

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 canonminibeast

View all

1 more disclosed report, 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.