Hacker News new | ask | show | jobs
by Borealid 56 days ago
This sounds like something that HPKP ( https://en.wikipedia.org/wiki/HTTP_Public_Key_Pinning ) could have prevented and CAA records ( https://letsencrypt.org/docs/caa/ ) could not. But HPKP is deprecated.
4 comments

Only if someone had visited that site before, and it’s insanely risky and would damage far more sites than would save.

The issuing was detected almost immediacy thanks to CT, and as we move to shorter certificate lifetimes the impact is continually reducing.

The CAA record in dns is a weak link though.

> The issuing was detected almost immediacy thanks to CT

Which means that the risk to you or I or the general public is low.

But FWIW: it also tends to argue that this is the aftermath of a coordinated, targeted attack against a single high value target (or at most a small set of targets they could hit within the window). The attacker knew they had a gun with only one bullet, and we're just hearing the muzzle report.

Certificate Transparency logs are from late September, and public reporting is from October 6. I wonder how wide or narrow that window truly was?

Edit: Someone more curious than I am might be able to answer this by seeing when the CRLSet was published. https://github.com/agl/crlset-tools

"as we move to shorter certificate lifetimes the impact is continually reducing"

When a company has 3 billion customers, there's no practical cert lifetime that really reduces exposure. Five minutes would sniff enough traffic to do significant damage; one day would impact a big chunk of their users and five days would be nearly 100%

Am I wrong in thinking that removing this attack surface entirely would eliminate that ability to offload to CDNs?
Visiting google damages you anyway.
+1
Well, for Google specifically (and others who have opted in), this has been hard coded in some browsers before the first visit.
Solutions for Google and instagram and whatever are trivial.

General solutions are tricker, and it’s good that Google limits its “special” case. When bbc.com or al jazzera or cnbc or whatever is hacked that’s a problem that is only solved by generic solutions.

Hence why I said "for Google specifically".
CAA records (with ACME account bindings) can prevent this.

HPKP was deprecated because it was too dangerous to be deployed in production.

Not when you simply remove the CAA record from the DNS entry
You can't "simply" do that: a long cache period pins CAA. Of course that makes it the same, and with the same problems.

What I'd like to see is the ability to use and utilise multiple TLS certificates and host keys on the same session so that all the keys could be rotated/phased in-band with cross-signing providing the authority.

Seeing any mere change in the signers faster than (say) 30 days should allow the browser/client-stack to generate a warning that "google.com may be actively under attack please call this number on the old certificate, codeword banana-alpha-lima-lima-sigma". No need to cross-publish the keys, just cross-sign and don't forget what you've seen previously.

The browser would be able to take policy of simply never trust a certificate whose signer has changed (since phasing is possible), and it wouldn't then need to consult more public oracles (DNS, certificate transparency, etc, that leak privacy).

I'd also like to get that webauthn hooked back into TLS client certificates: If we had 1997 again instead of passkeys that also would've stopped this.

> The browser would be able to take policy of simply never trust a certificate whose signer has changed

This assumes that the signer's keys can't be compromised, and re-introduces the issues of key pinning that the WebPKI community has been pushing very hard to eliminate from its dependents. I don't think it's a workable solution.

I think you are very likely to use the same signer if you actually lose the key, so this isn’t something I think a naive sysadmin is going to fuck up the way they fuck up host pinning.
How can you use the same signer when the signer's keys are lost?

Or, if the signer's keys are compromised, how do you switch to a non-compromised signer without alarms triggering?

The problem is almost exactly the same as one with a delegated CA -- if the CA keys are compromised, you have to re-issue all certs. When the client pins the CA key then the chain of trust is permanently broken.

Well google.as has a CAA record of 24 hours now. I assume it had one before.

Therefore either

1) Letsencrypt ignore CAA records (unlikely)

2) The DNS hijackers removed the CAA record 12+ hours before doing their attack and google did not notice (I'd hope unlikely)

3) Letsencrypt querys did not return a cached CAA record because their resolvers had not been asked for it, so removing the CAA record a few minutes before hand worked.

> .com may be actively under attack please call this number on the old certificate, codeword banana-alpha-lima-lima-sigma

Do you seriously think this is an appropriate message to give to Aunt Irene?

I would assume Let's Encrypt didn't have the CAA records cached, as they had never issued a certificate for the domain. We can't expect them to cache every possible CAA record, and even if they did, that wouldn't be a silver bullet. So I agree that, in this case, CAA doesn't help.
That is a good point.
The problem is that there is no out-of-band mechanism for update like other devices.

If your CA certs are bad on your mobile application, you can push an out-of-band update via the device's app store.

If your CA certs are bad on a website you access via your browser, the means of updating them is... the browser. You can't get new certs without using a TLS connection you didn't want to trust anyway.

Google Chrome has a static, preloaded pin set for Google's own web properties, I guess these minor ccTLDs were not covered by that.