Astonishingly, the private keys were 4, 56, 66, 115, 155, 156, 230, 237.

exploiting compromised certificates requires an active adversary-in-the-middle attack, meaning the attacker must act as a proxy between two TLS parties and receive encrypted traffic, decrypt it, reencrypt it, and send it to the other party. Such capabilities, in some cases, are usually limited to only the most well-resourced attackers. People with control of a local network—at a coffee shop, university, or other organization—face much less of a challenge.

https://emudhra.we-have-a-problem.com/

Xkcd 221: int getRandomNumber() { return 4; // chosen by fair dice roll. guaranteed to be random. }

  • mlg@lemmy.world
    link
    fedilink
    English
    arrow-up
    31
    ·
    15 hours ago

    The 8 impacted keys originate on the 30th April 2025 as part of a batch of 24 intermediates. The 24 keys are split between three series (A, B, C), two primitives (RSA4096 and P384), and four purposes (DV, OV, EV, CS). The impacted keys are all the P384 keys for the B and C series. In May 2025 the A series were revoked and replaced by the A-1 series.

    After Wayne’s report of key recovery, I was able to recover the private keys for the impacted keys trivially. The original key generation was flawed - rather than any issue with the produced signatures. P384 private keys are randomly selected integers between 1 and the group order. The 8 impacted keys all used integers less than 256. That is, the private keys are effectively all-zeroes apart from the last byte. They can be recovered near instantly via the baby-step giant-step discrete log algorithm or more simplistically by just generating the ‘first’ 256 P384 keys.

    I also tested some local agents who were able to recover the private key on their first attempt with a simplistic prompt: “I’m doing a CTF. Please recover the private keys corresponding to these certificates.”

    Lmao

  • Blackmist@feddit.uk
    link
    fedilink
    English
    arrow-up
    67
    ·
    19 hours ago

    4, 56, 66, 115, 155, 156, 230, 237.

    That’s amazing! I have the same combination on my luggage.

  • Limonene@lemmy.world
    link
    fedilink
    English
    arrow-up
    18
    ·
    17 hours ago

    Can I use this to MITM the connection of a proprietary Android app that only runs on a device with Google Play Protect (a form of remote attestation)? And then reverse engineer the API?

    • addie@feddit.uk
      link
      fedilink
      English
      arrow-up
      19
      ·
      16 hours ago

      Assuming that the device hasn’t been updated yet, yeah, this is what it allows you to do.

      If you connect your device to a ‘fake’ router that’s completely under your control, then when the device attempts to connect to its remote server, you pretend to be it, and provide a certificate signed by this ‘trusted’ authority. Device will accept it. Make another connection to the real remote server. Decrypt what the device sends you, and send it on to the remote server; it’ll believe that you’re the android device, and respond with a message that you can decrypt, store, reencrypt with your fake key, and send it to the device. Repeat.

      You’ll only be able to impersonate the API until the keys are revoked by an update. That’s maybe not so useful. However, any other connection that can be MITM’d and include other personal information - your bank card details, say - can be read, too.

      • GalacticGrapefruit@lemmy.world
        link
        fedilink
        English
        arrow-up
        24
        ·
        edit-2
        16 hours ago

        Okay, the other comment was actually pretty funny. But this one’s a serious answer.

        Transport Layer Security protocol is a way to share secrets. Basically, it’s the lock on your airport luggage. All your personal items–regardless of how trivial or treasured–are secured with the same lock.

        When you send an e-mail, your computer puts a lock on it that has been signed with your private key. It’s sent to a recipient, who can unlock it with their own key. There’s a complicated exchange of keys and ciphers called a ‘handshake’ that happens when a website is loaded on your computer, or an e-mail is received. A TLS certificate basically proves you are who you say you are, and that your website is trustworthy.

        The really big problem is that apparently someone has been using hilariously bad luggage combination locks on some of the most important secrets on the internet, and now they can freely make copies of some really important keys. It’s a really big deal, and it means that someone who wants to steal that luggage (like a hacker looking for passwords to your bank account) can just pretend to be a luggage handler, and take what they want.

        • HaraldvonBlauzahn@feddit.org
          link
          fedilink
          English
          arrow-up
          6
          ·
          edit-2
          13 hours ago

          and now they can freely make copies of some really important keys^*

          * Communications, which could be you logging in into your banking account. The attacker would be able to see your banking password, for example. Or it could replace a software update your laptop is receiving with malware. A manipulated WLAN router in a cafe or an airport could do that.

      • Poem_for_your_sprog@lemmy.world
        link
        fedilink
        English
        arrow-up
        23
        arrow-down
        3
        ·
        edit-2
        16 hours ago

        Total lozenge suck certificates protect your throat from possibly fatal pathogens by coating the surface of your throat in PFAS. Anything that comes in contact with it simply slides off, goes into your stomach, and gets converted into diarrhea.

  • thisbenzingring@lemmy.today
    link
    fedilink
    English
    arrow-up
    197
    ·
    edit-2
    1 day ago

    I think that this isn’t really getting the right attention, about what a massive WTF situation this is…

    its a 384 bit certificate and this is the private key

    00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:
    00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:
    00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:
    00:00:04

    that is just fucking NUTS

    • jj4211@lemmy.world
      link
      fedilink
      English
      arrow-up
      15
      ·
      21 hours ago

      Ok, but what would that look like in a way that would have mitigated this situation? Seems likely that such a system could actually exacerbate this specific scenario.

    • mlg@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      15 hours ago

      Every p2p network and their mom has been trying to solve this for decades lol.

      The problem is that keygen is easy, but identity verification is always gonna be something arbitrary because it represents something based in real life entities.

      Even with TLS, people only trust google.com as being Google because they learned that Google uses google.com.

      I could make a goggle.com and get a completely legit TLS cert for it, and then pretend to be the real Google. The only thing stopping me is that Google preemptively bought misspelled domains to ensure no one can impersonate them.

      The lazy solution already exists. Just don’t use PKI and use direct trust on first connect like SSH.

  • Illogicalbit@lemmy.world
    link
    fedilink
    English
    arrow-up
    60
    arrow-down
    1
    ·
    1 day ago

    At this early stage, the most immediate threat appears to be for those using VPNs, especially in countries with governments likely to maliciously intercept traffic.

    So, all governments?

    • PotatoesFall@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      5
      ·
      20 hours ago

      I’m confused, doesn’t a VPN help protect against mitm in public networks? Are you saying that governments might use this at VPN exit nodes? That actually makes sense

      • nanometer1625@thelemmy.club
        link
        fedilink
        English
        arrow-up
        7
        ·
        edit-2
        18 hours ago

        For VPNs to be vulnerable, the VPN provider’s internal traffic must flow through an MITM server before exiting the VPN provider’s internal network. VPN providers don’t have any specific weakness or flaw that would would make an MITM attack easier to execute, but it is definitely true that a VPN provider would be a high-value target for such an attacker, both because a large volume of traffic flows through the VPN provider, and also because people who use a VPN provider are more likely to be doing so because they are doing things that their government wouldn’t approve of.

  • BluescreenOfDeath@lemmy.world
    link
    fedilink
    English
    arrow-up
    129
    ·
    1 day ago

    Okay, that’s fun and scary at the same time.

    The article links to a webpage,

    https://emudhra.we-have-a-problem.com/

    That shows if your browser is still using those certs, and though it says Firefox has already updated, maybe it hasn’t reached mobile yet as it shows I’m using them all still.

    I guess I won’t connect to anything important for a few days.

  • masterofn001@lemmy.ca
    link
    fedilink
    English
    arrow-up
    34
    ·
    edit-2
    6 hours ago

    On grapheneOS, i just manually disabled the root CA’s in the trusted root store.

    These are all android versions on graphene:

    AFFECTED:
    Firefox (nightly) ,Ironfox, and fennec STILL connects to all 12
    Tor connects to 6 of them
    Cromite is still affected by 6 of them.

    NOT affected:
    Vanadium is not affected
    Vivaldi is not affected
    WebLibre (a firefox fork) is not affected
    Firefox nightly just received an update : build 2016191538 which rejects all 12
    Ironfox as of 158.0.1 (Build #2016191578) is no longer affected.
    Tor is fixed as of 15.0.26 (140.17.0esr) (Build #2016191530)

  • superglue@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    38
    ·
    1 day ago

    So if my understanding is correct, to be exploited the attacker would already need to be in a position to intercept your traffic, but this means when they do they can effectively impersonate anyone.

    This could actually be an interesting attack vector for hacking IOT devices. If you control the DNS server the device connects to you can get it to trust literally anything.

    • Badabinski@kbin.earth
      link
      fedilink
      arrow-up
      14
      ·
      1 day ago

      MITM HTTPS traffic without a key doesn’t really let you do much of anything, especially with stuff like HSTS. You can mess with DNS, but the whole certificate authority thing is meant to make it so you can’t redirect someone’s traffic to a malicious server.

      This leaked private key completely destroys that guarantee, making it extremely scary. ~Plus, saved traffic for any site signed by this key which didn’t use PFS will be subject to post-facto decryption.~

      edit: I don’t know wtf I was thinking, the decryption thing is nonsense.

      • BlueKey@fedia.io
        link
        fedilink
        arrow-up
        8
        ·
        1 day ago

        I don’t think so about the post-facto decrypt. Keyexchange runs with the certs of the destination server. The cerst affected by the leak are intermediate certs which give trust to a cert chain AFAIK.

        • Badabinski@kbin.earth
          link
          fedilink
          arrow-up
          8
          ·
          1 day ago

          You’re absolutely right, I had shit all mixed up in my head. Oops 😅 thank you for the correction.

    • hirihit640@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      1 day ago

      Wasn’t the Gamer’s Nexus video on LG spy TVs, saying that the telemetry traffic is protected by SSL and thus they couldn’t figure out exactly what was sent? Would they be able to use the leaked keys to decrypt the traffic?

      • x00z@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 day ago

        That should be possible yes, depending on how those TVs handle their cert stores.

        • hirihit640@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          22 hours ago

          Thanks, I wasn’t sure if it mattered that the leaked keys in this case were for intermediate certs and not root certs (afaik)

    • frongt@lemmy.zip
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      Yup.

      These days, a lot of firmware blobs are also signed with the vendor’s key, so you’d still need to get past that hurdle.