• mox@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Based on this…

      Exploitation involves sending a malicious UDP packet to port 631 on the target, directing it to an attacker-controlled IPP server. The system’s cups-browsed service then connects back, fetching printer attributes, which include malicious PPD directives. When a print job starts, these directives execute, allowing the attacker’s code to run on the target system.

      …it seems the exploit can be triggered either remotely through your CUPS instance listening on port 631, or locally by interacting with a malicious/compromised print server.

      So if I understand correctly, shutting down that port wouldn’t be enough by itself. You would also have to keep your system from initiating contact with such a server, such as by using a public printer, or conceivably even just browsing printers at a cafe/business/school. I haven’t read the exploit details, so I don’t know which interactions are safe, if any.

    • lemmyng@lemmy.ca
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 months ago

      CUPS is installed on the majority of desktop systems. One of the listed CVEs indicates that port 631 is by default open to the local network, so if you connect to any shared network (public WiFi, work/school network, even your home network if another compromised device gets connected to it) you’re exposed. Or a browser flaw or other vulnerability could be exploited to forward a packet to that port.

      In other words: While access to port 631 is required first, the severity of the vulnerability lies in how damn easy it is to take over a system after that. And the system can be re-compromised any time you print something, making this a persistent vector.

      • Toes♀@ani.socialOP
        link
        fedilink
        arrow-up
        4
        ·
        2 months ago

        Basically an unauthenticated perl interpreter with root open to the network by default in most configurations across a couple decades.

        It’s about as bad as it can be?

        • progandy@feddit.org
          link
          fedilink
          arrow-up
          1
          ·
          1 month ago

          Is it common for cups to run as root? It should have its own user, but that is still not good.

        • curbstickle@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          4
          arrow-down
          1
          ·
          2 months ago

          Compared to the original claim that it was kernel level and spread across literally everything?

          No, no its not as bad as it was originally claimed.

          Is it bad? Yes. Is it kernel level bad? No. It can easily be mitigated before a fix is out by blocking 631 and dns-sd traffic. It is not as bad as it was claimed to be.

  • mox@lemmy.sdf.org
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 months ago

    Either of these commands will reveal processes listening on the port that’s vulnerable by default:

    $ sudo lsof -i :631
    
    $ sudo fuser -v 631/tcp 631/udp
    

    The wording of this post gives me the impression that it could exploited even if you don’t have any such processes, if your system contacts a malicious or compromised print server. I would avoid browsing or using printers on unsafe networks until this is patched.

    The port 631 process just makes it worse, by allowing someone else to initiate that contact remotely.