News for hackers. Stuff that matters.
Re:Attacking Unix Systems via Cups, Part I by eikenberry on Thursday September 26, 2024 @04:24PM (#41662911)
Which distro do you see Cups listening on 0.0.0.0? On Debian (at least, only one I have handy) it only listens on localhost.

[edit: I was wrong, it listens on 0.0.0.0 for UDP. I was only checking TCP. ]

Re:Attacking Unix Systems via Cups, Part I by mikepavone on Thursday September 26, 2024 @04:33PM (#41663024)
On my Ubuntu 22.04 machine, cupsd itself is only listening on localhost, but cups-browsed (which is what has the vulnerability here) is listening on 0.0.0.0
Re:Attacking Unix Systems via Cups, Part I by raverbashing on Thursday September 26, 2024 @04:36PM (#41663056)
Why does it even listens in UDP at this day and age?!
Re:Attacking Unix Systems via Cups, Part I by mikepavone on Thursday September 26, 2024 @04:47PM (#41663175)
I believe it's implementing DNS-SD for network printer auto-discovery. I'm not terribly familiar with DNS-SD, but given that normal DNS is UDP based it would be unsurprising for DNS-SD to also use UDP.
Re:Attacking Unix Systems via Cups, Part I by ahoka on Thursday September 26, 2024 @06:16PM (#41664110)
DNS is actually UDP/TCP. It’s probably required for receiving unicast messages, if it’s using DNS-SD
Re:Attacking Unix Systems via Cups, Part I by ahoka on Thursday September 26, 2024 @06:14PM (#41664090)
To receive multicast messages, probably.
Re:Attacking Unix Systems via Cups, Part I by yrro on Friday September 27, 2024 @11:46AM (#41671955)
The purpose of cups-browsed is to listen on a UDP port which allows it to receive broadcasts from legacy cups servers on the local network, whereupon it will talk to cups and configure a local print queue for the printers on the discovered server.

A modern setup doesn't need it and doesn't use it.

Re:Attacking Unix Systems via Cups, Part I by bonzini on Thursday September 26, 2024 @04:31PM (#41662999)
OpenSUSE

But it looks like cups-browsed is only needed on the Internet; locally you only need mDNS.

Re:Attacking Unix Systems via Cups, Part I by tsimionescu on Friday September 27, 2024 @02:48AM (#41667091)
mDNS doesn't allow the printer to register itself to your system, which is the (highly dubious!) purpose of cups-browsed.
Re:Attacking Unix Systems via Cups, Part I by yrro on Friday September 27, 2024 @11:52AM (#41672060)
Modern cups discovered printers via mDNS and does indeed automatically create temporary destinations for them. This only works with "IPP Everywhere" printers which are 'driverless', i.e., the risk of doing this is limited since there's no printer model-specific software that needs to be run on the local machine to print to a remote printer, as opposed to the legacy protocol implemented (apparently unsafely!) by cups-browsed.
Re:Attacking Unix Systems via Cups, Part I by cp9 on Thursday September 26, 2024 @04:27PM (#41662947)
on popOS I see 0.0.0.0:*

I'm not sure why it deviates from Debian and Ubuntu which its based on though

Re:Attacking Unix Systems via Cups, Part I by jeffbee on Thursday September 26, 2024 @04:30PM (#41662986)
That's the wrong column of netstat output, I think. "0.0.0.0:*" stands in for the (non-existent) peer address of a listening port.
Re:Attacking Unix Systems via Cups, Part I by cp9 on Thursday September 26, 2024 @04:47PM (#41663177)
oh sorry yeah I copied the wrong column. the correct column is `0.0.0.0:631`
Re:Attacking Unix Systems via Cups, Part I by rini17 on Thursday September 26, 2024 @04:25PM (#41662933)
MX Linux