Hacker RealtimeBuilt with Neon Realtime
connecting… · checking source…

Comment on Hacker News

  1. Right, so it's not just git, it's a bunch of system-provided utilities; macOS trusts bad certs, and these utils that trust the OS are affected. I use homebrew for my git and curl but haven't yet checked to confirm whether that matters here. Kind of outrageous that Apple's guidance is to edit the cert chain manually, and to expect that subsequent OS updates may revert your mitigation, reintroducing the vulnerability (as happened at least once so far).
    reply
  2. That MacOS hasn't removed from OS-level /etc/ssl seems like a big deal, affecting more than just OS-supplied git. Is /etc/certs not used by most graphical Mac software, I guess? The chaotic state of OS-level cert management, on Linux as well, is pretty dismaying.

    If Apple is still trying to brand themselves as security-forward, you'd think removing the revoked CA certs from /etc in a system update would be a pretty easy thing to do?

    reply
  3. A flat cert.pem file (or similar) can't say "distrust this intermediate".

    macOS already has the verifier needed (Security.framework/trustd path that protected Safari). It would be good if MacOS routed CLIs through it.

    reply
  4. Here's what apple (themselves) recommends to patch: https://support.apple.com/en-us/149555

    Pretty much every developer on mac should probably run their patch.

    reply
  5. While there is no proof that anyone knew about these weak keys for the year and a half that they were trusted by virtually everybody, and there's no evidence of MITM attacks happening in the wild because of it, you can imagine the payoff that a three letter agency would have if, for even 10 days, there was an opportunity to harvest credentials from important people in high places.

    I have no evidence or proof, but I am convinced this wrap/unwrap key generation debacle was intentional and the weak keys were discovered and kept secret by the agencies or governments and used to exploit their adversaries.

    You don't need to perform a traditional MITM attack _if you own the airport_ or you _own the free public wifi_. The traffic can be harvested in clear text and we have to come to terms with the _remote possibility_ that this was going on for over a year and a half. If not that long, then certainly for the past 10 days.

    reply
  6. > Anyone can intercept any HTTPS connection these tools make.

    yeah, it's not ideal but the scale of the threat is way overblown tbh. You have to compromise a lot to be able to make a MITM here.

    Let's not treat it like PHP2Shell.

    reply
  7. They just released MacOS 27.2 a few days ago? How and why did they not do a patch at least then?
    reply
  8. great domain name! for a public service too, i imagine this is not the only problem pending attention
    reply
  9. To get mine to finally update, I had to leave my laptop plugged in for a couple of hours. There’s some trustd process that runs every so often; I couldn’t figure out a way to manually trigger the sync.
    reply
  10. Delete /etc/ssl/cert.pem and replace it with the one from MacPorts.

        # /usr/bin/curl https://dv-g3b-aaa-noct-emudhra.we-have-a-problem.com/
        Your client successfully connected to the site. That's bad!
        
        # sudo mv /etc/ssl/cert.pem /tmp/
        
        # sudo ln -s /opt/local/libexec/openssl3/etc/openssl/cert.pem /etc/ssl/cert.pem
        
        # /usr/bin/curl https://dv-g3b-aaa-noct-emudhra.we-have-a-problem.com/
        curl: (60) SSL certificate problem: unable to get local issuer certificate
        More details here: https://curl.se/docs/sslcerts.html
    reply
  11. There must be a long list of things that aren’t fully patched for this yet, on laptops, on servers. Think of packages that ship their own trust anchors, isn’t there a rust crate that compiles with some root certs embedded?

    On one hand there’s unmaintained packages that won’t update dependencies. On the other hand, fixed dependencies did not necessarily backport to all possible versions in the wild, making update as a fix unviable for those.

    reply
  12. It seems like we've all just... given up on certificate revocation? CRLs and OCSP were designed for exactly this sort of thing, but they both seen to have been abandoned as unworkable with no replacement.
    reply
  13. Apple can fix this by building curl with SecTrust [1].

    [1] https://eissing.org/icing/posts/curl-apple-sectrust/

    reply
  14. If you're not already in the habit of contacting your git remotes over ssh, its probably one worth building. This is gonna keep happening.
    reply
  15. Running (uname -a) Darwin arrakis.local 27.2.0 Darwin Kernel Version 27.2.0: Wed Oct 14 23:47:07 PDT 2026; root:xnu-13432.41.4~25/RELEASE_ARM64_T8132 arm64, I get the following for both:

        curl: (60) SSL certificate OpenSSL verify result: unable to get local issuer certificate (20)    
        More details here: https://curl.se/docs/sslcerts.html
    
        curl failed to verify the legitimacy of the server and therefore could not
        establish a secure connection to it. To learn more about this situation and
        how to fix it, please visit the webpage mentioned above.
    reply
  16. I'm not that familiar with the MacOSx system, but do they have a "minor" update path that I'm not aware of? It seems that everything is an 8gb update. Is that why this update isn't getting put out?
    reply
  17. Can we get a title edit? OP’s title implies this is a Git bug, but the bug applies to half of macOS, including curl, openssl, python, perl, and ruby, and to only the macOS version of Git. The original title is less misleading, but personally I’d have titled it something like “macOS still trusts the compromised eMudhra certificates in git, curl, openssl, python3, perl, ruby, more”.
    reply
  18. Things like this is why I moved back to Linux after 10 years on macOS.
    reply