News for hackers. Stuff that matters.
Re:Comcast Shot Themselves in the Foot with MTA-STS by Macha on Wednesday January 19, 2022 @04:59PM (#30000866)
HSTS itself is fine? It just means "please only contact me over TLS for X amount of time". The only complaint I heard about was adtech companies using it for fingerprinting.

Are you sure you're not thinking of HPKP?

Re:Comcast Shot Themselves in the Foot with MTA-STS by Karunamon on Wednesday January 19, 2022 @05:15PM (#30001092)
Problem is "X amount of time" is usually "months-to-years" and there's no override.
Re:Comcast Shot Themselves in the Foot with MTA-STS by Macha on Wednesday January 19, 2022 @05:38PM (#30001427)
But as for as stipulations go, "Must use TLS" seems pretty tame.
Re:Comcast Shot Themselves in the Foot with MTA-STS by ocdtrekkie on Wednesday January 19, 2022 @06:15PM (#30001870)
Until an application chooses to enable HSTS, and their only documented way to update the certificate is the web interface... and there's HSTS. I lost a weekend to HSTS not long ago.

Essentially the problem with HSTS is it's a malicious choice to remove user agency because the spec intentionally prohibits web browsers from allowing a bypass option, despite the browser being an agent of the user, not the server. It also tells you to talk to your administrator, which is unhelpful when you are the administrator but the browser refuses to allow the administrator to continue.

Every time I've encountered HSTS in practice, it's been because of a perfectly normal certificate error I'm aware of the reason for (usually expiration) and have no real concerns about bypassing, except my own web browser won't let me.

The problem with HSTS (and MTA-STS) is that these are specs designed for internet centralization, where Google or Microsoft controls everything and manages everything[1], and a certificate never lapses. It's not designed for the real world, and neither of these specs would've made it except for that big tech has complete capture of web standards.

[1] Didn't know who the authors were when writing this comment, but the authors of the MTA-STS RFC are in fact, Google, Google, Microsoft, Comcast, and Yahoo.

Re:Comcast Shot Themselves in the Foot with MTA-STS by tptacek on Wednesday January 19, 2022 @06:33PM (#30002027)
This is a weird analysis. HSTS allows site operators to stand up sites that are HTTPS-only. They ultimately choose the services they want to offer, not you (or else every webserver would just be a remote shell).
Re:Comcast Shot Themselves in the Foot with MTA-STS by ocdtrekkie on Wednesday January 19, 2022 @06:45PM (#30002136)
Standing up sites that are HTTPS only are a matter of not opening port 80 on your server. HSTS is an action to force access to fail even when you know the content being served, know the server is correct, and understand the issues with certificates.

HSTS would be an annoyance, but still manageable if not for the complete removal of our user agency. I think that's really where HSTS moves from a security specification to an abhorrent abuse of monopoly control of web standards. It's less about protecting the user and more about giving Google and such power over what you can and can't view with your browser.

Re:Comcast Shot Themselves in the Foot with MTA-STS by tptacek on Wednesday January 19, 2022 @07:04PM (#30002335)
No, it's plainly not as simple as "not opening port 80", because an attacker can spoof the server side of port 80. This attack, "SSL stripping", is literally the reason we have HSTS.
Re:Comcast Shot Themselves in the Foot with MTA-STS by ocdtrekkie on Wednesday January 19, 2022 @07:55PM (#30002791)
I think you are missing my core point: That the web browser, as my agent, should do what I tell it. Which means any browser that refuses to load a site because of a cert issue because of HSTS, that browser has been hijacked by the server operator.

For any other certificate issue, my browser will allow me to bypass it if I know what I am doing. But because HSTS has hijacked the browser, it will no longer act in my stead unless I fork the browser and recompile it. I consider HSTS to be a malicious specification in this respect.

Re:Comcast Shot Themselves in the Foot with MTA-STS by tptacek on Wednesday January 19, 2022 @09:11PM (#30003479)
Your web browser should do what you tell it to, but it doesn't follow that people who provide apps are obligated to allow you to speak HTTP to them. I don't know what a "malicious specification" is, but your logic about how to lock apps into HTTPS (by simply not listening on 80/tcp) doesn't hold, at all.
Re:Comcast Shot Themselves in the Foot with MTA-STS by tedunangst on Wednesday January 19, 2022 @10:01PM (#30003928)
That's not the request being made. What people want is for the button that says "this expired cert is fine, whatever" to still be available for hsts https sites.
Re:Comcast Shot Themselves in the Foot with MTA-STS by tptacek on Wednesday January 19, 2022 @11:28PM (#30004636)
I guess I don't understand what that has to do with HSTS, which was not designed for that button.
Re:Comcast Shot Themselves in the Foot with MTA-STS by ocdtrekkie on Thursday January 20, 2022 @12:02AM (#30004882)
Basically, on any ordinary HTTPS site, every browser can allow you to proceed despite a certificate error. Such as knowing the certificate is expired or revoked or not from a known CA or something.

HSTS by specification prohibits browsers from offering that option. So I can know a server is serving valid, authentic traffic via HTTPS, be aware of why the certificate has an issue, and HSTS requires that my browser prohibit me from connecting to the server.

Re:Comcast Shot Themselves in the Foot with MTA-STS by tedunangst on Wednesday January 19, 2022 @11:50PM (#30004810)
When an HSTS locked site has an expired cert, the browser takes away the "it's okay" button.
Re:Comcast Shot Themselves in the Foot with MTA-STS by tptacek on Thursday January 20, 2022 @01:11AM (#30005384)
No, I get that. I get how you can reasonably argue about that feature. I don't get how you can argue that feature suggests we shouldn't stop SSL stripping at all.
Re:Comcast Shot Themselves in the Foot with MTA-STS by Dylan16807 on Wednesday January 19, 2022 @06:37PM (#30002070)
HTTPS-only is fine, and I like it overall. But HSTS also cranks up certificate enforcement in a way that is sometimes excessive.