Date: Tue, 21 Dec 2004 17:09:22 -0500
From: customer service mailbox <customerservice@idefense.com.>
To: [email protected], [email protected]Subject: iDEFENSE Security Advisory 12.21.04: Hewlett Packard HP-UX ftpd Remote Buffer Overflow Vulnerability
Hewlett Packard HP-UX ftpd Remote Buffer Overflow Vulnerability
iDEFENSE Security Advisory 12.21.04
www.idefense.com/application/poi/display?id=3D175&type=3Dvulnerabilities
December 21, 2004
I. BACKGROUND
HP-UX FTP Daemon is a service included in HP-UX that implements the File
Transfer Protocol.
II. DESCRIPTION
Remote exploitation of a buffer overflow vulnerability in the file=20
transfer protocol (FTP) daemon included in multiple versions of Hewlett-
Packard Development Co.'s (HP) HP-UX allows attackers to gain remote=20
root access in certain configurations.=20
The problem specifically exists when the FTP daemon is configured via=20
/etc/inetd.conf to log debug information using -v switch. This is a not=20
a default configuration option. When parsing a long command request, an=20
exploitable stack overflow will occur. The overflow occurs before=20
authentication, thus eliminating the need for a local or anonymous FTP=20
account.
III. ANALYSIS
Exploitation of this vulnerability allows unauthenticated remote=20
attackers to execute arbitrary code under the privileges of the FTP=20
daemon server, usually root. The severity of this issue is mitigated by=20
the fact that in most production environments, administrators will not=20
be using the debug-logging feature of FTP daemon.
IV. DETECTION
iDEFENSE has confirmed the existence of this vulnerability in HP-UX=20
11.11i. It is suspected that previous versions are also vulnerable.
To determine if a specific configuration is vulnerable, check=20
/etc/inetd.conf for the ftpd line and see if the debug switch is=20
enabled:=20
grep 'ftpd' /etc/inetd.conf | grep -- -v=20
If the above command returns text, then the FTP daemon is running in=20
debug mode.
V. WORKAROUND
Do not use the -v flag in the FTP daemon entry line in /etc/inetd.conf.=20
If debug-logging is necessary, consider allowing only trusted hosts=20
access to the service using firewall rules or TCP wrappers.
VI. VENDOR RESPONSE
This vulnerability was addressed in the following patches:
HP-UX B.11.00: PHNE_29460=20
HP-UX B.11.04: PHNE_31034=20
HP-UX B.11.11: PHNE_29461=20
HP-UX B.11.22: PHNE_29462=20
VII. CVE INFORMATION
A Mitre Corp. Common Vulnerabilities and Exposures (CVE) number has not
been assigned yet.
VIII. DISCLOSURE TIMELINE
12/02/2004 Initial vendor notification
12/03/2004 Initial vendor response
12/21/2004 Public disclosure
IX. CREDIT
iDEFENSE Labs is credited with this discovery.
Get paid for vulnerability research
http://www.idefense.com/poi/teams/vcp.jsp
X. LEGAL NOTICES
Copyright (c) 2004 iDEFENSE, Inc.
Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDEFENSE. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically, please
email [email protected] for permission.
Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on,
this information.