159 points · by robin_reala · 5y ago · 90 comments
But I'm still unconvinced that every single one of those last remaining 15% of websites must be transitioned to HTTPS.
I have personal websites that are open, public, non-controversial, simple. I like that you can curl or wget them without mucking about with certs and that you can view them using anything and everything vaguely browsery ever made. I feel moving to HTTPS subtracts value, at least to me, and I'm the owner.
Not to get all grouchy old geezer, but I don't feel every single public open simple textual website must be encrypted. Where am I wrong / what am I missing? (While understanding there's a mathematical world of difference between statements "Most / 99% of websites should be encrypted!" and "All / 100% of websites should be encrypted!" :)
A lot of people focus on the confidentiality element of TLS. "Clearly I don't need for it to be secret that I looked at the Wikipedia entry for Napoleon (the 1995 movie, not the famous guy)".
But TLS bundles together three things and if you need any of them you can't have them with plain HTTP. You get confidentiality, but you also get integrity and authentication.
That means when you curl https://foo.example/something we can promise you that the result is the resource https://foo.example/something - maybe that's not what you actually wanted, maybe it's full of lies or worse, but it is what you asked for and it is what you get. With plain HTTP all bets are off, anybody can interpose and present anything else to you.
If it's OK if you just get anything and not the article from Wikipedia, why even look at Wikipedia at all? You could make up whatever you want, it's a black-and-white movie about a dog who ruled France and then went into space, and it was the #1 grossing movie in every country for six years.
This is probably the argument I hear most often. But it completely ignores the fact that for the last 20 years, when I wanted to grab a Wikipedia article, I got it in 100% cases, whereas the number of broken HTTPS websites (usually because of expired certs) is non-negligible. You can blame "incompetent admins" as much as you want, but with HTTP this particular problem simply doesn't exist.
But that's just in the US, what about in countries where the ISP is far less than trustworthy. It's feasible that a state actor or other malicious actor could replace your web page with a phishing page. A non-sophisticated user (or even a somewhat sophisticated one, if the phishing attack is done well enough) might make that critical mistake that grants access to what is normally highly secured, but because a webmaster who doesn't understand the risks decided not to enable HTTPS, the user's personal information (or worse, their life) could be at risk.
But is it an actual, practical, meaningful threat vector or an issue for the type of website I describe (empathically, NOT top 20 site, like Wikipedia is:)?
Everything in IT and IT Security is or should be an evaluation, a compromise of specific graphs of price and effort and impact and risk. My question is not "Should Wikipedia have HTTPS", but "Does every single one of remaining 15% of websites need to be encrypted", and that's not a persuasive argument.
Back when http was common and 3G was still kinda expensive, many public WiFi networks would MITM all the web pages you request to inject their own ads into them.
A notable example I remember vividly - the public WiFi network of Moscow Metro used to do this for non-paying customers, and it was particularly bad because 3G/4G did not work well underground back then.
This alone was a good motivation to switch my plain-html ad-free websites to https as soon as Let's Encrypt became a thing.
1. HTTPS prevents ads/trackers/malware being injected into the page by unscrupulous ISPs. Man-in-the-middle attacks of this sort really have happened, [0] and remember that the browser itself may have exploitable security vulnerabilities.
2. Modern browsers will (rightly) warn users not to trust the site. This makes the site look bad.
3. Some fancy browser features are disabled if you use unencrypted HTTP. Likely irrelevant for a static site though.
4. Privacy matters. A medical website, or indeed Wikipedia, should prevent a snooping ISP from finding out you have been reading about an embarrassing condition. This is similar to the way librarians are extremely protective of their loan records [1]. Netflix use HTTPS for their streams, for the same reason (it does nothing to aid their DRM, it's purely about privacy) [2].
5. Let's turn the tables and ask why you wouldn't use HTTPS for a public-facing web server. There are just 3 reasons:
* Reduced admin overhead not having to bother with certs
* It enables caching web proxies, which is only relevant if you're running a serious distribution platform like Steam, or a Linux package-management repo [3]
* Better support for very old devices, such as old smartphones in the developing world
[0] https://doesmysiteneedhttps.com/
[1] https://www.theguardian.com/us-news/2016/jan/13/us-library-r...
[2] https://arstechnica.com/information-technology/2015/04/it-wa...
[3] https://web.archive.org/web/20200615045650/http://whydoesapt...
(Based on an old comment of mine at https://news.ycombinator.com/item?id=22147858 )
Since I switched all my setups to Caddy [1] using HTTPS by default has become an absolute no-brainer and nothing to care about, as it simply happens automatically due to its built-in ACME support.
1a. Spy agencies or botnets that have compromised routers and want to attack Internet users. (The spy agencies are probably more of a concern for backbone routers, while the botnets are probably more of a concern for CPE routers.)
> 5. Let's turn the tables and ask why you wouldn't use HTTPS for a public-facing web server. There are just 3 reasons:
I've encountered, I guess, five others: you want to use the server in a mostly or totally offline environment (so it can't count on getting Internet access to perform renewals), you want to use a totally air-gapped environment, you don't possess a domain name or can't be sure of renewing it for some reason, you want to use web protocols for a very lightweight (but not necessarily very old) embedded system in a LAN, or you are subject to sanctions that prevent CAs from charging you for a certificate and/or issuing one to you at all.
I guess also "for some reason you want to use TCP/IP on a point-to-point link to collect telemetry where very low latency is your absolute highest priority, and integrity and/or confidentiality are handled sufficiently by some other layer somehow". (Although in that case the client probably isn't a web browser, so this probably isn't an issue.)
These cases are not that common, but that does not make them nonexistent. 99% of websites don't fall under one of these cases (there are probably some others I have not even considered), and should probably support HTTPS.
> You use a dynamic subsubdomain scheme
Good point. If you run a site that creates a new subdomain per customer, and uses subsubdomains, you might end up making a high volume of cert requests. I don't know a lot about this stuff but presumably there are paid CAs that offer a more generous rate limit than Let's Encrypt?
> You embed resources that are only available over HTTP and cannot be proxied, either for technical or legal reasons
When is this a problem?
> You request resources from a local IP address, e.g. a website hosted on GitLab Pages that shows you the data from your own DIY weather station which runs in your local network
I don't follow here. If for some reason you need to present that data as a local HTTP service, that service could just act as a proxy to GitLab Pages over HTTPS, no?
If you are in a legal/political environment that allows active attacks by an ISP on their customers then you have a much bigger problem than just this sort of thing.
What can I, an individual with nearly zero political clout (I can vote... but I live in a gerrymandered district... another layer to the problem!) do to get this problem fixed? Best case scenario, I say something, it goes viral, people march in protest against bad ISPs, the monopolies get broken up, etc. But how long does that all take?
Meanwhile, I'll only use HTTPS websites as a first-line of defense. The "much bigger problem" can be solved in parallel.
Isn't it then possible, albeit harder to do a MITM attack at this point with HTTPS?
It gets downvoted because this idea ("my site isn't sensitive so I don't want https") gets brought up and refuted every time LE or HTTPS comes up and it's getting old.
It’s sad we can’t just encrypt the communication by setting up something in the server and that would be it.
You can? With any of Let's Encrypt's clients ( certbot, lego) of web servers that come with an ACME integration ( Caddy, Traefik).
SSL doesn't magically secure your servers, especially not if all you are doing is serving static HTML content and images.
All HTTPS really does is encrypt the HTTP traffic while it is in transit. The main reason this is important is because someone monitoring network traffic (for example, at the network switch) could theoretically see raw passwords and stuff being sent over the wire in plain text.
If your web site doesn't do anything with user names and passwords or form fields that accept some type of text that needs to be secured, then HTTPS isn't really doing jack shit for you (other than making visitors "feel" secure).
Edit: I forgot about man in the middle attacks from internet providers and governments who might modify the HTML and image payloads being transmitted to the end user. I guess HTTPS would be useful for prevent those types of exploits on static sites. So that pretty much means HTTPS should be on every site, if for no other reason than that.
Not just governments. I can get in my car and go to the three main shopping malls in my relatively large Portuguese city. I will very easily MITM a bunch of people there, no problem, using a variety of attacks. They won't realize that I'm now sucking all their traffic in and modifying it as I please.
After I've done that, if they visit any HTTP link, I can inject whatever I want there: crypto mining, download links to a modified/hacked version of their browser, social engineering attacks (phishing), cookie hijacking, etc. Notice how I can modify whatever HTTP page you have to link to websites you think are secure (banks, social media, websites), but that are modified (e.g. via sslstrip, or just by being similar-but-not-quite-the-same-hosts, etc)
Many months ago I went through this here: https://news.ycombinator.com/item?id=25123366
It should be a duty for all sysadmins to make sure their sites are HTTPS. Sure, if they're only in an intranet, HTTPS is likely overkill. But any publicly hosted website should be forced to be HTTPS.
One single HTTP website leaves a person vulnerable to millions of attacks. Many of these are still present on the web with HTTPS -- but at least then they'll typically be done by the people running the HTTPS site, not by someone in the middle.
For those sites you mention, confidentiality and availability will not really be impacted by HTTPS.
But the integrity can be.
Case in point: See this comment https://news.ycombinator.com/item?id=27507826
Because unencrypted HTTP allows attackers to MITM the traffic, they can do things like put ads on your site, inject malware or bitcoin miners, or just replace your site completely. None of those affect you, the site owner, directly, but ìt subverts the purpose of your site and lowers the value and trustworthiness of your site to your visitors.
HTTPS isn't just about securing the information, it ensures that when someone tries to get to your site, they ACTUALLY get to your site.
Unfortunately SRI is only deployed for CSS and Javascript (so your collection of JPEGs, or videos, or text snippets aren't eligible unless you somehow wrap them as a Javascript which is horrible) and most sites will themselves be HTTPS so they don't want to have active links (even with SRI) to non-HTTPS sites.
If that's the case, you are absolutely not the average internet user. Plenty of people, most of them non-technical, will connect to the wifi of their local cafe, and spend many tens of minutes doing things on the internet while connected to it.
I do think there's high value in having 100% of Internet traffic encrypted, not just 99%.
Consider something like the Great Cannon attack: someone could intercept traffic to your site and add in malicious JavaScript, or references to large resources on other sites for a DoS, or references to LAN resources, or other things that use your site to hurt others.
Consider that we're moving to a more carefully sandboxed, permission-based web, and those permissions are tied to identity. If your site wants permission for location, or permission to autoplay video, or camera access, or any number of other things that we may want to limit access to, that permission needs to be tied to a site identity so that they're not available to anyone who MITMs your site.
Consider that if your site has any kind of form, even the simplest of forms, users may use autofill with it, which puts them at risk if your site is plaintext.
Consider that even if your site is 100% static, it could have ads or other JavaScript injected into it.
Consider that what's "non-controversial" for you may not be non-controversial to everyone browsing your site; you're encrypting for their benefit, not just for yours.
Consider that it's much easier to keep users secure when browsers mark http as explicitly insecure rather than just omitting security icons.
We should absolutely make HTTPS even simpler and easier, so that security becomes the zero-effort default. And we should continue to deprecate HTTP.
As a related aside, I do think there are some specific cases that haven't yet been well-handled by HTTPS. In particular, there isn't yet a great solution for routers and embedded devices, which need an identity but don't have a domain name for that identity.
Now imagine you combine MITM-ing someone with social engineering. You send them a legitimate inocuous link like http://my-bank.my-tld, but you are MITM-ing them and outright replace the content of the page with whatever you want. Yes, HSTS protects agains this example, but the problem still remains: whatever goes through HTTP can be manipulated and used for nefarious ends. It's kinda like walking around with a car door open waiting for someone to throw a bomb inside it.
As for reasons to encrypt
1. Prevents (I think) ISPs in the middle from injecting ads, spyware, phishing scams, etc on top of your site.
2. Prevents 3rd parties from seeing what pages the user is accessing. Some people would prefer that other's can not read over their shoulder and see what they're reading.
I know for me, I'm sensitive to that particular issue to the point that I don't really want to use Netflix, Amazon Prime, Spotify, etc. I really don't like the idea that they're building a profile of me based on what I watch and thinking they know who I am based on that.
It could be as simple as I don't want it known if I'm reading liberal or conservative blogs.
I'm sure others might have other reasons they don't want a 3rd party to know what specific pages they're reading.
---
ps: I get there are other ways to track me but I'm fairly confident that I'm avoiding most of them via HTTPS, VPNs, Private browser windows, multiple profiles, 3rd party cookies off, ad blockers, etc....
Hacked routers can easily insert malware (and now days crypotminers) into html/javascript/css payloads, hell I remember playing with some stuff decades ago that would allow you to inject malware into exes that came across the network without encryption.
I use HTTPS. That said, if someone doesn't want to do it - also a valid choice. The arguments have been made (content manipulation, snooping ...) but if I as a site owner don't care about someone elses shitty ISP, then I can use HTTP only.
But let's be real, Apple, Google and Microsoft provide the money funding the browsers 95% of people use. So I think we can predict where this will end up.
Round Robin DNS isn't really supported "easily" so for those sites & others, manually replacing certs every year would be a more practical option.
To generate revenue, they should charge for stronger business confirmation like all the other for-profit certs.
When Let's Encrypt launched, the rule was 39 months. You could buy a certificate in 2015 and not need to replace it until 2018. If you had typical accounting practices a server might only ever need two certificates between when it's first purchased and installed and when it is finally retired and sent for scrap.
Ryan Sleevi and co. fought for two years and eventually got 825 days.
But in 2020 Apple unilaterally announced that they'd decided they didn't respect the line in the sand on this issue from mostly for-profit CAs, and their policy would require a maximum lifetime of 398 days.
You should not depend on this as the last word. I can certainly see less than 100 days being required later this decade.
As to "stronger business confirmation" it's essentially worthless. The client software doesn't enforce stuff you think you read in a certificate, because it doesn't understand it. The SANs can be understood by a machine so those are enforced, but nothing else is.
Example: When you visit google.com, your browser silently and automatically verifies at each step that this is really google.com, by doing effectively memcmp(dnsName, "google.com") for every single HTTPS transaction. That's mindless work so it can get it correct without bothering you. But even if the certificate includes Google's business number and postal address (which it does not) the browser can't match those against anything, they're just gibberish to a machine. It entirely ignores these values.
So: If at any step the remote site can't prove it is google.com, that fails immediately. Suppose you're typing in your password, the HTML form loaded just fine, and now it's just a POST to submit. During that POST the browser verifies, as it always does, that this is google.com. But if the business is now named "Bob's Toys" of "1234 Toy Town, Nowhere" it doesn't know that's wrong, your password will be sent anyway. Most likely after the password is sent, the response is a 30x HTTP code, and the browser fetches a different URL, which might incur a new HTTPS connection with a new certificate. So the "Bob's Toys" certificates was never seen by a human (you) at all, and the browser doesn't know who Bob's Toys are or that they're not google.com, it only checks that the DNS names match.
Only DNS names matter. Maybe you're happy about that, maybe you're sad, but it won't stop being true either way.
Amazon has been investigated for selling dangerously defective electrical products.[1] But they've been allowed to sleaze by, claiming that some anonymous seller is the problem.
[1] https://www.wsj.com/articles/amazon-has-ceded-control-of-its...
Did DV certs really require personal info before? I thought that was only ever EV.
> The domain registrar industry failed us, supporting "domain privacy" for businesses.
They didn't fail, they decided that maybe publishing the home address of every site owner was maybe actually a terrible idea and a huge privacy issue.
> Then Amazon allowed sellers to be anonymous while claiming that Amazon itself was not the seller.
That feels unrelated, but: Then get a court order and force the issue.
California law: (B&P code 17538).
(1) Before accepting any payment or processing any debit or credit charge or funds transfer, the vendor shall disclose to the buyer in writing or by electronic means of communication, such as e-mail or an on-screen notice, the vendor’s return and refund policy, the legal name under which the business is conducted and, except as provided in paragraph (3) (which is about PO boxes), the complete street address from which the business is actually conducted.
Not even in the European Union. In fact, especially not in the European Union. One of the principles of the Single Market is that you can't escape liability by operating in a different country within the Union.[1]
"Definitions ... (b) "service provider": any natural or legal person providing an information society service; ...
General information to be provided
1. In addition to other information requirements established by Community law, Member States shall ensure that the service provider shall render easily, directly and permanently accessible to the recipients of the service and competent authorities, at least the following information:
(a) the name of the service provider;
(b) the geographic address at which the service provider is established;
(c) the details of the service provider, including his electronic mail address, which allow him to be contacted rapidly and communicated with in a direct and effective manner;"
[1] https://eur-lex.europa.eu/LexUriServ/LexUriServ.do?uri=CELEX...
In the current era, the situation is that there are three acknowledged categories of certificates in the Web PKI (and thus trusted by an out-of-box web browser): EV, OV and DV. These are all defined by the Baseline Requirements, published by the CA/Browser Forum: https://cabforum.org/baseline-requirements-documents/
The BRs specify that certain characteristics of the X.509 Subject (e.g. a postal address) must be present in each category and if present they must be verified by some particular means. PKIX adds Subject Alternative Names SANs†, to reflect the Internet's idea about how to name things (e.g. Fully Qualified Domain Names), and in the modern era the BRs specify methods by which Certificate Authorities may verify those names belong to the applicant. I like to call these the Ten Blessed Methods, although today there are no longer ten of them.
In the prior era from about 2012 to 2017, things were similar except that the BRs said that any CA could verify SANs using "Any other method" of the CA's choosing. In practice this meant the methods in actual use were often inadequate and sometimes outright laughable.
Before that era, the CA/B rules didn't exist. Certificate Authorities occupied in effect a Wild West, having either been specialists providing X.509 certificates in other applications like the financial sector or else created specifically for this purpose. They did whatever they wanted. At first, they charged a lot of money for certificates full of details from the X.500 system. What was the full street address of your organisation? There was no systematisation, so given a certificate it would be a job for a forensic expert to decide what, if anything, could be said to be true about the subject and why. This worked OK when there were only a few dozen companies even bothering to use Netscape's new fangled HTTPS feature to secure credit card transactions. But if you can make $1000 selling one certificates to a bank, how about making $2000 by selling twenty $100 certificates to big commercial outfits keen to explore the possibilities for "Commerce on the Information Superhighway" ? Of course for $100 each you can't expect to check their street address. Let's just write the company's name, and "Verified".
So no, the answer to your question is that "DV Certificates" were never required to have personal info, but that's mostly because no certificates were in a sense required to fill that out, the rules about this stuff come after the de facto existence of DV certificates is driven by a race-to-the-bottom free market.
As to the Domain Registrars, for many of the TLDs we care about the registrar is, or is ultimately sanctioned by, a sovereign entity. Just as with Birth Registration, or Ship Registration, if you've got a problem with the way one country does it, take it up with that country, it's their business not yours.
In the UK for example businesses even those which are just a single person working under their name (such as my sister) are legally required to provide a postal address for their UK domain registration. Are some of them fake? Probably, lots of information in our legally required business register is fake, so that would be expected, but it is the law for whatever that's worth.
† Importantly, SANs are not an "alias". All certificates in the Web PKI have at least one SAN. Certificate Auhorities can, and as far as I know all do choose to write one of the names from a SAN as text into the X.509 Subject Common Name (CN) field. But that field is a legacy of the X.500 directory system that has been obsolete for decades, it's a plausible choice to display to a human because it's guaranteed to be human readable, for any other purpose it's definitely wrong.
[1]https://scotthelme.co.uk/extended-validation-not-so-extended...
The WHOIS database is an absolutely terrible idea that needs to die as soon as possible. This should have been a proxy service from the beginning. I don’t care if ICANN knows where I live so they can forward abuse mail but they should have never published this info to the public.
That being said, as long as we're on that space let's use HTTPS and support Let's Encrypt.