Skip to content
Open redirect Disclosed report Beginner

IDN implementation in Firefox for iOS is prone to IDN homographic attacks

Firefox for iOS displayed internationalised domain names in the address bar without applying any homograph protection, so a domain using lookalike Unicode characters could appear to be a different, trusted site. An attacker could register such a domain and use it to make a phishing URL look like a well-known brand or a local address.

Muneaki Nishimura Follow

Originally disclosed on Mozilla

  • Fixed in 7 months
  • Paid in 50 days
  • Disclosed after 7 months
Text
Created attachment 8803724
homographic_attacks.png

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50

Steps to reproduce:

Firefox for iOS 6 seems to support international domain name on address bar but that implementation (Bug 1289687) allows to display all of unicode characters without any care of IDN homographic attack.

The PoC is here:
http://mallory.csrf.jp/ios/idn.html


Actual results:

See the screenshot when I reproduced the issue on my iOS simulator.

The above PoC contains following two fake URLs.

http://xn--bidu-53d.xn--fiqs8s
It seems like "baidu.中国" but the character 'a' is U+0430 in Cyrillic.

http://xn--localhost8080-4zo6249e.xn--fiqs8s
It seems like "localhost:8080/.中国" but ':' is U+0589 and '/' is U+2215.


Expected results:

It should have a IDN rule to prevent homographic attack such as:
https://wiki.mozilla.org/IDN_Display_Algorithm

The original report as published on Mozilla's Bugzilla, by Muneaki Nishimura. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

Root cause

Likely the address bar rendered internationalised domain names without applying a display policy that flags or blocks mixed-script and lookalike characters.

Impact

A user could be shown a deceptive address that resembles a trusted site or a local address, which may help phishing; the report does not demonstrate any further exploitation.

What the attacker needed

Firefox for iOS 6; victim visits a crafted domain

The fix

The browser should apply an IDN display algorithm that detects and blocks or warns about homographic domain names.

How it was found

  1. Open the proof-of-concept page in Firefox for iOS.
  2. Observe the two crafted internationalised domain links it contains.
  3. Note that the address bar shows them as convincing lookalikes of a real brand and of a local address.

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.

Some web addresses can use letters from other alphabets that look almost identical to Latin letters, so a fake site can have an address that looks like a real one. This is called a homograph attack. The report says the iOS browser showed these addresses as-is, with no warning, so a user could be tricked into trusting the wrong 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.

More by Muneaki Nishimura

View all

74 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.