News for hackers. Stuff that matters.
Re:Consider disabling HTTPS auto redirects by josephcsible on Monday June 27, 2022 @11:04AM (#31895555)
This is really misleading and potentially dangerous. Details:

* Even on static sites, HTTPS prevents a MITM from telling what pages you're reading, or introducing falsehoods into the content. It's not "overuse" to use HTTPS there.

* I don't know how the author's server is set up, but a 1-second increase in page load time isn't consistent with load times I've ever measured anywhere else. In fact, there's a lot of HTTPS pages where the total load time is less than what's claimed as the difference here.

* If you care about sustainable technology, you should be demanding that Apple provide updates for hardware longer, or open-source everything so that the community can. Whether or not the sites you want to visit use HTTPS, using the Internet from a system years behind on security patches is a really bad idea, and not something you should optimize for.

* The specific suggestion of disabling the redirect is exactly equivalent to a MITM attacker running sslstrip, so you're doing a big piece of the bad guy's job for him.

Re:Consider disabling HTTPS auto redirects by xg15 on Monday June 27, 2022 @11:22AM (#31895827)
> Even on static sites, HTTPS prevents a MITM from telling what pages you're reading, or introducing falsehoods into the content. It's not "overuse" to use HTTPS there.

Also scripts. Even if the site itself is completely uninteresting to an attacker, he can still inject scripts which attack 3rd-party sites or exploit browser vulnerabilites to gain access to the machine. (Though, to be fair, the same is possible with ads)

> If you care about sustainable technology, you should be demanding that Apple provide updates for hardware longer, or open-source everything so that the community can.

I can't really agree with that point. How much longer is "longer" supposed to be? 6 years? 10 years? 50 years? To a software dev, supporting any piece of technology for 50 years sounds completely outrageous, yet that was the generally accepted lifespan of many consumer devices not long ago.

IMO, hardware/software that requires continuous updates is not sustainable, period. At some point, you'll always be in a position where the vendor is unwilling to keep up work for a product. Maybe you'll have some volunteers to fill the gap, but that's nothing that you can take for granted. At that point, if the device becomes e-waste, it's not sustainable.

Re:Consider disabling HTTPS auto redirects by josephcsible on Monday June 27, 2022 @05:35PM (#31901163)
> How much longer is "longer" supposed to be?

For as long as nobody else is capable of doing so. Don't forget the part where I said "or open-source everything so that the community can". If they did that from day 1, I wouldn't care if they never provided any official updates.

Re:Consider disabling HTTPS auto redirects by dingosity on Monday June 27, 2022 @11:51AM (#31896290)
demanding apple do ANYTHING is sort of an uphill battle.
Re:Consider disabling HTTPS auto redirects by vhold on Monday June 27, 2022 @12:35PM (#31897030)
Re:Consider disabling HTTPS auto redirects by hnov on Monday June 27, 2022 @11:20AM (#31895798)
The load time is contingent on ping, for instance with TLS over TCP you need 3 full round trips to get a pipe that can carry HTTP, this is 3x as many as with TCP alone. In the author's scenario there's a 500ms delay, so naively that's ping of 250ms which is really high. In the case of HTTP/1.1 or asset loads from other origins, there may be additional connections that are made which will all incur the extra overhead as well, though the author's blog is served over HTTP/2 which wouldn't incur this cost for same origin asset requests. For me best case for author's blog (just the HTML via curl) is 250ms plaintext and 600ms TLS. What's more interesting is that plaintext is a lot more consistent for me because I have pretty bad packet loss and the HTTP request fits into a single TCP segment.
Re:Consider disabling HTTPS auto redirects by nix23 on Monday June 27, 2022 @11:05AM (#31895582)
I don't know why your browser cannot redirect to https and the web-server has to do it.
Re:Consider disabling HTTPS auto redirects by JoshTriplett on Monday June 27, 2022 @11:09AM (#31895633)
Your browser can redirect to HTTPS, if you use HSTS preloading.

Also, at this point I think we have sufficiently pervasive availability of HTTPS that it'd be reasonable for browsers to expand typed domains (if the user types `example.org`) to use https:// rather than http:// , unless they're an IP address or localhost.

Re:Consider disabling HTTPS auto redirects by mcpherrinm on Monday June 27, 2022 @11:16AM (#31895752)
I believe the chrome address bar defaults to https now: https://blog.chromium.org/2021/03/a-safer-default-for-naviga...
Re:Consider disabling HTTPS auto redirects by remram on Monday June 27, 2022 @11:12AM (#31895676)
HSTS preloading requires that you have the redirection on your site though, as per "Submission Requirements" on https://hstspreload.org/
Re:Consider disabling HTTPS auto redirects by toast0 on Monday June 27, 2022 @11:59AM (#31896432)
FWIW, it doesn't require (or at least check) that you redirect for your whole site, just / on the apex domain. I've got a larger post elsewhere in the thread with detailed recommendations for how to use HSTS for modern browsers and let old browsers do http.
Re:Consider disabling HTTPS auto redirects by JoshTriplett on Monday June 27, 2022 @11:14AM (#31895699)
Which is one of many good reasons why you should have that redirection enabled. Or disable HTTP entirely (the HSTS requirements say "if you are listening on port 80").
Re:Consider disabling HTTPS auto redirects by ta220627 on Monday June 27, 2022 @11:15AM (#31895731)
Firefox does this (if you tell it to) and it's in the works for Chromium as well IIRC.
Re:Consider disabling HTTPS auto redirects by hdjjhhvvhga on Monday June 27, 2022 @11:18AM (#31895771)
> * Even on static sites, HTTPS prevents a MITM from telling what pages you're reading, or introducing falsehoods into the content. It's not "overuse" to use HTTPS there.

I hear this argument again and again. You need to understand it's completely useless for websites where you are a passive consumer (i.e. you don't enter any information, just read articles and so on). And, frankly speaking, MITM attacks on passive websites are much rarer than errors related to outdated (and sometimes misconfigured) certificates. Enabling HTTPS redirect means the fallback is no longer working, and if the browser doesn't let you in, you basically lost access to information even though it is still right there, just inaccessible.[0]

[0] Yes, website owners should configure their certificates properly, the process is now very easy, you can add certbot to crontab and forget - but it turns out in real life it doesn't work like this.

Re:Consider disabling HTTPS auto redirects by avl999 on Monday June 27, 2022 @11:33AM (#31896013)
It is not "completely useless" or a "theoretical attack vector". This literally happens in the wild. There were reports of Comcast and ISPs in India MITM'ing traffic injecting ads into their their customers' tcp streams a couple of years ago.

> Enabling HTTPS redirect means the fallback is no longer working, and if the browser doesn't let you in, you basically lost access to information even though it is still right there, just inaccessible.

This is the equivalent of saying that "since phantom issues with preflight checks on airplanes can sometimes result in cascading delays of flights on an entire airport therefore we should get rid of preflight checks on commercial airliners".

Re:Consider disabling HTTPS auto redirects by hdjjhhvvhga on Tuesday June 28, 2022 @04:06AM (#31905327)
> It is not "completely useless" or a "theoretical attack vector". This literally happens in the wild. There were reports of Comcast and ISPs in India MITM'ing traffic injecting ads into their their customers' tcp streams a couple of years ago.

In this case people can freely use the HTTPS version. What we argue is stop doing automatic redirects effectively rendering the whole content inaccessible in case of certificate issues - and this a massive problem, affecting much more websites than hijacking traffic by some ISP some years ago. And you can be sure ISPs will be doing less of it as most sites are on HTTPS now. What we are asking is not to kill plain old HTTP for those who want and need to use it.

Re:Consider disabling HTTPS auto redirects by SahAssar on Monday June 27, 2022 @11:27AM (#31895924)
> You need to understand it's completely useless for websites where you are a passive consumer (i.e. you don't enter any information, just read articles and so on)

It's not. ISPs have injected ads. It also gives slightly less data to for ISPs to track since they only get the SNI header (domain name), not what articles you visited.

You could argue that ISPs shouldn't do that, and I'd agree, but unfortunately many people don't have a choice of ISP and some ISPs are shitty.

Re:Consider disabling HTTPS auto redirects by hdjjhhvvhga on Tuesday June 28, 2022 @04:02AM (#31905305)
Yes, this is something I hear from my colleagues in the USA (I haven't seen it in Europe yet, it's unthinkable for me). Note that in this case you can perfectly use HTTPS. What we are talking is the situation where the website owner redirects HTTP to HTTPS (and in this case the ISP sees at least the initial article address anyway).