Hacker News new | ask | show | jobs
by kensey 41 days ago
The big takeaway here is: Web PKI is fundamentally broken, and the existence of CAs as a concept is the vulnerability that must be fixed -- or, more specifically, the idea that ultimately trusting a relatively small, basically fixed/hard-to-change set of (mostly) commercial entities with something this critical and far-reaching is (or ever was) actually a good idea.

There are a lot of reassuring statements from browser makers and others about how their mitigations for exactly this scenario kicked in and protected (some set of) Internet users, but IMHO there is not nearly enough discussion happening about fixing things so those mitigations are not needed to begin with.

3 comments

People have been saying that CAs are a bad idea since CAs were first proposed.

The problem is that those same people tend to disappear as soon as you ask "So what should we do instead?"

I think Moxie's "convergence" proposal from ~2011[1] has the most benefits with the least downsides -- in particular I think he really pointed out the crux of the issue: the fact that servers decide who is trustworthy enough to certify their certificates and clients have no input into that decision is a broken model.

This incident was obviously comically bad but the Comodo hack had a more painful impact on the mitigation that should give everyone pause -- their CA had signed a quarter of the internet's certificates so the trust couldn't just be revoked. Imagine one of the LetsEncrypt intermediates got compromised -- our mitigation strategies really cannot cope with that kind of disaster scenario. Browsers would be in the unenviable position where they'd be forced to make huge portions of the internet go dark for potentially months.

[1]: https://en.wikipedia.org/wiki/Convergence_(SSL)

For starters, limit CAs to a specific scope. It's pretty insane a Chinese or Indian CA can certify websites in the Netherlands.

In the 90s vision of a truly globalised world that might have made sense but in today's geopolitical reality it's insane.

If this had been in place already, instead breaking the internet this would have been purely a regional issue.

We have DANE, but that's reliant on DNSSEC (which is suboptimal and basically unused outside of a few TLDs).

We also used to have HPKP but that was killed because anyone who could take over a site temporarily could pin their own key to all new visitors and then hold the website ransom even after the owner got a hold of their domain again.

Honestly, if we just patch up DNSSEC to work around its current limitations, we could already use DANE and be done with it. Put the (ECC) public key in the HTTPS record your client is looking up anyway and you're basically there.

oh no you want some trendy .in or other domain name? sorry can't use your favorite CA, got to use the crappy one that leaked keys
Well yeah, or have the website define which CA they use, and don't let any of the others certify it. Apparently there is already DANE for this but webbrowsers don't check it.

Besides, there could be more CAs supporting .in of course. And it becomes a matter of responsibility to the local government.

And national TLDs aren't meant to be trendy anyway. Many have restrictions on them to local businesses anyway, it would make sense to have the local domain authority have control over choosing CAs as well.

> have the website define which CA they use, and don't let any of the others certify it.

Isn’t this exactly what CAA records are for?

CAA is only verified by CAs. A malicious CA can ignore CAA records.
Why do you think that’s a problem? Trendiness shouldn’t supersede security.
We should have a very small set of largely not-for-profit CAs run by competent security people, such as Let's Encrypt. There are just too many trusted CAs at the moment, it increases the risk of a breach like this substantially.
Let's Encrypt had their own security snafu. They issue certificates for longer than they were supposed to (1 extra second). It wasn't as big of an issue as this, but let's not act like they are some silver bullet

https://bugzilla.mozilla.org/show_bug.cgi?id=1715455

Honestly even if they were issuing certificates for much longer than they were supposed to, that is a way lower level of risk than "everybody in the world absolute-trusted a CA certificate that turned out to have a 256-bit private key crackable in seconds".
You could store the public key for each website in DNS. But now you moved the trust problem to DNSSEC. So far I haven't heard about issues like this for DNSSEC, but then again it is not a massive target currently.
DNSSEC has the inherent advantage that only the root servers could have the same impact as any CA dpes mow because anything below them has much more limited scope. And any software that is reasonably updated can just pin the DNSSEC keys for TLDs and then you have no single entity with global fuck up potential.

It's also worth remembering that domain validated CA certificates already rely on trusting the DNS hierarchy as the source of the information they certify.

CAs themselves already trust DNS to verify your domain.
They don't disappear, they are just shouted down by CA fanatics.
The largest problem is that you trust the entire set of commercial entities (in any one of them can destroy the world's security by itself), and the set is semi-secret (in no party using them actually knows what the set is).
That is because browser vendors value the power this scheme gives them over their user's security.