Remix.run Logo
▲ Go will reject certificate chains containing eight distrusted SPKIs(github.com)
65 points by mendym 4 hours ago | 18 comments
▲agwa 38 minutes ago | parent | next [-]

https://gist.github.com/AGWA/5a78186e0f4a7d537b8891a7b46f945... is the list of certificates in Certificate Transparency issued by the blocked CAs as of this time. They appear to be non-malicious test certificates, and the DNS name in the first certificate indicates who likely discovered the issue.

What's alarming and unprecedented is that yesterday, two Certificate Transparency log implementations were updated to block the logging of certificates issued by the CAs. This likely indicates total private key compromise, and the blocking by CT logs is to prevent the logs from being spammed by forged certificates. However, it also means there will be no place to record forged certificates found in the wild. (These certificates won't validate in CT-enforcing clients since they won't be in CT logs, but could be used to attack non-CT-enforcing clients.)

▲ericbarrett 3 hours ago | parent | prev | next [-]

A bit more info (and some discussion linked from these Bugzilla reports):

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

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

▲wnoise 3 hours ago | parent | prev | next [-]

It is a shame that you cannot have a cert signed by multiple CAs.

(The format seems like it would allow it, but nothing supports it, and in practice CAs demand the ability to actually modify some fields, and then sign that.)

▲crote 3 hours ago | parent | next [-]

It is done with intermediate certs, though! It's a common method of establishing trust in new root certs: sign the intermediate with an already-trusted root cert, then wait for the community to adopt the new root cert over the years.

For example, the initial Let's Encrypt Authority X3 was signed by both their own (new, not-yet-universally-trusted) ISRG Root X1, and the universally-trusted third-party IdenTrust DST Root CA X3.

One crucial detail is that it isn't the same certificate. Rather, it is two separate certificates which just so happen to be using the same key pair, so the leaf cert is in essence signed by both intermediate certs at once.

I wonder if it would be possible to do the same thing on your own, actually: can a server present two completely separate cert chains to a connecting client - as long as the leaves use the same key pair? Technically AFAIK the only requirements should be 1) the key pair in use for the connection matches the cert, 2) the domain matches the cert's Subject, and 3) the cert is trusted, so at first glance it might be possible...

▲wnoise 2 hours ago | parent [-]

That's an interesting wrinkle I was not aware of.

▲cpach an hour ago | parent | prev | next [-]

Would it really be worth the extra complexity?

Another option: Use ACME together with ARI (RFC 9773). The client checks ARI data every hour. If the cert needs to be replaced – for example like in this scenario – the CA will inform the client, which in turn would then request a new cert.

I know it’s not convenient to automate for every kind of device though. I guess in some of those cases it might be better to have a load balancer in front of the device. Or use an alternative PKI.

▲lmz 3 hours ago | parent | prev [-]

X.509v3 just has one issuer Name in the certificate, unless you're talking about something else?

▲wnoise 2 hours ago | parent [-]

Yeah, that's one of the complications. It would have to be ignored in processing, or multiple variants be presented at once (preferred).

Certificates are not the same as the public key; multiple certs sharing the same key is essentially the way around this. It's not as elegant as identical signing of the same cert, but it could work.

▲crote 2 hours ago | parent [-]

Identical signing of the same cert also runs into issues like "who gets to decide the serial number" and "how to deal with revocation lists: all of, or any of?".

And turning fields like issuer and serial into arrays risks someone accidentally using index 0 for one field and index 1 for another.

Combine that with the insane back-and-forth nightmare that the issuance process would turn into, and I have a very hard time seeing the benefit in it. After all, nobody is stopping you from requesting multiple certs independently, watching the revocation logs, and switching to the backup when required.

▲accountrequired 2 hours ago | parent | prev | next [-]

"Sir, this is a Wendy's" moment where my compiler thought it was a root certificate authority

▲TheDong an hour ago | parent [-]

I mean, they're the TLS certs are baked into the stdlib 'tls' package, not the compiler itself.

It's just an unfortunate unforced error that the go TLS package is bundled along with the compiler, in the same way Safari being bundled with iOS updates is an unforced error meaning a safari security bug requires a full OS update.

▲mendym 4 hours ago | parent | prev | next [-]

This seems to be the list of certs https://gist.github.com/mendymm/ff7a9fd00339260b4d2dbdcb0f48...

data from https://www.ccadb.org/resources

▲jeffbee 2 hours ago | parent | prev [-]

It's interesting that this sort of policy is baked into a language platform.

▲stephbook 2 hours ago | parent | next [-]

Indeed. But the Java keystore and the Firefox/Chrome/VSCode NSSDB and whatever Python is shipping this week aren't really better.

I wonder what's so annoying about OS certs.

▲whatevaa 2 hours ago | parent [-]

It's mostly historical. They used to suck in the past, but the implementations remain. Nowadays you are better off configuring to use OS certificates if possible.

▲fractorial 2 hours ago | parent | prev [-]

What about it makes it so interesting?

▲jeffbee 2 hours ago | parent [-]

Clearly the platform isn't designed to do this. Nobody thought this was going to be a necessary facility. They have just crammed an array of numbers as literal values deep into the standard library. So clearly this is an exceptional event, and not the exercise of a feature that was foreseen.

▲fractorial 2 hours ago | parent [-]

Ah, yes that seems to be what URGENT track self-documents as.