__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN wu-ftpd 'chmod' and S/Key Vulnerabilities [Red Hat Security Advisory RHSA-2004:096-09] March 9, 2004 19:00 GMT Number O-095 [REVISED 26 Mar 2004] [REVISED 28 Apr 2004] [REVISED 16 Jul 2004] [REVISED 23 May 2006] ______________________________________________________________________________ PROBLEM: Two vulnerabilities were found related to the wu-ftpd package. The wu-ftpd package contains the Washington University FTP (File Transfer Protocol) server daemon. PLATFORM: wu-ftpd 2.6.2 and earlier versions running on: Red Hat Enterprise Linux AS, ES (v.2.1) Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor Debian GNU/Linux 3.0 (woody) SGI ProPack v2.4 HP-UX B.11.00, B.11.11, B.11.22, and B.11.23 running wu-ftp 2.6.1 DAMAGE: The vulnerabilities are as follows: (1) chmod - When configured with "restricted-gid home", an unauthorized user could use this flaw to circumvent the configured home directory restriction. (2) S/Key login handling - On servers using S/Key authentication, a remote attacker could overflow a buffer and potentially execute arbitrary code. SOLUTION: Update or patch your wu-ftpd package. ______________________________________________________________________________ VULNERABILITY The risk is HIGH on servers using S/Key authentication because ASSESSMENT: a remote user may gain root access. The risk is MEDIUM for servers not using S/Key authentication. When wu-ftpd is configured with "restricted-gid home" the flaw could allow a local user to gain access to root. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/o_095.shtml ORIGINAL BULLETIN: Red Hat Security Advisory RHSA-2004:096-09 https://rhn.redhat.com/errata/RHSA-2004-096.html ADDITIONAL LINK: Washington University-FTP Site http://www.wu-ftpd.org Debian Security Advisory DSA-457-1 http://www.debian.org/security/2004/dsa-457 SGI Security Advisory 20040303-01-U Security Update #15 http://www.sgi.com/support/security/advisories.html SGI Security Advisory 20040303-01-U Security Update #19 ftp://patches.sgi.com/support/free/security/patches/ProPack/2.4/ Visit Hewlett Packard's Subscription Service for: HPSBUX01059 Rev 0, SSRT4704 Rev.0 Sun Alert ID: 102356 http://www.sunsolve.sun.com/search/document.do?assetkey=1-26-102356-1&searchclause=%22category:security%22%2420%22availability,%2420security%22%2420category:security CVE/CAN: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name= CVE-2004-0148 ______________________________________________________________________________ REVISION HISTORY: 3/26/04 - added a link to SGI Security Advisory 20040303-01-U Advanced Linux Environment Security Update #15. 4/28/04 - added a link to SGI Security Advisory 20040406-01-U Advanced Linux Environment Security Update #19. 7/16/04 - added a reference to HPSBUX01059 Rev 0, SSRT4704 Rev.0. 5/23/06 - revised to add a link to Sun Microsystems Sun Alert ID: 102356 for patch update in Solaris 9 SPARC and x86 Platforms. [***** Start Red Hat Security Advisory RHSA-2004:096-09 *****] Updated wu-ftpd package fixes security issues Advisory: RHSA-2004:096-09 Last updated on: 2004-03-08 Affected Products: Red Hat Enterprise Linux AS (v. 2.1) Red Hat Enterprise Linux ES (v. 2.1) Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor CVEs (cve.mitre.org): CAN-2004-0148 Details: An updated wu-ftpd package that fixes two security issues is now available. The wu-ftpd package contains the Washington University FTP (File Transfer Protocol) server daemon. FTP is a method of transferring files between machines. Glenn Stewart discovered a flaw in wu-ftpd. When configured with "restricted-gid home", an authorized user could use this flaw to circumvent the configured home directory restriction by using chmod. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-0148 to this issue. Michael Hendrickx found a flaw in the S/Key login handling. On servers using S/Key authentication, a remote attacker could overflow a buffer and potentially execute arbitrary code. Users of wu-ftpd are advised to upgrade to this updated package, which contains backported security patches and is not vulnerable to these issues. Updated packages: Red Hat Enterprise Linux AS (v. 2.1) -------------------------------------------------------------------------------- SRPMS: wu-ftpd-2.6.1-22.src.rpm 114f1889ef402bf55447b091f25b2f62 i386: wu-ftpd-2.6.1-22.i386.rpm 1b4f737c278d0597fc8597bc80a6137d ia64: wu-ftpd-2.6.1-22.ia64.rpm 968a98b0db2fe15f01a6e1804755f78e Red Hat Enterprise Linux ES (v. 2.1) -------------------------------------------------------------------------------- SRPMS: wu-ftpd-2.6.1-22.src.rpm 114f1889ef402bf55447b091f25b2f62 i386: wu-ftpd-2.6.1-22.i386.rpm 1b4f737c278d0597fc8597bc80a6137d Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor -------------------------------------------------------------------------------- SRPMS: wu-ftpd-2.6.1-22.src.rpm 114f1889ef402bf55447b091f25b2f62 ia64: wu-ftpd-2.6.1-22.ia64.rpm 968a98b0db2fe15f01a6e1804755f78e (The unlinked packages above are only available from the Red Hat Network) 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. Bugs fixed: (see bugzilla for more information) 115979 - xferlog doesn't honor TZ environment variable 116825 - CAN-2004-0148 wu-ftpd user able to break out of restriction References: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0148 http://www.securiteam.com/unixfocus/6X00Q1P8KC.html Keywords: ftpd -------------------------------------------------------------------------------- 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 [***** End Red Hat Security Advisory RHSA-2004:096-09 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Red Hat 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-085: Vulnerability in SMB Parsing in ISS Products O-086: Red Hat Updated libxml2 Packages Fix Security Vulnerability O-087: Red Hat Updated util-linux Packages Fix Information Leak O-088: Sun passwd(1) Command Vulnerability O-089: Sun Security Vulnerability in "/usr/lib/print/conv_fix" O-090: Vulnerability in Novell Client Firewall Tray Icon O-091: Adobe Reader 5.1 XFDF Buffer Overflow Vulnerability O-092: WinZip Vulnerable to Buffer Overflow in Handling of MIME Archive Parameters O-093: Oracle9i Database Buffer Overflow Vulnerabilities O-094: Linux mremap(2) System Call Vulnerability