Live data from Hacker News

I failed to make LinkedIn fix their broken international domain URL parser

helmstedt.dk

21–30 of 94 posts

Re: I failed to make LinkedIn fix their broken international domain URL parser

#21

I'm not surprised the author can't convince LinkedIn to change anything. Had a similar experience with Tinder where Paying in their web application using a danish credit card failed because their cc service returned "visadankort", which had to be changed to "visa" through the developer console for the payment to go through. Got tired of that and filed a bug. Oh the battle it took to actually convince them that an ent…

If it helps, every foreigner visiting Denmark has a similar experience in reverse when we try to pay with our Visa cards :P

Re: I failed to make LinkedIn fix their broken international domain URL parser

#23
post #2

As a funny side note, I cannot load https://xn--coronaprver-ngb.dk/ in Brave, which also seems to be confused by Internationalised domain names. This is what I see: > This server could not prove that it is xn--coronaprver-ngb.dk; its security certificate is from *.coronaprover.dk. This may be caused by a misconfiguration or an attacker intercepting your connection. Edit: Hah! And HN is also guilty of being confused b…

My Firefox complains about the certificate too.

Re: I failed to make LinkedIn fix their broken international domain URL parser

#24

"punycode" does seem to break a few things in userland, but obviously should exist for the web to be more useable in more languages. I've delved into the subject a bit and as someone else has mentioned, "homograph attacks" are a thing. Looking deeper, it seems each TLD has a set of dictionaries and rules for what is an acceptable combination of characters, and what isn't (to avoid homograph attacks)- and as I underst…

Why worry about the dictionaries? No legitimate user will accidentally enter a Greek Alpha rather than an A, for example. If a malicious user does this it won't resolve anyway because the domain is banned by the rules and can't be registered.

Re: I failed to make LinkedIn fix their broken international domain URL parser

#25
post #18

I'm not surprised the author can't convince LinkedIn to change anything. Had a similar experience with Tinder where Paying in their web application using a danish credit card failed because their cc service returned "visadankort", which had to be changed to "visa" through the developer console for the payment to go through. Got tired of that and filed a bug. Oh the battle it took to actually convince them that an ent…

I'd have to assume "supporting Danish credit cards" is lower on their list of revenue-impacting issues than you expect. If Denmark were a US state, it wouldn't even be in the top 20 in terms of population. If you assume that Denmark has lower usage of Tinder than US, CA, or UK, and then you assume that not all Danish people are paying with Danish credit cards (many of them would be using Play Store subscriptions, whi…

The question is what the cost of that fix would be. Once the ticket reaches the developer it's probably quickly done and pays for itself with a handful registrations. However getting from support to a developer is the complex part. (Support has to understand the issue and then it has to be routed to the correct team ...)

Re: I failed to make LinkedIn fix their broken international domain URL parser

#26
post #2

As a funny side note, I cannot load https://xn--coronaprver-ngb.dk/ in Brave, which also seems to be confused by Internationalised domain names. This is what I see: > This server could not prove that it is xn--coronaprver-ngb.dk; its security certificate is from *.coronaprover.dk. This may be caused by a misconfiguration or an attacker intercepting your connection. Edit: Hah! And HN is also guilty of being confused b…

Same in Chromium.

Re: I failed to make LinkedIn fix their broken international domain URL parser

#27
post #11
post #10

Earlier quoted context omitted.

The problem is that Brave fails when you navigate to "coronaprøver.dk" while both Chrome and Firefox works when you go there. Although Firefox and Chrome redirects to two different sites, they don't present a certificate error, while Brave does.

That's not my experience. Going to https://xn--coronaprver-ngb.dk/ in Firefox presents the invalid certificate, but going to http://xn--coronaprver-ngb.dk/ redirects me to https://www.coronaprover.dk/ . It seems Brave always tries with https, and thus it fails. Not that it is confused by IDN.

The link provided was https:// so it would be a serious security issue if it downgraded to http.

It is the website that is broken (or at least does not support that link).

Re: I failed to make LinkedIn fix their broken international domain URL parser

#28
Working with internationalized URLs (IRIs) is a Cursed Problem.

Here is the IRI for the Wikipedia page on semiconductors. When you click on it, it should show you a page with a picture of a silicon wafer on the left.

https://ar.wikipedia.org/wiki/شبه_موصل

Now try copy/pasting that link text into different web apps and see how they respond. HN seems to handle it correctly. Twitter doesn’t, it considers شبه_موصل to be just some extra text after the URL.

Re: I failed to make LinkedIn fix their broken international domain URL parser

#29

"punycode" does seem to break a few things in userland, but obviously should exist for the web to be more useable in more languages. I've delved into the subject a bit and as someone else has mentioned, "homograph attacks" are a thing. Looking deeper, it seems each TLD has a set of dictionaries and rules for what is an acceptable combination of characters, and what isn't (to avoid homograph attacks)- and as I underst…

Why worry about the dictionaries? No legitimate user will accidentally enter a Greek Alpha rather than an A, for example. If a malicious user does this it won't resolve anyway because the domain is banned by the rules and can't be registered.

Yeah, perhaps less important for LinkedIn but more pertinent for other parties like domain registrars and TLS cert issuers- apparently the 'rules' ala the registry's DNS is an evolving thing.

https://www.theregister.com/2020/03/04/homograph_attacks_sti...

Ignoring the specific characters without a local frame of reference would require at least a DNS lookup.

Re: I failed to make LinkedIn fix their broken international domain URL parser

#30

"punycode" does seem to break a few things in userland, but obviously should exist for the web to be more useable in more languages. I've delved into the subject a bit and as someone else has mentioned, "homograph attacks" are a thing. Looking deeper, it seems each TLD has a set of dictionaries and rules for what is an acceptable combination of characters, and what isn't (to avoid homograph attacks)- and as I underst…

Am I misunderstanding or are you looking for Unicode normalization?

http://site.icu-project.org/design/normalization/custom

Post reply on HN