Security issue: Domain spoofing thanks to U+0F8C rendered as space on Mac
Firefox on Mac renders the Unicode character U+0F8C as a space in the address bar, allowing an attacker to register a domain that visually mimics a legitimate one by inserting many such characters. An attacker could spoof a trusted domain to trick users into visiting a malicious site.
Originally disclosed on Mozilla
- Fixed in 6 days
- Paid in 22 days
- Disclosed after 6 days
Created attachment 8862557
Domain spoofing example
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36
Steps to reproduce:
The character U+0F8C (TIBETAN SIGN INVERTED MCHU CAN) when used in a domain name in Firefox on Mac looks just like a space.
This can be abused to spoof a legitimate domain followed by a chain of the character, e.g. "accounts.google.com<U+0F8C x 52>.bntk.pl".
I have created a domain https://important-domain.google.xn--com-lumaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.bntk.pl/ which is SSL-enabled and looks just like important-domain.google.com when your Firefox window is now wide enough to cover the whole address. The DNS limits makes it impossible to add arbitrary number of U+0F8C chars in the address bar. As a workaround, the attacker might add just a dot, hoping that the end-user will not notice it, for example: http://important-domain.google.xn--com-lumaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.xn--cfdaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.bntk.pl/.
I have attached a screenshot of a SSL-enabled domain using 53 U+0F8C characters.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could spoof a legitimate domain in the address bar to phish users, though the spoof is only effective if the address bar is wide enough to show the entire domain.
What the attacker needed
Firefox on Mac; Attacker registers a crafted domain; Victim visits the crafted domain; Address bar wide enough to show full domain
How it was found
- Register a domain containing many U+0F8C characters after a legitimate-looking prefix.
- Ensure the domain has a valid SSL certificate.
- Open the domain in Firefox on Mac and observe the address bar showing the spoofed name.
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 report has not been written yet. The Original tab links to the source.
When you type a website address, your browser shows it in the address bar. This report says that on a Mac, Firefox displays a special Tibetan character as if it were a space. An attacker can use many of these characters in a fake domain so that the address bar looks like a real site (e.g., 'accounts.google.com') followed by spaces, but actually leads to a different site.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.