• ExLisper@lemmy.curiana.net
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    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
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      Yes, government agencies can do MITM whenever they want.

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

    • Supercrunchy@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      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

      • KubeRoot@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        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.

          • KubeRoot@discuss.tchncs.de
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 month ago

            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?

      • ExLisper@lemmy.curiana.net
        link
        fedilink
        arrow-up
        0
        ·
        1 month 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?