# Warning from Punycode Links

**URL:** <https://forum.delta.chat/t/warning-from-punycode-links/1207>\
**Category:** Feature Proposal\
**Created:** [September 25, 2020, 7:07pm UTC](https://forum.delta.chat/t/warning-from-punycode-links/1207 "2020-09-25T19:07:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [September 25, 2020, 7:07pm UTC](https://forum.delta.chat/t/warning-from-punycode-links/1207/1 "2020-09-25T19:07:34Z")

</div>

normally domain name can’t contain Unicode, to have unicode characters in domain names they need to be encoded into [Punycode - Wikipedia](https://en.wikipedia.org/wiki/Punycode).

### So far so good, but where lies the problem?

Punycode domain names can be used for phishing:  
taking a well known address like [google.com](http://google.com) and replacing some letters with similar/identical looking ones from different alphabets make for a nearly perfect phishing link.

> _ **Example:** _  
> Links from [https://github.com/blazeinfosec/advisories/blob/master/signal-advisory.txt:](https://github.com/blazeinfosec/advisories/blob/master/signal-advisory.txt:)  
> Legitimate URL: [http://blazeinfosec.com](http://blazeinfosec.com)  
> Malicious URL: [http://blаzeinfosec.com](http://xn--blzeinfosec-zij.com) - with the ‘a’ as a Cyrillic character, not Latin

Somehow people classified this as a security risk in signal, although I don’t expect my messengers to warn me and personally believe this is normally a user error/fail and at most responsibility of the browsers.  
(rule of thumb: don not click nor trust links of people you don’t trust!)

### What can and should we do about it?

As stated above I think this is not something that we as messenger are responsible for, but we can still be nice and warn users from such links if we want.

A few methods come to my mind:

- showing the punycode encoded version of the link: (`xn--blzeinfosec-zij.com`)
- showing a confirmation dialog when clicking on punycode links  
(possibly with whitelist that the user can fill: “don’t ask again for this domain”)
- (desktop) showing full link on hovering above the link in a tooltip

Those methods could be refined with more algorithms to let legitmate punycode urls through, like [münchen.de](http://xn--mnchen-3ya.de):  
the method that frefox uses: [Client Challenge](https://wiki.mozilla.org/IDN_Display_Algorithm)

Related Links:

- signal cve: [https://www.cvedetails.com/cve/CVE-2019-9970/](https://www.cvedetails.com/cve/CVE-2019-9970/)
- [advisories/signal-advisory.txt at master · blazeinfosec/advisories · GitHub](https://github.com/blazeinfosec/advisories/blob/master/signal-advisory.txt)
- [Client Challenge](https://wiki.mozilla.org/IDN_Display_Algorithm)

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [September 25, 2020, 7:11pm UTC](https://forum.delta.chat/t/warning-from-punycode-links/1207/2 "2020-09-25T19:11:59Z")

</div>

I have started a pr for desktop implementing the warning:

> <https://github.com/deltachat/deltachat-desktop/pull/1868>

Later we might want to move the url checking logic to rust, @link2xt suggested using a crate like [IDNA — Rust web dev library // Lib.rs](https://lib.rs/crates/idna) for that.

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 2:59pm UTC](https://forum.delta.chat/t/warning-from-punycode-links/1207/3 "2026-10-06T14:59:22Z")

</div>


