authbind unreasonably fails to address ports 512 through 1023

Bug #347211 reported by Jean-Paul Calderone
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
authbind (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

authbind allows a system administrator to provide configuration which lets otherwise unprivileged users bind to ports 1 through 511. This leaves 512 through 1023 unavailable to users. The man page offers a somewhat cryptic explanation of this behavior, "Ports from 512 to 1023 inclusive cannot be used with authbind because that would create a security hole, in conjection with rshd." (in the BUGS section, no less). I suppose I believe that the potential for a security hole exists, but I don't really care. Why would I even use rsh if I were occupied with security? Besides, even if authbind were to allow ports 512 through 1023 to be bound by unprivileged users, this would not force system administrators to allow this. A site where rsh is in use can simply not enable this behavior.

Because authbind can't allow users to bind ports in this range, other possible security holes are opened up. Programs get run as root, ports get forwarded, etc. And there are lots of good reasons to allow users to bind ports in this range. 995 is just as important as 110, for example.

There seems to be no good reason for this restriction, but lots of good reasons to remote it. Wouldn't authbind be better if it were removed?

Related branches

Revision history for this message
Artūras Šlajus (x11-arturaz) wrote :

Agreed.

Revision history for this message
Artūras Šlajus (x11-arturaz) wrote :
Revision history for this message
Artūras Šlajus (x11-arturaz) wrote :

apt-get source authbind
cd authbind-1.2.0
wget http://launchpadlibrarian.net/30103860/authbind-remove-limit.patch
patch -p2 < authbind-remove-limit.patch
# Somehow packages built with debian-buildpackage does not work, I have no idea why
apt-get remove authbind
make install

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package authbind - 1.2.0build2

---------------
authbind (1.2.0build2) karmic; urgency=low

  * helper.c libauthbind.c: Allow ports above 1023. (LP: #347211)

 -- Chuck Short <email address hidden> Tue, 13 Oct 2009 13:34:18 -0400

Changed in authbind (Ubuntu):
status: New → Fix Released
Revision history for this message
Jason Brittain (jason-brittain) wrote :

The man page that comes with version 1.2.0build2 still claims:

"Ports from 512 to 1023 inclusive cannot be used with authbind because
that would create a security hole, in conjection with rshd."

.. even though authbind has been patched to allow using those ports.

Revision history for this message
Iiro Laiho (iiro) wrote :

As of 20.04, this has been reverted and authbind can only bind ports up to 511.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.