GLSA-200611-05 : Netkit FTP Server: Privilege escalation

medium Nessus Plugin ID 23670

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200611-05 (Netkit FTP Server: Privilege escalation)

Paul Szabo reported that an incorrect seteuid() call after the chdir() function can allow an attacker to access a normally forbidden directory, in some very particular circumstances, for example when the NFS-hosted targetted directory is not reachable by the client-side root user. Additionally, some potentially exploitable unchecked setuid() calls were also fixed.
Impact :

A local attacker might craft his home directory to gain access through ftpd to normally forbidden directories like /root, possibly with writing permissions if seteuid() fails and if the ftpd configuration allows that. The unchecked setuid() calls could also lead to a root FTP login, depending on the FTP server configuration.
Workaround :

There is no known workaround at this time.

Solution

All Netkit FTP Server users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=net-ftp/netkit-ftpd-0.17-r4'

See Also

https://security.gentoo.org/glsa/200611-05

Plugin Details

Severity: Medium

ID: 23670

File Name: gentoo_GLSA-200611-05.nasl

Version: 1.15

Type: local

Published: 11/20/2006

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.8

CVSS v2

Risk Factor: Medium

Base Score: 4.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:netkit-ftpd, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 11/10/2006

Vulnerability Publication Date: 8/24/2006

Reference Information

CVE: CVE-2006-5778

GLSA: 200611-05