HP-UX ftpd PAM Authentication Configuration Weakness Authentication Bypass

This script is Copyright (C) 2008-2014 Tenable Network Security, Inc.


Synopsis :

The remote ftp server may allow remote privileged access.

Description :

According to its banner, the version of the HP-UX FTP server running
on the remote host is at a patch level before PHNE_38458. Such
versions reportedly contain a vulnerability that in
certain account configurations could be exploited by an anonymous
remote attacker to gain privileged access.

Note that successful exploitation requires that pam is used for
authenticating FTP users and that pam authentication passes when a
user tries to log in while getpwnam returns NULL. This could occur,
for example, if LDAP is used for pam authentication, the nsswitch.conf
file does not include 'ldap' as a source for the 'passwd' database,
and the attacker tries to log in with a username included in the LDAP
directory.

See also :

http://www.securityfocus.com/advisories/15189
ftp://us-ffs.external.hp.com/hp-ux_patches/s700_800/11.X/PHNE_38458.txt
http://permalink.gmane.org/gmane.comp.security.oss.general/831

Solution :

Apply patch PHNE_38458 or later.

Risk factor :

High / CVSS Base Score : 7.6
(CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C)
CVSS Temporal Score : 6.3
(CVSS2#E:F/RL:OF/RC:C)
Public Exploit Available : true

Family: FTP

Nessus Plugin ID: 33899 (hpux_ftpd_priv_escalation.nasl)

Bugtraq ID: 30666

CVE ID: CVE-2008-1668