by throwaway984393 · 4y ago · 0 comments
FWIW let's encrypt does multi perspective validation, but it is not a requirement currently.
The best thing to do as a site owner is to regularly check CT logs or use a service that does that for you.
The site owner may know about the compromised cert, but the users/clients will be blissfully ignorant and unable to do anything about it.
As of now, the world's most popular browser does not support OCSP. So revoking a cert kinda has no impact on chrome.
As we go forward, crlite is going to be required by Apple around October of this year. It's probably our current best option for browsers to use.
But yeah, you're not wrong. At the very least it would give you an idea that you were targeted and give you an idea that you need to plan for DR.
- You own the domain trust.org pointing to IP address 2.3.4.5.
- Someone performs a BGP hijack on 2.3.4.5 and now hosts their own server on 2.3.4.5.
- They then ask Letsencrypt for a certificate to prove they are trust.org. Letsencrypt provides them a token to host on their website to prove they control it.
- Letsencrypt does a DNS lookup, sees trust.org resolves to 2.3.4.5, and performs a http request to that website to check for a token which the hijacker has duly placed on their server at 2.3.4.5.
- Letsencrypt issues a certificate for trust.org, which is now valid and controlled by the hijacker.
None of this requires access to CAs installed on anyones machine, because Letsencrypt is widely trusted and they are the ones issuing the cert.
One common way is they tell you a magic, unique string and you serve it under someguy.example/.well-known/whatever and they connect to you and verify it's there and matches. But if BGP is being hijacked, when they connect to you, they could really be connecting to some scammer. How would they know? So now some scammer has proved they're you and they'll be given a valid cert for someguy.example.
The other common verification methods have similar holes.
There's actually multiple attacks using BGP. You can either hijack the DNS or E-mail server's IP and spoof records, or you can hijack the IP of the target host and spoof an HTTP response. Or you could try all 3 to maximize your chances.
In theory i think https://en.m.wikipedia.org/wiki/Resource_Public_Key_Infrastr... is the thing that's meant to stop this attack if everyone adopted it.
It however doesn't typically help in a BGP hijack. The DNS answer is authentic, but the server at the answer given isn't.