Skip to content
Business logic Write-up Intermediate

Bypassing Account Sign-up Restrictions with a Unicode Character

The account domain restriction control compared the raw email domain against a blocklist as a literal string, so a homoglyph character (a dotted capital I) made a blocked domain appear different and pass the check. The address was then normalised downstream, collapsing the character back to a plain i, so the verification code reached the real blocked-domain inbox and the attacker could complete sign-up.

dukrov Follow

Published on dukrov.medium.com

It’s been a while since I put a writeup up here, so I’m dusting off one of my favorites. The target was a user-management / identity platform that a lot of apps bolt on for their login and signup flows.

͏ ͏Dukrov 🍏, on dukrov.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

The validation layer checked the raw, unnormalised email string while a later normalisation/delivery layer canonicalised it, so the two components disagreed about which domain the address belonged to.

Impact

This is a security-control bypass rather than an account takeover or data leak on its own, but it lets anyone with an inbox on a blocked domain register where the tenant intended to refuse them, and it can serve as a chain link for downstream trust assumptions.

What the attacker needed

A mailbox on the blocked domain; domain restriction enabled by the tenant; ability to submit a sign-up form

The fix

The email should be canonicalised (Unicode NFKC, case-folding, IDNA/Punycode for the domain) before the allow/deny decision, and that same canonical form should be stored and delivered to.

How it was found

  1. Enable domain restriction in the admin settings, for example deny all public domains.
  2. Try to sign up with a normal address on the blocked domain and observe the expected rejection.
  3. Retry with the same address but replace a letter with a homoglyph character.
  4. Check the inbox: the sign-up or login code arrives at the real mailbox and registration can be completed.

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.

A website can be set to only allow sign-ups from certain email domains, for example a company domain. This report shows that by swapping one letter for a lookalike character, the check thought the email came from a different domain, but the system that actually sends the email treated it as the original blocked domain. That let someone register an account the site meant to refuse.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by dukrov

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.