kuuhana
  • Communities
  • Multi-communities
  • Support Lemmy
  • Search
  • Login
  • Sign Up
Selfhosted@lemmy.worldbymox@lemmy.sdf.org
3 years

Backdoor in upstream xz/liblzma leading to ssh server compromise

www.openwall.com English

Related discussion:

https://news.ycombinator.com/item?id=39865810

https://news.ycombinator.com/item?id=39877267

Advisories:

CVE-2024-3094
Arch
Debian
openSUSE
Red Hat

9
    You must log in or register to comment.

    • tal@lemmy.todayEnglish
      3 years

      Man, there is a lot of concerning stuff there.

      In particular, one person commented that the original xz maintainer was possibly subjected to a pressure campaign to hand over maintainership.

      Another interesting data point: about 2 years ago there was a clear pressure campaign to name a new maintainer:

      https://www.mail-archive.com/xz-devel@tukaani.org/msg00566.html

      At the time I thought it was just rude, but maybe this is when it all started.

      I don’t know how many open-source project maintainers would be on guard for something that subtle, people coordinating to take over maintainership of a project.

      I mean, xz isn’t normally something you’d immediately think of as security-critical. I doubt that a maintainer knows or thinks about about all the potential downstream dependencies (in this case, not even a standard sshd depedendency, but one that came up because of a patch that Debian used to add some systemd functionality).

      EDIT:

      I mean, xz isn’t normally something you’d immediately think of as security-critical.

      On second thought, it actually is, given that Debian packages are xz-compressed.

        • tal@lemmy.todayEnglish
          3 years

          We’ve had a lot of trust among open-source projects, where people just kind of assume that people are doing the right thing, but there are some very, very large places where a potential attacker might manage to get maintainership of a library, if they’re willing to spend a long time slowly getting access.

          I’d figured that one day, we’d have a really big apocalypse that would cause some of that to break down, and we’d lose our innocence and have to do things differently.

          I mean, let’s say that I’m an important security researcher, and I use R, a common statistical tool, nothing directly to do with security. That pulls in all kinds of libraries from various online statistics archives, and the people working on those aren’t really security people, probably generally don’t know how to vet things effectively even if they wanted to do so. Perl and Python and other tools have similar things. If someone can target that security researcher using that, could be nothing more than an intentionally-induced parsing bug in a library they use, then they can get things like that researcher’s private keys, maybe get ahold of signing keys for software packages and the like.

          And in the xz case, it looks like social engineering efforts were used against both the maintainer and packagers. The open-source community has a lot of well-meaning strangers collaborating in good faith, built on a lot of trust extended, and they aimed to exploit that.

          All of the problems get a lot harder to deal with when it’s someone willing to spend a lot of time and use sophisticated tactics.

          • Moonrise2473@feddit.itEnglish
            3 years

            Wow

            And for a state sponsored attacker is cheaper to bribe (or threaten to kill, even cheaper) the single developer to add a backdoor than all the research to find a zero day

          • DocMcStuffin@lemmy.worldEnglish
            3 years

            There’s talk on the Linux kernel mailing list. The same person made recent contributions there.

            Andrew (and anyone else), please do not take this code right now.

            Until the backdooring of upstream xz[1] is fully understood, we should not accept any code from Jia Tan, Lasse Collin, or any other folks associated with tukaani.org. It appears the domain, or at least credentials associated with Jia Tan, have been used to create an obfuscated ssh server backdoor via the xz upstream releases since at least 5.6.0. Without extensive analysis, we should not take any associated code. It may be worth doing some retrospective analysis of past contributions as well…

            • EccTM@lemmy.mlEnglish
              3 years
              • Arch Linux announcement
              • Ubuntu discourse announcement
              • RedHat/Fedora security alert
              • Debian security announcement
              • vext01@lemmy.sdf.orgEnglish
                3 years

                In case, like me, you were wondering what this has to do with ssh:

                openssh does not directly use liblzma. However debian and several other distributions patch openssh to support systemd notification, and libsystemd does depend on lzma.

                • Teppic@kbin.social
                  3 years

                  A good summary here: https://arstechnica.com/security/2024/03/backdoor-found-in-widely-used-linux-utility-breaks-encrypted-ssh-connections/

                  • Shimitar@feddit.itEnglish
                    3 years

                    Wow… Luckly I don’t use systemd which seems to be the vector causing the sshd backdoor, via liblzma…

                    Pretty scary anyway.

                      • tal@lemmy.todayEnglish
                        3 years

                        I bet that you use software packages that are built and authored on systems that have systemd+sshd, though.

                        What happens if development or build machines belong to people who control projects that you trust and have been compromised?

                        Do you use a web browser? Do you use a graphical desktop environment? Are the machines those guys use vulnerable? Are the developers of the libraries that they depend on vulnerable?

                        Remember, this guy was attacking a downstream project (sshd) by compromising and signing source in a specific tarball of a library – the malicious code never made it into git – used by an unrelated piece of software (systemd) that some distros, not even the ssh guys, happened to link into sshd’s memory space. He’s trying to compromise unrelated software via elaborate supply chain attacks.

                      Selfhosted@lemmy.world

                      selfhosted@lemmy.world

                      Subscribe from remote instance

                      Create post

                      Report community

                      Modlog
                      You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !selfhosted@lemmy.world

                      A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

                      Rules:

                      Detailed Rules Post

                      1. Be civil.

                      2. No spam.

                      3. Posts are to be related to self-hosting.

                      4. Don’t duplicate the full text of your blog or readme if you’re providing a link.

                      5. Submission headline should match the article title.

                      6. No trolling.

                      7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

                      8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

                      Resources:

                      • selfh.st Newsletter and index of selfhosted software and apps
                      • awesome-selfhosted software
                      • awesome-sysadmin resources
                      • Self-Hosted Podcast from Jupiter Broadcasting

                      Any issues on the community? Report it using the report flag.

                      Questions? DM the mods!

                      Visibility: Public

                      This community is visible to everyone.

                      • 464 users / Day
                      • 3.21K users / Week
                      • 5.46K users / Month
                      • 9K users / 6 months
                      • 6.6K posts
                      • 158K comments
                      • 1 local subscriber
                      • 64.1K subscribers
                      • UI: 1.0.0-beta.0
                      • BE: 1.0.0-alpha.20
                      • Modlog
                      • Instances
                      • Docs
                      • Code
                      • join-lemmy.org