__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN SunOS ufsrestore Buffer Overflow Vulnerability June 24, 1998 21:00 GMT Number I-065 [Revision A 10/30/2001 Added Sun Bulletin #210] ______________________________________________________________________________ PROBLEM: A buffer overflow vulnerability has been identified in the ufsrestore utility, used to restore files from backup media created with the ufsdump command. This is different from the vulnerability identified in CIAC Bulletin I-049 and Sun Security Bulletin #00169. PLATFORM: Those running ufsrestore under Solaris 8, 7, 2.6, 2.5.1, and 2.5 (SunOS 5.8, 5.7, 5.6, 5.5.1, and 5.5), namely SunOS 5.8, 5.8_x86, 5.7, 5.7_x86, 5.6, 5.6_x86, 5.5.1, 5.5.1_x86, 5.5 and 5.5_x86. DAMAGE: If exploited, this vulnerability allows local users to gain root access. SOLUTION: Apply either the workaround that was given in the original CIAC bulletin, or the patches given in the Sun bulletin. ______________________________________________________________________________ VULNERABILITY The risk is HIGH. Intruders have exploited this vulnerability ASSESSMENT: to get root access after breaking into a user account. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/i-065.shtml ORIGINAL BULLETIN: http://sunsolve.sun.com/pub-cgi /retrieve.pl?doctype=coll&doc=secbull /210&type=0&nav=sec.sba ______________________________________________________________________________ [Start of information taken from the original CIAC Bulletin] SunOS ufsrestore Buffer Overflow Vulnerability CIAC has learned that there is a new vulnerability in the ufsrestore utility in SunOS 5.5.1, 5.5.1_x86, 5.5 and 5.5_x86. Note that this is not the same vulnerability described in CIAC Bulletin I-049 and Sun Security Bulletin #00169. The new vulnerability is a buffer overflow vulnerability and is currently being exploited by intruders to get root access after breaking into a user account. System managers can use one of the following workarounds to protect their systems. 1. If you are not using the utilities or don't expect to use them very often, copy the files onto a floppy disk and delete them from your system. If you need the utilities, you can copy them back onto your system from the floppy. The files remove are: /usr/lib/fs/ufs/ufsrestore /usr/lib/fs/ufs/ufsdump The following files are links to the files in /usr/lib/fs/ufs and do not need to be changed. /usr/sbin/ufsrestore /usr/sbin/ufsdump 2. The second option is to change the permissions on the files so that only the root user can run them. Login as root and execute the following commands to change the permissions. Be sure the files are owned by root. chmod 500 /usr/lib/fs/ufs/ufsrestore chmod 500 /usr/lib/fs/ufs/ufsdump If at some future date you need to change the permissions back to the original values, login as root and execute the following two commands. chmod 4555 /usr/lib/fs/ufs/ufsrestore chmod 6555 /usr/lib/fs/ufs/ufsdump [End of information taken from the original CIAC Bulletin] _____________________________________________________________________________ [Start of Sun Microsystems Bulletin #210] -----BEGIN PGP SIGNED MESSAGE----- ________________________________________________________________________________ Sun Microsystems, Inc. Security Bulletin Bulletin Number: #00210 Date: October 23, 2001 Cross-Ref: CERT Vulnerability Note VU#36866 Title: ufsrestore ________________________________________________________________________________ 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, 2.6, 2.5.1, and 2.5 (SunOS(tm) 5.8, 5.7, 5.6, 5.5.1, and 5.5) which relate to a vulnerability in ufsrestore(1M). Sun recommends that you install the patches listed in section 4 immediately on systems running SunOS 5.8, 5.7, 5.6, 5.5.1, and 5.5 which use ufsrestore. 2. Who is Affected Vulnerable: SunOS 5.8, 5.8_x86, 5.7, 5.7_x86, 5.6, 5.6_x86, 5.5.1, 5.5.1_x86, 5.5, 5.5_x86 Not vulnerable: Solaris 8 04/01*, Solaris 8 Maintenance Update 4* and later update releases * To determine if one is running Solaris 8 04/01 or Solaris 8 Maintenance Update 4 or later, check the contents of the /etc/release file. 3. Understanding the Vulnerability The ufsrestore utility restores files from backup media created with the ufsdump command. A vulnerability has been found in ufsrestore which, if exploited, could allow an unprivileged local user to gain unauthorized root access. This issue was discovered by Job de Haas (job@itsx.com) of ITSX BV Amsterdam, The Netherlands (http://www.itsx.com). CERT Vulnerability Note VU#36866 is available from: http://www.kb.cert.org/vuls/id/36866 4. List of Patches The following patches are available in relation to the above problem. OS Version Patch ID __________ _________ SunOS 5.8 109091-04 110387-02 SunOS 5.8_x86 109092-04 110402-02 SunOS 5.7 106793-07 SunOS 5.7_x86 106794-07 SunOS 5.6 105722-06 SunOS 5.6_x86 105723-06 SunOS 5.5.1 103640-35 SunOS 5.5.1_x86 103641-35 SunOS 5.5 103261-08 SunOS 5.5_x86 103262-08 _______________________________________________________________________________ Sun acknowledges with thanks, Job de Haas (job@itsx.com) of ITSX BV Amsterdam, The Netherlands (http://www.itsx.com), for bringing this issue to our attention. _______________________________________________________________________________ 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 2001 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. -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBO9XZC7dzzzOFBFjJAQH74gP+PQprImU8xu1uwcKuuQaRHprApTckn80h qGKoYGTvGYZYaST4dVPqA/IrXnouIxdZVi3uZ99pdeulL6FbihoYwinQYwlCevRP VSXxGlKFczBDqE5n3VurHxA2ZEl3FZGWiL0ARg8B/zATWOeNcZsqFFzrQhbm3hAZ H411KdGTduA= =jZFH -----END PGP SIGNATURE----- [End of Sun Microsystems Bulletin #210] _____________________________________________________________________________ CIAC wishes to acknowledge the contributions of Sun Microsystems Inc. for the information contained in this bulletin. _____________________________________________________________________________ CIAC, the Computer Incident Advisory Center, 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) I-055: SGI IRIX Vulnerabilities (NetWare Client, diskperf/diskalign I-056: Cisco PIX Private Link Key Processing and Cryptography Vulnerabilities I-057: FreeBSD NFS Kernel Code Error I-058: SunOS rpc.nisd Vulnerability I-059: SUN ftpd Vulnerability I-060: SGI IRIX OSF/DCE Denial of Service Vulnerability I-061: SGI IRIX mediad(1M) Vulnerability I-062: SGI IRIX BIND DNS named(1M) Vulnerability I-063: RSI BSDI rlogind Vulnerability I-064: SGI IRIX mail(1), rmail(1M), sendmail(1M) Vulnerabilities