this post was submitted on 21 Oct 2026
519 points (98.7% liked)

Programmer Humor

33743 readers
2560 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] ExLisper@lemmy.curiana.net 15 points 18 hours ago (3 children)

One thing I don't understand...

So if a bad actor gets access to one of the intermediate CA certificates they can run all sorts of MITM attacks, right? What are the chances that government agencies don't have a bunch of private keys from CA that are not obviously wrong? 0, right? So we should just assume that government agencies can do MITM whenever they want?

[–] marcos@lemmy.world 3 points 7 hours ago

Yes, government agencies can do MITM whenever they want.

Also, take a look at the remote management functionality of your computer.

[–] Blackmist@feddit.uk 37 points 18 hours ago (1 children)

Cloudflare is the largest MITM hiding in plain sight.

[–] takeda@lemmy.dbzer0.com 3 points 7 hours ago

And everyone gives them voluntarily their private keys.

[–] Supercrunchy@programming.dev 7 points 18 hours ago* (last edited 18 hours ago) (2 children)

It's actually possible to prevent impersonation:

In theory all the generated keys are added to a public certificate transparancy log. Browsers should check that the key is there (but your http client library probably doesn't - and this is why these compromised keys are a problem).

Website owners should also check that there are no other certificates in there, and if they see an extra misissued certificate something went really wrong at a CA and that CA would probably lose all the credibility and trust.

Also when you request a certificate the CA doesn't get your private keys, so they can't reuse your cert.

Example: https://ctlogs.dev/search?q=Programming.dev

[–] ExLisper@lemmy.curiana.net 2 points 18 hours ago

Yes, but if it's not used for a website but VPN for example. If NSA got a private key from some compromised CA and did MITM on some VPN users, would anyone notice?

[–] kuberoot@discuss.tchncs.de 1 points 17 hours ago (1 children)

I wonder about one thing, if somebody can perform MITM on arbitrary domains, is there something like certificate pinning to stop impersonating the authorities used for things like this? I remember OCSP being something like that (if I'm not butchering the initialism), where the browser requests confirmation the certificate is currently valid, and the server can pre-fetch this confirmation to send to the client.

[–] chaospatterns@lemmy.world 1 points 8 hours ago (1 children)

Certificate transparency means that all certificates have to be publically logged.

[–] kuberoot@discuss.tchncs.de 1 points 2 hours ago (1 children)

Okay, but how do you verify that? In order to check if the certificate was logged, you need to access the log; if somebody can fake certificates and intercept your requests, can they also impersonate the certificate log and fake an entry there? Or is it secured in some additional way?

[–] chaospatterns@lemmy.world 1 points 1 hour ago* (last edited 1 hour ago)

WebPKI (the term for certificates used for web browser as opposed to the general usage of certificates outside of the web) requires that all certificates now be included in a public, widely used certificate transparency log. That fact gets included in the certificate delivered to your browser. Your browser will reject any certificate* that was not included in a certificate transparency log.

Take your instance discuss.tchncs.de for example, we can see all the certificates here. If you looked at that list, do you see anything wrong? Probably not.

But you're on to something. A malicious certificate is minted and it's in the CT log, so what? I don't check the CT log every time I go to a new webpage. Instead, CT logs are more able giving information to security organizations and companies to detect violations under their own properties. A company like amazon or google would setup CT log monitors to continually monitor for certificates issued for their domains. If they detect one, and they didn't request it, they can flag it to the cert authority board and it can get CAs pulled from the root trust stores. I can (and probably should find time to) setup certspotter on my own domains.