<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../../xslt/site.xsl"?>
<blogpost id="post-20170219">
    <content>
      <h2>Introduction</h2>

      <p>I'm going to begin by caveating my opening statement by saying unicode domains improve accessibility to the internet, and that's a good thing, just unicode is so broad, there are many opportunities for lookalike domain spoofing, and that's bad.</p>

      <p>I discovered during a discussion with <a href="https://twitter.com/jaredhaight" target="_blank" rel="noopener">@jaredhaight</a> that unicode domains were a thing. We immediately joked about how bad this was, so I went about registering some test domains and ran some test cases to determine how well they were supported across various ecosystems. The following is an exploration of unicode domain names and how they're interpreted across various platforms as of Feb 2017.</p>

      <p>Also thank you to <a href="https://twitter.com/scholar_99" target="_blank" rel="noopener">@scholar_99</a> for help with the Android screenshots.</p>

      <h2>TLDR: Conclusion</h2>

      <p>My conclusion is this: unicode support is broad enough to make for some vicious phishing campaigns. There's some effective mitigations, googles outright blockage of unicode domains is probably the most aggressive, Microsoft's conversion to ASCII is functional. One thing I didn't test, is if my local language settings matched that of the unicode character used, if the unicode character would show instead. I think ultimately that's the only way to balance accessibility with security. IE: if my device is EN-US the character set displayed should only be EN-US characters.</p>

      <h2>Setup</h2>

      <p>So, first of all, not all registrars are setup to support unicode domain registration. I'm not going to suggest one over the other, it's just something to be aware of. (Cough, Dreamhost, my preferred hosting provider, does not)</p>

      <p>All of the test cases you will see were performed with https://www.gṃail.com (Unicode) OR https://www.xn--gail-qd5a.com (ASCII) depending on unicode support. In case it's not clear <strong>ṃ</strong> is the naughty character in this story and of course, I'm obviously spoofing gmail.com.</p>

      <p>I tried to find an email provider who’d let me roll with a Unicode domain, Microsoft, Google, and Zoho all said No, Yandex said yes, but failed after I tied the domain to their service. However, here’s something interesting, Google and Zoho's font calls out that my <strong>ṃ</strong> is not a standard character.</p>

      <p>
        <a href="../assets/posts/20170219/unicode-gsuitehosting.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/unicode-gsuitehosting.png" alt="GSuite hosting" /></a>
        <a href="../assets/posts/20170219/unicode-office365hosting.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/unicode-office365hosting.png" alt="Office365 hosting" /></a>
        <a href="../assets/posts/20170219/unicode-zohohosting.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/unicode-zohohosting.png" alt="Zoho hosting" /></a>
        <a href="../assets/posts/20170219/unicode-yandexhosting.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/unicode-yandexhosting.png" alt="Yandex hosting" /></a>
      </p>

      <p>Thankfully, despite the big players saying no, the hosting company I registered my domain with, said yes.</p>

      <p>I set up Outlook 2016 as my email platform, the auto configuration settings however converted my unicode domain to the ascii equivalent, however once the auto configuration wizard was done, I was able to go back into account settings and use the unicode domain.</p>

      <p>
        <a href="../assets/posts/20170219/unicode-outlook2016-1.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/unicode-outlook2016-1.png" alt="Outlook 2016 step 1" /></a>
        <a href="../assets/posts/20170219/unicode-outlook2016-2.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/unicode-outlook2016-2.png" alt="Outlook 2016 step 2" /></a>
      </p>

      <p>I then went about testing different clients and email providers for support.</p>

      <h2>Receiving email from a unicode domain (Websites)</h2>

      <p>All emails sent from Outlook 2016, Web browser support tested in Chrome 56 for Windows. Note I've bundled outlook.com and office 365 support because they reacted the same way, no reason to provide an extra set of screenshots.</p>

      <h3>Google</h3>

      <p>Emailing gmail from my unicode domain failed hard, some searching confirms this has been true since at least 2015.</p>

      <pre><code>vgrsec@gmail.com
      host gmail-smtp-in.l.google.com [74.125.127.27]
      SMTP error from remote mail server after end of data:
      550-5.7.1 [184.172.62.109] Our system has detected that this message is
      550-5.7.1 attempting to use a domain name that does not meet our domain name
      550-5.7.1 policies. Please visit
      550-5.7.1  https://support.google.com/mail/?p=DomainNameError to review our Bulk
      550 5.7.1 Senders Guidelines. m62si1920168oig.260 - gsmtp
      </code></pre>

      <h3>Microsoft - Outlook &amp; Office 365</h3>

      <p>This worked. Outlook/Office 365 displayed unicode in the inbox, however, once in the preview pane, or in the email itself it showed the name in unicode, but the email address as ASCII (Screenshots below)</p>

      <p>
        <a href="../assets/posts/20170219/outlookweb-1.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/outlookweb-1.png" alt="Outlook Web 1" /></a>
        <a href="../assets/posts/20170219/outlookweb-2.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/outlookweb-2.png" alt="Outlook Web 2" /></a>
        <a href="../assets/posts/20170219/outlookweb-3.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/outlookweb-3.png" alt="Outlook Web 3" /></a>
      </p>

      <blockquote>Note Outlook/Office 365 was able to respond to the unicode domain.</blockquote>

      <h3>Yahoo!</h3>

      <p>This worked. Yahoo displayed unicode everywhere! The email address, the name, everywhere. (Screenshots below)</p>

      <p>
        <a href="../assets/posts/20170219/unicode-yahoo1.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/unicode-yahoo1.png" alt="Yahoo 1" /></a>
        <a href="../assets/posts/20170219/unicode-yahoo2.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/unicode-yahoo2.png" alt="Yahoo 2" /></a>
        <a href="../assets/posts/20170219/unicode-yahoo3.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/unicode-yahoo3.png" alt="Yahoo 3" /></a>
      </p>

      <blockquote>
        Note the second vgrsec@gmail.com was a test to determine why the email was highlighted in red

        It turns out that if you try to reply to a unicode domain'd email in yahoo, it fails. That red wasn't a security warning, it was a validity warning.
      </blockquote>

      <h2>Receiving email from unicode domain (Apps)</h2>

      <p>
        <a href="../assets/posts/20170219/iosmail.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/iosmail.png" alt="iOS Mail" /></a>
      </p>
      <blockquote>The unicode support in iosmail is great, just the best.</blockquote>

      <p>
        <a href="../assets/posts/20170219/outlookapp.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/outlookapp.png" alt="Outlook App" /></a>
      </p>
      <blockquote>The unicode support in iosmail is great, just the best.</blockquote>

      <p>
        <a href="../assets/posts/20170219/outlook2016.png" target="_blank" rel="noopener"><img src="../assets/posts/20170219/outlook2016.png" alt="Outlook 2016 app" /></a>
      </p>
      <blockquote>Since Windows applications largely rely on system fonts it's not surprising the unicode domain is supported throughout Outlook.</blockquote>

      <h2>URL Support</h2>

      <p>URL Support for unicode domains appears to vary wildly. I'll sum up some tests and findings, then proceed with screenshots.</p>

    <table>
      <thead>
        <tr>
          <th>App</th>
          <th>Behavior</th>
          <th>Screenshot</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>Slack-ios</td>
          <td>Converts unicode into ASCII</td>
          <td>
            <img src="../assets/posts/20170219/ios-slack.png" alt="iOS Slack" />
          </td>
        </tr>
        <tr>
          <td>iMessage-ios</td>
          <td>Renders the unicode domain and provides a preview of the link</td>
          <td>
            <img src="../assets/posts/20170219/ios-ichat.png" alt="iOS iChat" />
          </td>
        </tr>
        <tr>
          <td>Text Message-ios</td>
          <td>Renders unicode domain.</td>
          <td>
            <!-- no provided iOS text message image -->
          </td>
        </tr>
        <tr>
          <td>GChat-ios/web</td>
          <td>Limited support for unicode domain. The link appears to work for a short time, then the link breaks at the unicode character</td>
          <td>
            <img src="../assets/posts/20170219/ios-gchat.png" alt="iOS GChat" />
            <br/>
            <img src="../assets/posts/20170219/windows-chrome-gchat.png" alt="Windows Chrome GChat" />
          </td>
        </tr>
        <tr>
          <td>Safari-ios</td>
          <td>Renders unicode domain</td>
          <td>
            <img src="../assets/posts/20170219/ios-safari.png" alt="iOS Safari" />
          </td>
        </tr>
        <tr>
          <td>Chrome-ios/Windows/Android</td>
          <td>Renders unicode domain</td>
          <td>
            <img src="../assets/posts/20170219/ios-chrome.png" alt="iOS Chrome" />
            <br/>
            <img src="../assets/posts/20170219/android-chrome.png" alt="Android Chrome" />
            <br/>
            <img src="../assets/posts/20170219/windows-chrome-url.png" alt="Windows Chrome URL" />
          </td>
        </tr>
        <tr>
          <td>Firefox-Windows</td>
          <td>Renders unicode domain</td>
          <td>
            <img src="../assets/posts/20170219/windows-firefox-url.png" alt="Windows Firefox URL" />
          </td>
        </tr>
        <tr>
          <td>IE11</td>
          <td>Converts unicode into ASCII</td>
          <td>
            <img src="../assets/posts/20170219/windows-ie11.png" alt="Windows IE11" />
          </td>
        </tr>
        <tr>
          <td>Text Message-Android 7.1</td>
          <td>Renders unicode domain</td>
          <td>
            <img src="../assets/posts/20170219/android-txt.png" alt="Android Text 1" />
            <br/>
            <img src="../assets/posts/20170219/android-txt2.png" alt="Android Text 2" />
          </td>
        </tr>
        <tr>
          <td>Ghostery-Android</td>
          <td>Converts unicode into ASCII</td>
          <td>
            <img src="../assets/posts/20170219/android-ghostery.png" alt="Android Ghostery" />
          </td>
        </tr>
      </tbody>
    </table>
    </content>
</blogpost>