SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |    Help    |   

SecurityTracker
Archives


Welcome to SecurityTracker!
 
Click to Sign Up
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com

Sign Up!





Category:  Application (File Transfer/Sharing)  >  FTP (Generic) Vendors:  HP (Compaq)
HP-UX ftpd Debug Logging Buffer Overflow Lets Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1012650
SecurityTracker URL:  http://securitytracker.com/id?1012650
CVE Reference:  GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Dec 22 2004
Impact:  Execution of arbitrary code via network, Root access via network
Fix Available:  Yes   Vendor Confirmed:  Yes  
Advisory:  iDEFENSE
Description:  A buffer overflow vulnerability was reported in the HP-UX ftpd when in a certain configuration. A remote user can execute arbitrary code on the target system.

iDEFENSE reported that when ftpd is configured via /etc/inetd.conf to log debug information using v switch (not the default configuration), then a remote user can send a specially crafted command to trigger a stack overflow and execute arbitrary code. The code will run with the privileges of the ftpd process, which is usually root user privileges. The overflow can be triggered prior to authentication.

The vendor was notified on December 2, 2004.

iDEFENSE Labs discovered this flaw.

Impact:  A remote user can execute arbitrary code on the target system with the privileges of the target ftpd process, which is typically root level privileges.
Solution:  The vendor has issued the following fixes:

HP-UX B.11.00: PHNE_29460
HP-UX B.11.04: PHNE_31034
HP-UX B.11.11: PHNE_29461
HP-UX B.11.22: PHNE_29462

Vendor URL:  www.hp.com/ (Links to External Site)
Cause:  Boundary error
Underlying OS:  UNIX (HP/UX)
Underlying OS Comments:  11.00, 11.04, 11.11, 11.22

Message History:   None.


 Source Message Contents

Date:  Tue, 21 Dec 2004 18:33:34 -0500
Subject:  [none]

 
 
Hewlett Packard HP-UX ftpd Remote Buffer Overflow Vulnerability
 
iDEFENSE Security Advisory 12.21.04:
 
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
transfer protocol (FTP) daemon included in multiple versions of Hewlett-
Packard Development Co.'s (HP) HP-UX allows attackers to gain remote
root access in certain configurations.
 
The problem specifically exists when the FTP daemon is configured via
/etc/inetd.conf to log debug information using –v switch. This is a not
a default configuration option. When parsing a long command request, an
exploitable stack overflow will occur. The overflow occurs before
authentication, thus eliminating the need for a local or anonymous FTP
account.
 
III. ANALYSIS
 
Exploitation of this vulnerability allows unauthenticated remote
attackers to execute arbitrary code under the privileges of the FTP
daemon server, usually root. The severity of this issue is mitigated by
the fact that in most production environments, administrators will not
be using the debug-logging feature of FTP daemon.
 
IV. DETECTION
 
iDEFENSE has confirmed the existence of this vulnerability in HP-UX
11.11i. It is suspected that previous versions are also vulnerable.
 
To determine if a specific configuration is vulnerable, check
/etc/inetd.conf for the ftpd line and see if the debug switch is
enabled:
 
grep 'ftpd' /etc/inetd.conf | grep -- -v 
 
If the above command returns text, then the FTP daemon is running in
debug mode.
 
V. WORKAROUND
 
Do not use the –v flag in the FTP daemon entry line in /etc/inetd.conf.
If debug-logging is necessary, consider allowing only trusted hosts
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
HP-UX B.11.04: PHNE_31034
HP-UX B.11.11: PHNE_29461
HP-UX B.11.22: PHNE_29462
 
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 © 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 customerservice@idefense.com 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.
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us   |    Help

Copyright 2004, SecurityGlobal.net LLC