__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN Red Hat 'lftp' Buffer Overflow Vulnerability [Red Hat Advisories: RHSA-2003:403-07 & RHSA-2003:404-08] December 16, 2003 21:00 GMT Number O-042 [REVISED 9 Jan 2004] [REVISED 27 Feb 2004] ______________________________________________________________________________ PROBLEM: A buffer overflow vulnerability was found in Red Hat 'lftp' packages. 'lftp' is a command-line file transfer program supporting FTP and HTTP protocols. PLATFORM: Red Hat Linux 7.2, 7.3, 8.0, and 9 Red Hat Enterprise Linux AS, ES, and WS (v2.1 and v3) Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor SGI ProPack v2.4 SOFTWARE: 'lftp' versions 2.6.9 and earlier DAMAGE: Under a combination of several conditions, an attacker could execute arbitrary code on a user's system. SOLUTION: Install Red Hat's updated 'lftp' packages as instructed. Install SGI's Patch 10044 for SGI ProPack v2.4 as instructed. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. An attacker needs to create a carefully ASSESSMENT: crafted directory on a website, and to coax a user to connect to the website using the 'lftp' client. The attacker's arbitrary code will be executed on the user's machine if the user issues a "ls" (List Remote Files - cached) or "rels" (List Remote Files - ignores cache) command. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/o-042.shtml ORIGINAL BULLETINS: https://rhn.redhat.com/errata/RHSA-2003-403.html https://rhn.redhat.com/errata/RHSA-2003-404.html SGI Security Advisory 20040101-01-U http://www.sgi.com/support/security/advisories.html ADDITIONAL LINK: SGI Security Advisory 20040202-01-U Update #11 ftp://patches.sgi.com/support/free/security/advisories/ 20040202-01-U.asc CVE/CAN: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name= CAN-2003-0963 ______________________________________________________________________________ NOTE: Information for Enterprise Linux versions can be found on RHSA-2003:404-08 Advisory using the link above. REVISION HISTORY: 01/09/04 - Added a link for SGI Security Advisory 20040101-01-U, SGI has patches available. 02/27/04 - Added a link for SGI Security Advisory 20040202-01-U Update #11. SGI has patches available. [***** Start Red Hat Advisory RHSA-2003:403-07 *****] Updated lftp packages fix security vulnerability Advisory: RHSA-2003:403-07 Last updated on: 2003-12-16 Affected Products: Red Hat Linux 7.2 Red Hat Linux 7.3 Red Hat Linux 8.0 Red Hat Linux 9 CVEs (cve.mitre.org): CAN-2003-0963 Security Advisory Details: Updated lftp packages are now available that fix a buffer overflow security vulnerability. lftp is a command-line file transfer program supporting FTP and HTTP protocols. Ulf Härnhammar discovered a buffer overflow bug in versions of lftp up to and including 2.6.9. An attacker could create a carefully crafted directory on a website such that, if a user connects to that directory using the lftp client and subsequently issues a 'ls' or 'rels' command, the attacker could execute arbitrary code on the users machine. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2003-0963 to this issue. Users of lftp are advised to upgrade to these erratum packages, which contain a backported security patch and are not vulnerable to this issue. Red Hat would like to thank Ulf Härnhammar for discovering and alerting us to this issue. Updated packages: Red Hat Linux 7.2 ----------------------------------------------------------------------------- SRPMS: lftp-2.4.9-2.src.rpm [ via FTP ] [ via HTTP ] fc135158bb815852827c057342a163ae i386: lftp-2.4.9-2.i386.rpm [ via FTP ] [ via HTTP ] a9e10adf4c53f444ae4c628c082ac45d ia64: lftp-2.4.9-2.ia64.rpm [ via FTP ] [ via HTTP ] 429b62e868da2b23d6f55ee9fe922687 Red Hat Linux 7.3 ----------------------------------------------------------------------------- SRPMS: lftp-2.4.9-2.src.rpm [ via FTP ] [ via HTTP ] fc135158bb815852827c057342a163ae i386: lftp-2.4.9-2.i386.rpm [ via FTP ] [ via HTTP ] a9e10adf4c53f444ae4c628c082ac45d Red Hat Linux 8.0 ----------------------------------------------------------------------------- SRPMS: lftp-2.5.2-6.src.rpm [ via FTP ] [ via HTTP ] b62685fd9517fb489418165afd78fd76 i386: lftp-2.5.2-6.i386.rpm [ via FTP ] [ via HTTP ] 9ba7d379882bdebcca3fdfb86a153ffe Red Hat Linux 9 ----------------------------------------------------------------------------- SRPMS: lftp-2.6.3-4.src.rpm [ via FTP ] [ via HTTP ] a4ef0a84493aa570bc7625904bc42c18 i386: lftp-2.6.3-4.i386.rpm [ via FTP ] [ via HTTP ] 7bee4629496d2085856c103927470c28 Solution Before applying this update, make sure all previously released errata relevant to your system have been applied. To update all RPMs for your particular architecture, run: rpm -Fvh [filenames] where [filenames] is a list of the RPMs you wish to upgrade. Only those RPMs which are currently installed will be updated. Those RPMs which are not installed but included in the list will not be updated. Note that you can also use wildcards (*.rpm) if your current directory *only* contains the desired RPMs. Please note that this update is also available via Red Hat Network. Many people find this an easier way to apply updates. To use Red Hat Network, launch the Red Hat Update Agent with the following command: up2date This will start an interactive process that will result in the appropriate RPMs being upgraded on your system. If up2date fails to connect to Red Hat Network due to SSL Certificate Errors, you need to install a version of the up2date client with an updated certificate. The latest version of up2date is available from the Red Hat FTP site and may also be downloaded directly from the RHN website: https://rhn.redhat.com/help/latest-up2date.pxt References: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0963 ----------------------------------------------------------------------------- The listed packages are GPG signed by Red Hat, Inc. for security. Our key is available at: http://www.redhat.com/solutions/security/news/publickey/#key You can verify each package and see who signed it with the following command: rpm --checksig -v filename If you only wish to verify that each package has not been corrupted or tampered with, examine only the md5sum with the following command: md5sum filename The Red Hat security contact is security@redhat.com. More contact details at http://www.redhat.com/solutions/security/news/contact.html Copyright © 2002 Red Hat, Inc. All rights reserved. Search by Google Careers at Red Hat : Legal statement : Privacy statement : Your Account : Credits : Contact Red Hat [***** End Red Hat Advisory RHSA-2003:403-07 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Red Hat, Inc. for the information contained in this bulletin. _______________________________________________________________________________ CIAC, the Computer Incident Advisory Capability, is the computer security incident response team for the U.S. Department of Energy (DOE) and the emergency backup response team for the National Institutes of Health (NIH). CIAC is located at the Lawrence Livermore National Laboratory in Livermore, California. CIAC is also a founding member of FIRST, the Forum of Incident Response and Security Teams, a global organization established to foster cooperation and coordination among computer security teams worldwide. CIAC services are available to DOE, DOE contractors, and the NIH. CIAC can be contacted at: Voice: +1 925-422-8193 (7x24) FAX: +1 925-423-8002 STU-III: +1 925-423-2604 E-mail: ciac@ciac.org Previous CIAC notices, anti-virus software, and other information are available from the CIAC Computer Security Archive. World Wide Web: http://www.ciac.org/ Anonymous FTP: ftp.ciac.org PLEASE NOTE: Many users outside of the DOE, ESnet, and NIH computing communities receive CIAC bulletins. If you are not part of these communities, please contact your agency's response team to report incidents. Your agency's team will coordinate with CIAC. The Forum of Incident Response and Security Teams (FIRST) is a world-wide organization. A list of FIRST member organizations and their constituencies can be obtained via WWW at http://www.first.org/. This document was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes. LAST 10 CIAC BULLETINS ISSUED (Previous bulletins available from CIAC) O-032: HP shar(1) Utility Vulnerability O-033: Sun Xsun Server in Direct Graphics Access (DGA) Vulnerabilities O-034: rsync Heap Overflow Vulnerability O-035: Sun 'dtprintinfo(1)' CDE Print Viewer Vulnerability O-036: CISCO Authentication Library in ACNS Vulnerability O-037: Red Hat GnuPG Packages ElGamal Keys Vulnerability O-038: CISCO Unity Vulnerabilities on IBM-based Servers O-039: CISCO FWSM Vulnerabilities O-040: CISCO PIX Vulnerabilities O-041: Sun 'lpstat' Printing Vulnerability