~alpine/devel

1

[alpine-devel] Re: [musl] Re: cups debugging, continued...ugly patch

James Cloos <cloos@jhcloos.com>
Details
Message ID
<m3zjgurxmx.fsf@carbon.jhcloos.org>
Sender timestamp
1404157405
DKIM signature
missing
Download raw message
>>>>> "RF" == Rich Felker <dalias@libc.org> writes:

RF> Of course binding a reserved port like this is a serious security
RF> smell -- it sounds like they're trying to facilitate port-based
RF> authentication, which is unsafe if used for anything except localhost.

If it is for the lpd protocol, there are (or at least have been) systems
and printers which only accepted print jobs via lpd if they originated
on the lpd port.  Or maybe it was if they originated on a <1024 port.

I have a vague recollection of bug reports for cups in the early days
about that.  

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Rich Felker <dalias@libc.org>
Details
Message ID
<20140701011455.GI179@brightrain.aerifal.cx>
In-Reply-To
<m3zjgurxmx.fsf@carbon.jhcloos.org> (view parent)
Sender timestamp
1404177295
DKIM signature
missing
Download raw message
On Mon, Jun 30, 2014 at 03:43:25PM -0400, James Cloos wrote:
> >>>>> "RF" == Rich Felker <dalias@libc.org> writes:
> 
> RF> Of course binding a reserved port like this is a serious security
> RF> smell -- it sounds like they're trying to facilitate port-based
> RF> authentication, which is unsafe if used for anything except localhost.
> 
> If it is for the lpd protocol, there are (or at least have been) systems
> and printers which only accepted print jobs via lpd if they originated
> on the lpd port.  Or maybe it was if they originated on a <1024 port.
> 
> I have a vague recollection of bug reports for cups in the early days
> about that.  

Yes, this sounds plausible, but those print servers/printers are
highly insecure already and should really be fixed to use proper
authentication.

It's also something of an issue that cups lpd even has permissions to
bind reserved ports for outgoing connections, since this means it is
retaining root permissions past startup...

Rich


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)