-----BEGIN PGP SIGNED MESSAGE----- __________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN Tcpdump Remote Buffer Overflows October 31, 2000 13:00 GMT Number L-015 ______________________________________________________________________________ PROBLEM: Tcpdump version 3.5 contains remote buffer overflows that results in tcpdump crashing or allowing the remote attacker to execute arbitrary code as root. PLATFORM: Linux and BSD operating systems DAMAGE: A remote user will be able to gain root or crash some Intrusion Detection systems. SOLUTION: Upgrade to the latest version of tcpdump, 3.5.2. ______________________________________________________________________________ VULNERABILITY The risk is HIGH. Expolit code is not publically available, ASSESSMENT: but the application is common to many default OS installs. ______________________________________________________________________________ Background Tcpdump is a free sniffer developed first by Lawrence Berkeley National Laboratory, and now is maintained by a consortium. It is most commonly used to capture ethernet packets in a common format that many analysis tools can read. It is the basis for many Intrusion Detection Software applications. It is now bundled with many linux and BSD type operating systems and is sometimes installed with the default installation package. Issue During internal source code auditing done by FreeBSD, several overflowable buffers were discovered in the version of tcpdump included in many OS'. Some simply allow the remote attacker to crash the local tcpdump process. This is a problem for systems using tcpdump as a form of intrusion detection, as after an attacker has crashed the tcpdump process, network activity will no longer occur. There is a more serious vulnerability in the decoding of AFS ACL packets in the more recent version of tcpdump (tcpdump 3.5) which may allow a remote attacker to execute arbitrary code on the local system (usually at root privilege, since root privilege is required to run tcpdump). Fix Do not use vulnerable versions of tcpdump. Upgrade to the most recent version of the application (3.5.2) from www.tcpdump.org, or consult you OS vendor for a fix. For example, for FreeBSD: a) FreeBSD 3.x systems prior to the correction date Download the patch and the detached PGP signature from the following locations, and verify the signature using your PGP utility. ftp://ftp.freebsd.org/pub/FreeBSD/CERT/patches/SA-00:61/tcpdump-3.x.patch ftp://ftp.freebsd.org/pub/FreeBSD/CERT/patches/SA-00:61/tcpdump-3.x.patch.asc # cd /usr/src/contrib/tcpdump # patch -p < /path/to/patch # cd /usr/src/usr.sbin/tcpdump # make depend && make all install b) FreeBSD 4.x systems prior to the correction date Download the patch and the detached PGP signature from the following locations, and verify the signature using your PGP utility. ftp://ftp.freebsd.org/pub/FreeBSD/CERT/patches/SA-00:61/tcpdump-4.x.patch ftp://ftp.freebsd.org/pub/FreeBSD/CERT/patches/SA-00:61/tcpdump-4.x.patch.asc # cd /usr/src/contrib/tcpdump # patch -p < /path/to/patch # cd /usr/src/usr.sbin/tcpdump # make depend && make all install _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of FreeBSD for 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 FAX: +1 925-423-8002 STU-III: +1 925-423-2604 E-mail: ciac@llnl.gov For emergencies and off-hour assistance, DOE, DOE contractor sites, and the NIH may contact CIAC 24-hours a day. During off hours (5PM - 8AM PST), use one of the following methods to contact CIAC: 1. Call the CIAC voice number 925-422-8193 and leave a message, or 2. Call 888-449-8369 to send a Sky Page to the CIAC duty person or 3. Send e-mail to 4498369@skytel.com, or 4. Call 800-201-9288 for the CIAC Project Leader. Previous CIAC notices, anti-virus software, and other information are available from the CIAC Computer Security Archive. World Wide Web: http://www.ciac.org/ (or http://ciac.llnl.gov -- they're the same machine) Anonymous FTP: ftp.ciac.org (or ciac.llnl.gov -- they're the same machine) Modem access: +1 (925) 423-4753 (28.8K baud) +1 (925) 423-3331 (28.8K baud) 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) AIX Format String Vulnerability (L-014) Released (10/27/00) Revocation of Sun Microsystems Browser Certificates (L-013) Released (10/27/2000) Cisco IOS HTTP Server Query Vulnerability (L-012) Released (10/27/2000) HP-UX bdf & df Vulnerabilities (L-011) Released (10/26/2000) Microsoft IIS "Cookie Marking" Vulnerability (L-010) Released (10/24/2000) Red Hat Linux "ypbind" Vulnerability (L-009) Released (10/24/2000) Microsoft HyperTerminal Buffer Overflow (L-008) Released (10/19/2000) Microsoft IIS Folder Traversal (L-007) Released (10/17/2000) HP-UX lpspooler and ftpd Vulnerabilities (L-006) Released (10/17/2000) FreeBSD Linux 'tmpwatch' Vulnerability (L-005) Released (10/16/2000) FreeBSD FreeBSD LPRng Vulnerability (L-004) Released (10/16/2000) FreeBSD TCP Sequence Number Vulnerability (L-003) Released (10/11/2000) Cisco Secure PIX Firewall Mailguard Vulnerability (L-002) Released (10/11/2000) Linux/BSD Initialized data overflow in Xlock (L-001) Released (10/9/2000) -----BEGIN PGP SIGNATURE----- Version: 4.0 Business Edition iQCVAwUBOf8yYLnzJzdsy3QZAQEv6gP/cbDRiM2cOFs5HhASu0QZQ9JhJYJ+XOt+ KKRn5Wtni8Sv5rMIA0uPGGIdSP7rI8CWU/KMnNsocg0NW3UjNmxdfVPDFBBDYItp yt+Ulq/KAFTU9bA1db1E1CxquREeInBS80J/Qe5U20DRQhiGN5HI48ol8lRgOXJg aVdhL6gE/KU= =Z9db -----END PGP SIGNATURE-----