!NBBFPbiuttRgTqbrcY:nixos.org

NixOS Security Discussions

363 Members
Discussions around Security | Triaging happens in #security:nixos.org126 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
26 Sep 2024
@tgerbet:matrix.orgtgerbetHum BrowseRemoteProtocols is supposed to default on dnssd cups by default20:42:11
@tgerbet:matrix.orgtgerbetBut yeah20:43:15
@lily:lily.flowersLily Foster
In reply to @tgerbet:matrix.org
Hum BrowseRemoteProtocols is supposed to default on dnssd cups by default
Nope, not if you don't supply their default .conf file (which would do that on most distros): https://github.com/OpenPrinting/cups-browsed/blob/c12b9cf5a906ab16971f5d060f291f9a58edadac/daemon/cups-browsed.c#L472
20:44:01
@tgerbet:matrix.orgtgerbetAmazing20:44:41
@tgerbet:matrix.orgtgerbetOk so at least we do not have the entry point of the current exploit enabled by default20:45:55
@lily:lily.flowersLily Foster (https://github.com/OpenPrinting/cups-browsed/blob/c12b9cf5a906ab16971f5d060f291f9a58edadac/configure.ac#L188 and https://github.com/OpenPrinting/cups-browsed/blob/c12b9cf5a906ab16971f5d060f291f9a58edadac/daemon/cups-browsed.conf.in#L41 for reference to the .conf default. technically we're still packaging it from cups-filters rather than that new repo, but same deal) 20:45:56
@tgerbet:matrix.orgtgerbetSo we only have the LAN issue for which the exploit has not yet been released20:48:51
@f0x:pixie.townf0xit's most likely a very similar exploit, where instead of cups-browsed receiving an UDP package causing it to HTTP lookup a new printer, there's just a fake printer being advertised over mdns20:58:25
@f0x:pixie.townf0xalso a detail that seems to be missing from the CVE stuff, and only in the blog post at the end, is that the foomatic-rip RCE can only be triggered by actually sending a print job to the faked printer. Which would make user interaction: none incorrect?21:02:56
@tgerbet:matrix.orgtgerbetThe exploit does not require user interaction from what I see21:06:18
@f0x:pixie.townf0xadding the printer does not, but actually causing RCE does21:07:05
@f0x:pixie.townf0xas the filter command in the generated PPD is only executed when actually printing with that printer?21:07:42
@p14:matrix.orgp14 joined the room.21:07:57
@f0x:pixie.townf0xhmm, although there is a mention that this printer injection path can overwrite existing printers21:08:25
@f0x:pixie.townf0xbut there doesn't seem to be any evidence of that?21:10:25
@f0x:pixie.townf0xmight be nice to make the cups-filter binaries that are presented to cups configurable https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/services/printing/cupsd.nix#L3921:25:35
@tgerbet:matrix.orgtgerbethttps://github.com/OpenPrinting/cups-browsed/security/advisories/GHSA-rj88-6mr5-rcw821:34:59
27 Sep 2024
@shadowrz:nixos.dev夜坂雅 joined the room.01:59:55
@vengmark2:matrix.orgl0b0 joined the room.02:27:51
@hexa:lossy.networkhexaso now that https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-rq86-c7g6-r2h8 hit13:12:37
@hexa:lossy.networkhexa what do people think about defaulting to BrowseRemoteProtocols dnssd? 13:12:48
@hexa:lossy.networkhexaalso, what is a bit sad is that our configuration is types.lines, and not in any way structured13:13:42
@tgerbet:matrix.orgtgerbet We already default to BrowseRemoteProtocols dnssd because we do not use their default configuration file and they default to dnssd if no entry is set for BrowseRemoteProtocols 13:17:57
@hexa:lossy.networkhexaoh, so those defaults are out of sync, that is cute13:18:24
@tgerbet:matrix.orgtgerbetYes, it was part of my surprises last night 😅 That said it would be nice to only open 631/udp in the firewall when needed and not all the time13:20:23
@sandro:supersandro.deSandro 🐧
In reply to @hexa:lossy.network
also, what is a bit sad is that our configuration is types.lines, and not in any way structured
probably would need to be a custom format because they allow some keywords multiple times and it looks to be order depended 🫠
14:47:56
@sandro:supersandro.deSandro 🐧feels like Apache allow style...14:48:11
@sandro:supersandro.deSandro 🐧 * feels like Apache allow style... https://manpages.debian.org/testing/cups-browsed/cups-browsed.conf.5.en.html#:~:text=servers%20are%20accepted.-,BrowseAllow,-All%0A%0A%0A%20%20%20%20%20%20%20%20BrowseAllow%20192.168.7.2014:48:19
@sandro:supersandro.deSandro 🐧Does upgrading to 2.0 help?14:49:28
@sandro:supersandro.deSandro 🐧 * Does upgrading to 2.0.1 help?14:49:55

Show newer messages


Back to Room ListRoom Version: 9