cross-posted from: https://lemmy.zip/post/23601247

I hope this goes without saying but please do not run this on machines you don’t own.

The good news:

  • the exploit seems to require user action

The bad news:

  • Device Firewalls are ineffective against this

  • if someone created a malicious printer on a local network like a library they could create serious issues

  • it is hard to patch without breaking printing

  • it is very easy to create printers that look legit

  • even if you don’t hit print the cups user agent can reveal lots of information. This may be blocked at the Firewall

TLDR: you should be careful hitting print

  • Telorand@reddthat.com
    link
    fedilink
    arrow-up
    15
    ·
    2 months ago

    As other articles pointed out, this is only a problem if:

    • You expose port 631 to the internet.
      • Why would anyone do that?
    • You have a malicious actor on your trusted network.
      • If so, you have bigger problems.
    • You hit “Print” on a compromised network, such as a public library, while using CUPS.

    Only the last one is potentially problematic for more people, and even then, the number of people using Linux is still very small. Some libraries don’t allow printing or only printing via their computers.

    It’s good to know this flaw exists, but it doesn’t seem like a particularly concerning attack vector.

    • Hirom@beehaw.org
      link
      fedilink
      arrow-up
      7
      ·
      2 months ago
      • You have a malicious actor on your trusted network.
      • If so, you have bigger problems.

      This is more likely than you think. There’s more computers than you realise on the average network. Many aren’t updated and have vulnerabilities. If there’s one malware on one machine on your network, that means a malicious actor is on your network.

      Common exemples :

      • Home WiFi network with old unpached router, Android smartphone, network printer, security camera, thermostat, robot vacuum cleaner, smart lightbulb, smart TV, …
      • Unsecure WiFi network at the cafe, train station, hotel, … where you connect a laptops that is sometimes used for printing and which has CUPS
      • Telorand@reddthat.com
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        But again, most people aren’t running Linux, and for people who are, they’re likely more conscientious about connectivity and security patches.

        I agree that most people aren’t paying attention to every little thing, but the likelihood of someone invading your home network for a tiny payoff, especially when it requires the rare activity of printing something, is probably low-risk.

        • schizo@forum.uncomfortable.business
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 months ago

          But again, most people aren’t running Linux

          Exactly. This is bad, for the 0.3% of the computing population that use Linux AND have CUPS installed AND actually print things.

          Not exactly a prime target, compared to literally almost anything else. If I were going all-in on something after having gained access to someone’s local network, I’m 100% in on any exploit that lets me use an infostealer trojan to steal your session cookies, not fiddling around and hoping you print something.

          (Patch your shit anyways, but there’s no need to freak out.)

  • Vivendi@lemmy.zip
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    2 months ago

    If there is ONE project that needs a rewrite in modern C++ OR Rust (or some other ‘safe’ language) it’s FUCKING CUPS

    Please, Rust fanatics, do ONE good instead of rewriting GPL programs into a corpo-rat license

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    2 months ago

    Wow look at that CUPS code and tell me with a straight face there aren’t 5 more similar vulnerabilities waiting to be found…