Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Firefox, IE, Chrome and Common Names
2 points by adontz on Dec 11, 2018 | hide | past | favorite | 3 comments
I have found a really strange thing I have not heard about.

If you visit a TLS enabled website under name "www.something.ext", but it provides certificate for "something.ext" only, I mean common name is "something.ext" and "www.something.ext" is NOT listed in alternate names, then Mozilla Firefox will report invalid certificate. Google Chrome and Internet Explorer show NO warnings. I've noticed this behavior first at https://www.vali.ge (actual content irrelevant), but pretty sure it is not web-site specific.

Usually "www.something.ext" is same site as "something.ext" but it does not have to. I consider this to be an intentional security vulnerability and really not happy about this.



Someone correct me if I'm wrong (I'm a bit rusty on A records and C-names) but just because 2 addresses show the same content, does not necessarily mean they are the same website. domain.tld is a different address from www.domain.tld and by all accounts, could point to 2 different contents.

Most will re-direct to the other. So if I chose to use www.domain.tld I may redirect domain.tld to www.domain.tld or vise-versa.

If you want a certificate that covers both domain.tld and www.domain.tld - those are called wild card certificates and can cover totallyrandom.domain.tld and superhappyfuntime.domain.tld and anything else you might need (email., webmail., catslol., etc...)

So a non-wildcard certificate placed on both www and non-www is in fact, not valid because a regular every day certificate is only valid for 1 url.


There are also non-wildcard certificates, which are valid for multiple specific names, but not the case I am discussing.

https://www.digicert.com/subject-alternative-name.htm


Says it right in the marketing

"Secure Host Names on Different Base Domains in One SSL Certificate: A Wildcard Certificate can protect all first-level subdomains on an entire domain, such as *.example.com. However, a Wildcard Certificate cannot protect both www.example.com and www.example.net."

That is in fact, a wildcard certificate, just not directly advertised as such.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: