Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Aug 2003 17:35:11 -0500
From:      "Jacques A. Vidrine" <nectar@FreeBSD.org>
To:        freebsd-security@FreeBSD.org
Subject:   IMPORTANT FOR lukemftpd USERS (was Re: FreeBSD Security Advisory FreeBSD-SA-03:08.realpath)
Message-ID:  <20030804223511.GC11083@madman.celabo.org>
In-Reply-To: <200308040004.h7404VVL030671@freefall.freebsd.org>
References:  <200308040004.h7404VVL030671@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 03, 2003 at 05:04:31PM -0700, FreeBSD Security Advisories wrote:
> (1) lukemftpd(8), an alternative FTP server: realpath(3) is used to
>     process the MLST and MLSD commands.  [lukemftpd(8) is not built or
>     installed by default.]
[...]
> the realpath(3) vulnerability may be
> exploitable, leading to arbitrary code execution with the privileges
> of the authenticated user.  This is probably only of concern on
> otherwise `closed' servers, e.g. servers without shell access.
[...]


I have a correction to make regarding the above text.  In the case of
lukemftpd (and lukemftpd only), in some situations the vulnerability
may be used to execute code with _superuser privileges_.

If lukemftpd is NOT invoked with `-r', then it does NOT completely
drop privileges when a user logs in.  Thus, a successful exploit will
be able to regain superuser privileges.

Conversely, if lukemftpd IS invoked with `-r', then the original
advisory text above applies.

The example usage for lukemftpd that was in /etc/inetd.conf prior to
5.1-RELEASE included the `-r' flag, but there is no longer an example
in 5.1-RELEASE.  I don't think there was ever an example entry for
4.x.


I would normally immediately publish a revised advisory with this
additional information, however lukemftpd is neither built nor
installed by default.  Since that is the case, I will probably wait a
few days before revision in case further useful information comes to
light.

Cheers,
-- 
Jacques Vidrine   . NTT/Verio SME      . FreeBSD UNIX       . Heimdal
nectar@celabo.org . jvidrine@verio.net . nectar@freebsd.org . nectar@kth.se



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030804223511.GC11083>