Skip to content
Account takeover Write-up Intermediate

Hey hunters ! Recently I discovered a Unicode-Case Mapping Collision vulnerability on a private program.

A password reset flow normalised a Unicode dotless 'i' in an email address to a plain Latin 'i', so an attacker could register a lookalike domain and receive the reset token meant for a privileged account. The attacker then changed the admin user's password and took over the account.

Shaurya Sharma Follow

Published on medium.com

The original lives on medium.com

We do not hold its text, 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 case-mapped the email address inconsistently, so a Unicode lookalike character was folded into the Latin equivalent and the reset token was delivered to an attacker-controlled domain.

Impact

An attacker could take over a privileged account by receiving its password reset token, though the text notes the flaw was still unpatched at the time of writing.

What the attacker needed

Ability to register a lookalike domain; a mailbox on that domain; victim account uses an email address; attacker can trigger a reset for it

How it was found

  1. Register a lookalike domain using the dotless Turkish 'i' in place of the Latin 'i'.
  2. Set up a mailbox on that domain and create an account on the target site using that address.
  3. Log out, then start a forgot-password request for the privileged account.
  4. Intercept the request and observe the address being reflected in upper case.
  5. The reset token is sent to the attacker's lookalike mailbox.
  6. Use the token to change the admin password.

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.

Some letters look almost the same but are stored as different characters, for example a Turkish 'i' without a dot. The site treated that lookalike as the real letter when handling a password reset, so a message meant for the real admin was sent to a domain the attacker owned. The attacker then used the reset link to set a new password.

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 Shaurya Sharma

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.