__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN Sun SEA SNMP Vulnerability [Sun Microsystems, Inc. Security Bulletin #00219] June 6, 2002 13:00 GMT Number M-086 ______________________________________________________________________________ PROBLEM: A vulnerability has been discovered in snmpdx and a buffer overflow found in mibiisa which may be exploited by a local or a remote attacker to gain root access on the affected system. The snmpdx master agent and the mibiisa agent run as daemons with root privileges on the system. PLATFORM: SunOS 5.8, 5.8_x86, 5.7, 5.7_x86, 5.6, 5.6_x86 DAMAGE: Exploiting this vulnerability could lead to a root compromise. SOLUTION: Apply available patches. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. Both the Sun Solstice Enterprise Master ASSESSMENT: Agent, sndmpx, and the Sun SNMP agent, mibiisa, need to be running in order for the format string vulnerability to work. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/m-086.shtml ORIGINAL BULLETIN: http://sunsolve.sun.com/pub- cgi/retrieve.pl?doctype=coll&doc=secbull/219&type=0&nav=sec.sba PATCHES: http://sunsolve.sun.com/securitypatch ______________________________________________________________________________ [***** Start Sun Microsystems, Inc. Security Bulletin #00219 *****] ________________________________________________________________________________ Sun Microsystems, Inc. Security Bulletin Bulletin Number: #00219 Date: June 04, 2002 Cross-Ref: http://www.entercept.com/dr/snmp/ Title: SEA SNMP ________________________________________________________________________________ The information contained in this Security Bulletin is provided "AS IS." Sun makes no warranties of any kind whatsoever with respect to the information contained in this Security Bulletin. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY WARRANTY OF NON-INFRINGEMENT OR IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, ARE HEREBY DISCLAIMED AND EXCLUDED TO THE EXTENT ALLOWED BY APPLICABLE LAW. IN NO EVENT WILL SUN MICROSYSTEMS, INC. BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES HOWEVER CAUSED AND REGARDLESS OF ANY THEORY OF LIABILITY ARISING OUT OF THE USE OF OR INABILITY TO USE THE INFORMATION CONTAINED IN THIS SECURITY BULLETIN, EVEN IF SUN MICROSYSTEMS, INC. HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. If any of the above provisions are held to be in violation of applicable law, void, or unenforceable in any jurisdiction, then such provisions are waived to the extent necessary for this disclaimer to be otherwise enforceable in such jurisdiction. ________________________________________________________________________________ 1. Bulletins Topics Sun announces the release of patches for Solaris(tm) 8, 7, and 2.6 (SunOS(tm) 5.8, 5.7, and 5.6) which relate to security fixes in snmpdx(1M) and mibiisa(1M). Sun recommends that you install the patches listed in section 4 immediately on systems running the Sun Solstice Enterprise Master Agent, snmpdx(1M), and the Sun SNMP Agent, mibiisa(1M), on SunOS 5.8, 5.7, and 5.6. 2. Who is Affected Vulnerable: SunOS 5.8, 5.8_x86, 5.7, 5.7_x86, 5.6, 5.6_x86 3. Understanding the Vulnerability The Sun Solstice Enterprise Master Agent, snmpdx, runs as a daemon process and listens to User Datagram Protocol (UDP) port 161 for SNMP request. The snmpdx daemon also opens another port to receive SNMP trap notifications from various subagents. These traps are forwarded to various managers, as determined by the configuration file. The snmpdx daemon reads the /etc/snmp/conf/mibiisa.rsrc file and then starts the mibiisa process as specified in the file. It then forwards any relevant incoming SNMP requests to the mibiisa daemon. The snmpdx master agent and the mibiisa agent run as daemons with root privileges on the system. The snmpdx daemon and the mibiisa daemon are started by default via the /etc/rc3.d/S76snmpdx script. A format string vulnerability has been discovered in snmpdx and a buffer overflow found in mibiisa which may be exploited by a local or a remote attacker to gain root access on the affected system. Any system that does not run both the Sun Solstice Enterprise Master Agent, sndmpx, and the Sun SNMP agent, mibiisa, is not vulnerable to this issue. The format string vulnerability was discovered by Sinan Eren of Entercept Security Technologies' Ricochet Team. Entercept's Ricochet Security Advisory is available from: http://www.entercept.com/dr/snmp/ 4. List of Patches The following patches are in the process of being propagated to the worldwide SunSolve sites and should be available in the very near future: OS Version Patch ID __________ _________ SunOS 5.8 108869-16 SunOS 5.8_x86 108870-16 SunOS 5.7 107709-19 SunOS 5.7_x86 107710-19 SunOS 5.6 106787-18 SunOS 5.6_x86 106872-18 _______________________________________________________________________________ Sun acknowledges with thanks, Sinan Eren and Entercept's Ricochet Team for for bringing this issue to our attention and working with us on this advisory. _______________________________________________________________________________ APPENDICES A. Patches listed in this bulletin are available to all Sun customers at: http://sunsolve.sun.com/securitypatch B. Checksums for the patches listed in this bulletin are available at: ftp://sunsolve.sun.com/pub/patches/CHECKSUMS C. Sun security bulletins are available at: http://sunsolve.sun.com/security D. Sun Security Coordination Team's PGP key is available at: http://sunsolve.sun.com/pgpkey.txt E. To report or inquire about a security problem with Sun software, contact one or more of the following: - Your local Sun answer centers - Your representative computer security response team, such as CERT - Sun Security Coordination Team. Send email to: security-alert@sun.com F. To receive information or subscribe to our CWS (Customer Warning System) mailing list, send email to: security-alert@sun.com with a subject line (not body) containing one of the following commands: Command Information Returned/Action Taken _______ _________________________________ help An explanation of how to get information key Sun Security Coordination Team's PGP key list A list of current security topics query [topic] The email is treated as an inquiry and is forwarded to the Security Coordination Team report [topic] The email is treated as a security report and is forwarded to the Security Coordination Team. Please encrypt sensitive mail using Sun Security Coordination Team's PGP key send topic A short status summary or bulletin. For example, to retrieve a Security Bulletin #00138, supply the following in the subject line (not body): send #138 subscribe Sender is added to our mailing list. To subscribe, supply the following in the subject line (not body): subscribe cws your-email-address Note that your-email-address should be substituted by your email address. unsubscribe Sender is removed from the CWS mailing list. ________________________________________________________________________________ Copyright 2002 Sun Microsystems, Inc. All rights reserved. Sun, Sun Microsystems, Solaris and SunOS are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. This Security Bulletin may be reproduced and distributed, provided that this Security Bulletin is not modified in any way and is attributed to Sun Microsystems, Inc. and provided that such reproduction and distribution is performed for non-commercial purposes. [***** End Sun Microsystems, Inc. Security Bulletin #00219 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Sun Microsystems, Sinan Eren and Entercept's Ricochet Team 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) M-076: SGI IRIX nsd symlink Vulnerability M-077: SGI IRIX Xlib Vulnerability M-078: Sun Heap Overflow in Cachefs Daemon (cachefsd) M-079: Format String Vulnerability in ISC DHCPD M-080: SGI IRIX fsr_xfs Vulnerability M-081: SSHD "AllowedAuthentications" Vulnerability M-082: Microsoft Cumulative Patch for Internet Explorer M-083: Microsoft Authentication Flaw in Windows Debugger M-084: Red Hat "pam_ldap" Vulnerability M-085: IMAP Partial Mailbox Attritbute Buffer Overflow Vulnerability