-----BEGIN PGP SIGNED MESSAGE----- __________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN SGI IRIX LOCKOUT & login/scheme Vulnerabilities (Update LOCKOUT in Bulletin H-64 & login/scheme in H-62) September 17, 1997 17:00 GMT Number H-106 ______________________________________________________________________________ PROBLEM: Two vulnerabilities have been identified on the SGI IRIX operating systems: 1) the LOCKOUT functionality of the login(1) program; and 2) also in the login/scheme. PLATFORM: All SGI systems running IRIX 5.X and 6.X. DAMAGE: 1) This vulnerability may allow users to create arbitrary or corrupt certain files on the system. 2) This vulnerability may allow local users to gain root privileges. SOLUTION: Apply patches or workarounds listed below. ______________________________________________________________________________ VULNERABILITY Exploit information involving this vulnerability has been made ASSESSMENT: publicly available. Silicon Graphics HIGHLY RECOMMENDS that this information be acted upon as soon as possible. ______________________________________________________________________________ [ Start Silicon Graphics Advisories ] - -----BEGIN PGP SIGNED MESSAGE----- ______________________________________________________________________________ Silicon Graphics Inc. Security Advisory Title: IRIX LOCKOUT and login/scheme Buffer Overrun Title: AUSCERT AA-97.12 and CERT CA-97.15 Title: AUSCERT AA-97.22 and CERT CA-97.21 Number: 19970508-02-PX Date: September 15, 1997 ______________________________________________________________________________ Silicon Graphics provides this information freely to the SGI user community for its consideration, interpretation, implementation and use. Silicon Graphics recommends that this information be acted upon as soon as possible. Silicon Graphics provides the information in this Security Advisory on an "AS-IS" basis only, and disclaims all warranties with respect thereto, express, implied or otherwise, including, without limitation, any warranty of merchantability or fitness for a particular purpose. In no event shall Silicon Graphics be liable for any loss of profits, loss of business, loss of data or for any indirect, special, exemplary, incidental or consequential damages of any kind arising from your use of, failure to use or improper use of any of the instructions or information in this Security Advisory. ______________________________________________________________________________ - ------------------------ - ---- Issue Specifics --- - ------------------------ This advisory covers two security issues that were public reported as two different issues. Both these issues have been addressed together by Silicon Graphics. The first issue has to do with the LOCKOUT functionality of the login(1) program. When the LOCKOUT value is set to a value greater than zero, an account will be locked when that value of unsuccessful login attempts has been made by the same user. Due to an error in the login verification process when LOCKOUT is enabled, files may be created or corrupted. This resulting file manipulation is considered a security vulnerability. The second related issue has to do with the login(1) program itself. Actually, the /usr/bin/login file is a symbolic link to the /usr/lib/iaf/scheme that is used at the startup of all terminal sessions to identify users to each session. Since arguments can be given to this program as part of use, it has been determined that an appropriately crafted set of arguments could be input to the login/scheme program allowing execution of arbitrary user commands with root privileges. This resulting buffer overflow condition is considered a security vulnerability. Silicon Graphics Inc. has investigated these issues and recommends the following steps for neutralizing the exposure. It is HIGHLY RECOMMENDED that these measures be implemented on ALL SGI systems. These issues will be corrected in future releases of IRIX. - --------------- - ---- Impact --- - --------------- The scheme program and login symbolic link to the scheme program are installed by default on all IRIX systems. The LOCKOUT variable in the /etc/default/login is set to zero as default. For these vulnerabilities, a local account is not required. Furthermore, the vulnerabilities can be exploited remotely. A local account is required in order to exploit these vulnerabilities both locally and remotely. Utilizing the LOCKOUT vulnerability, random files can be created and corrupted. Both of these security issues have been publically disclosed and discussed in several public forums including the BUGTRAQ mailing list. Additionally, security advisories AUSCERT AA-97.12, CERT CA-97.15, AUSCERT AA-97.22 and CERT CA-97.21 have been publically released on the issues. - --------------------------- - ---- Temporary Solution --- - --------------------------- Although patches are available for this issue, it is realized that there may be situations where installing the patches immediately may not be possible. Although there are no SGI provided workarounds for the login/scheme issue, the steps below can be used to remove the LOCKOUT vulnerability by disabling the LOCKOUT functionality. 1) Become the root user on the system. % /bin/su - Password: # 2) Edit the file /etc/default/login and place a "#" as the first character of the LOCKOUT line to comment out and deactivate the service. # vi /etc/default/login {Find the following line} LOCKOUT=3 {The value can be any number greater than 0.} {Place a "#" as the first character of the LOCKOUT line} #LOCKOUT=3 {Save the file and exit} 4) Return to previous level. # exit $ - ----------------- - ---- Solution --- - ----------------- Since two security issues are addressed with the following patches, the "Vulnerable?" column below means that either one or both of the vulnerabilities exist in that OS version. OS Version Vulnerable? Patch # Other Actions ---------- ----------- ------- ------------- IRIX 3.x no IRIX 4.x no IRIX 5.0.x yes not avail Note 1 IRIX 5.1.x yes not avail Note 1 IRIX 5.2 yes not avail Note 1 IRIX 5.3 yes 2216 IRIX 6.0.x yes not avail Note 1 IRIX 6.1 yes not avail Note 1 IRIX 6.2 yes 2181 IRIX 6.3 yes 2232 IRIX 6.4 yes 2233 NOTES 1) upgrade operating system or see "Temporary Solution" section. Patches are available via anonymous FTP and your service/support provider. The SGI anonymous FTP site is sgigate.sgi.com (204.94.209.1) or its mirror, ftp.sgi.com. Security information and patches can be found in the ~ftp/security and ~ftp/patches directories, respectfully. ##### Patch File Checksums #### The actual patch will be a tar file containing the following files: Filename: README.patch.2216 Algorithm #1 (sum -r): 13912 12 README.patch.2216 Algorithm #2 (sum): 20179 12 README.patch.2216 MD5 checksum: FA1A32EE675B3719020F845B4C0B8F45 Filename: patchSG0002216 Algorithm #1 (sum -r): 03669 3 patchSG0002216 Algorithm #2 (sum): 18776 3 patchSG0002216 MD5 checksum: 7DA08E2147BEB9E49229B015DCB61895 Filename: patchSG0002216.eoe1_man Algorithm #1 (sum -r): 31290 33 patchSG0002216.eoe1_man Algorithm #2 (sum): 62564 33 patchSG0002216.eoe1_man MD5 checksum: 8EEF9215B03E7DB99D8011D41B7D6E1B Filename: patchSG0002216.eoe1_sw Algorithm #1 (sum -r): 27451 73 patchSG0002216.eoe1_sw Algorithm #2 (sum): 3649 73 patchSG0002216.eoe1_sw MD5 checksum: 5C38961E861E986DE49EFF5C3BECD641 Filename: patchSG0002216.eoe2_sw Algorithm #1 (sum -r): 22903 46 patchSG0002216.eoe2_sw Algorithm #2 (sum): 55667 46 patchSG0002216.eoe2_sw MD5 checksum: BFCE3A01BB0181626E79E584EB19525B Filename: patchSG0002216.idb Algorithm #1 (sum -r): 12991 3 patchSG0002216.idb Algorithm #2 (sum): 18240 3 patchSG0002216.idb MD5 checksum: E384459949E4B24C34591C786367B050 Filename: README.patch.2181 Algorithm #1 (sum -r): 40529 10 README.patch.2181 Algorithm #2 (sum): 15557 10 README.patch.2181 MD5 checksum: 7FBE5B1971162512C1D409E6D4BB9C71 Filename: patchSG0002181 Algorithm #1 (sum -r): 40880 2 patchSG0002181 Algorithm #2 (sum): 60865 2 patchSG0002181 MD5 checksum: 1F5CAA24C48D48D586486009871F275E Filename: patchSG0002181.eoe_man Algorithm #1 (sum -r): 12558 35 patchSG0002181.eoe_man Algorithm #2 (sum): 44605 35 patchSG0002181.eoe_man MD5 checksum: F6A9E5B102B1911074D1B1A34E351A05 Filename: patchSG0002181.eoe_sw Algorithm #1 (sum -r): 24729 73 patchSG0002181.eoe_sw Algorithm #2 (sum): 474 73 patchSG0002181.eoe_sw MD5 checksum: B92BC59995D99EFB60160F208F9A71B9 Filename: patchSG0002181.idb Algorithm #1 (sum -r): 19924 2 patchSG0002181.idb Algorithm #2 (sum): 59251 2 patchSG0002181.idb MD5 checksum: 4EAE11E46FFAC4B09963C6BE466A7A72 Filename: README.patch.2232 Algorithm #1 (sum -r): 30727 12 README.patch.2232 Algorithm #2 (sum): 55743 12 README.patch.2232 MD5 checksum: DD9402D2434B1513A3B9886D70CD9243 Filename: patchSG0002232 Algorithm #1 (sum -r): 55916 3 patchSG0002232 Algorithm #2 (sum): 20486 3 patchSG0002232 MD5 checksum: FE63680542E429EA91D33AA15EB06537 Filename: patchSG0002232.eoe_man Algorithm #1 (sum -r): 43804 36 patchSG0002232.eoe_man Algorithm #2 (sum): 27383 36 patchSG0002232.eoe_man MD5 checksum: 6EE21B2D5362295BDC20D5F84BA7DEC4 Filename: patchSG0002232.eoe_sw Algorithm #1 (sum -r): 03690 421 patchSG0002232.eoe_sw Algorithm #2 (sum): 11833 421 patchSG0002232.eoe_sw MD5 checksum: C5AD8C10999347F8FA67871B5B98CB63 Filename: patchSG0002232.idb Algorithm #1 (sum -r): 38374 4 patchSG0002232.idb Algorithm #2 (sum): 4337 4 patchSG0002232.idb MD5 checksum: 0610B31450652A09F343E2B1ED3E939A Filename: README.patch.2233 Algorithm #1 (sum -r): 51881 11 README.patch.2233 Algorithm #2 (sum): 41695 11 README.patch.2233 MD5 checksum: 5D7F90A9AE9F2A483059E6D8D08DF317 Filename: patch2233.pgp.and.chksums Algorithm #1 (sum -r): 00000 0 patch2233.pgp.and.chksums Algorithm #2 (sum): 0 0 patch2233.pgp.and.chksums MD5 checksum: D41D8CD98F00B204E9800998ECF8427E Filename: patchSG0002233 Algorithm #1 (sum -r): 18405 3 patchSG0002233 Algorithm #2 (sum): 23610 3 patchSG0002233 MD5 checksum: 462695A8E5958C4B6A78960F001A2351 Filename: patchSG0002233.eoe_man Algorithm #1 (sum -r): 43804 36 patchSG0002233.eoe_man Algorithm #2 (sum): 27383 36 patchSG0002233.eoe_man MD5 checksum: 6EE21B2D5362295BDC20D5F84BA7DEC4 Filename: patchSG0002233.eoe_sw Algorithm #1 (sum -r): 24542 347 patchSG0002233.eoe_sw Algorithm #2 (sum): 6782 347 patchSG0002233.eoe_sw MD5 checksum: B5D1408146E7B71B1F5A8290ABCF5A4F Filename: patchSG0002233.idb Algorithm #1 (sum -r): 50085 3 patchSG0002233.idb Algorithm #2 (sum): 41850 3 patchSG0002233.idb MD5 checksum: B41E8A31941E47BD46682CFB4641882F - ------------------------- - ---- Acknowledgments --- - ------------------------- Silicon Graphics Inc. wishes to thank AUSCERT and the CERT Coordination Center and the Internet community for their assistance in these issues. - ------------------------------------------------------------ - ---- Silicon Graphics Inc. Security Information/Contacts --- - ------------------------------------------------------------ If there are questions about this document, email can be sent to cse-security-alert@sgi.com. ------oOo------ Silicon Graphics provides security information and patches for use by the entire SGI community. This information is freely available to any person needing the information and is available via anonymous FTP and the Web. The primary SGI anonymous FTP site for security information and patches is sgigate.sgi.com (204.94.209.1). Security information and patches are located under the directories ~ftp/security and ~ftp/patches, respectively. The Silicon Graphics Security Headquarters Web page is accessible at the URL http://www.sgi.com/Support/security/security.html. For issues with the patches on the FTP sites, email can be sent to cse-security-alert@sgi.com. For assistance obtaining or working with security patches, please contact your SGI support provider. ------oOo------ Silicon Graphics provides a free security mailing list service called wiretap and encourages interested parties to self-subscribe to receive (via email) all SGI Security Advisories when they are released. Subscribing to the mailing list can be done via the Web (http://www.sgi.com/Support/security/wiretap.html) or by sending email to SGI as outlined below. % mail wiretap-request@sgi.com subscribe wiretap end ^d In the example above, is the email address that you wish the mailing list information sent to. The word end must be on a separate line to indicate the end of the body of the message. The control-d (^d) is used to indicate to the mail program that you are finished composing the mail message. ------oOo------ Silicon Graphics provides a comprehensive customer World Wide Web site. This site is located at http://www.sgi.com/Support/security/security.html. ------oOo------ For reporting *NEW* SGI security issues, email can be sent to security-alert@sgi.com or contact your SGI support provider. A support contract is not required for submitting a security report. ______________________________________________________________________________ This information is provided freely to all interested parties and may be redistributed provided that it is not altered in any way, Silicon Graphics is appropriately credited and the document retains and includes its valid PGP signature. - -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBNB2t4rQ4cFApAP75AQG7xwP+Ker5kOe7s5piPvkB1PdTLm/Kjty+VeAB bAruxd+HrnV9wQRB4sxB1bkvEgHIK4dWxfTARrZDfY8QmoT20CIjODoxwv72Fg9B AVXPu0qLWRa655ggyb3APjpMVtw+jjGiGoEH6Iu5Mj1nf5eW6tyeTdmOkefuXEXf aCWGWdwKtec= =g1E0 - -----END PGP SIGNATURE----- [ End Silicon Graphics Advisories ] ______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Silicon Graphics 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 510-422-8193 FAX: +1 510-423-8002 STU-III: +1 510-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), call the CIAC voice number 510-422-8193 and leave a message, or call 800-759-7243 (800-SKY-PAGE) to send a Sky Page. CIAC has two Sky Page PIN numbers, the primary PIN number, 8550070, is for the CIAC duty person, and the secondary PIN number, 8550074 is 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://ciac.llnl.gov/ Anonymous FTP: ciac.llnl.gov (198.128.39.53) Modem access: +1 (510) 423-4753 (28.8K baud) +1 (510) 423-3331 (28.8K baud) CIAC has several self-subscribing mailing lists for electronic publications: 1. CIAC-BULLETIN for Advisories, highest priority - time critical information and Bulletins, important computer security information; 2. CIAC-NOTES for Notes, a collection of computer security articles; 3. SPI-ANNOUNCE for official news about Security Profile Inspector (SPI) software updates, new features, distribution and availability; 4. SPI-NOTES, for discussion of problems and solutions regarding the use of SPI products. Our mailing lists are managed by a public domain software package called Majordomo, which ignores E-mail header subject lines. To subscribe (add yourself) to one of our mailing lists, send the following request as the E-mail message body, substituting ciac-bulletin, ciac-notes, spi-announce OR spi-notes for list-name: E-mail to ciac-listproc@llnl.gov or majordomo@tholia.llnl.gov: subscribe list-name e.g., subscribe ciac-notes You will receive an acknowledgment email immediately with a confirmation that you will need to mail back to the addresses above, as per the instructions in the email. This is a partial protection to make sure you are really the one who asked to be signed up for the list in question. If you include the word 'help' in the body of an email to the above address, it will also send back an information file on how to subscribe/unsubscribe, get past issues of CIAC bulletins via email, etc. 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) H-92a: HP-UX X11/Motif Lib and Novell Netware Vulnerabilities H-97: SGI IRIX ftpd Signal Handling Vulnerability H-98: SunOS automounter Vulnerability H-99: SunOS, Solaris ifconfig ioctls Vulnerability H-100: SunOS, Solaris libXt Vulnerability H-101: FreeBSD procfs Vulnerability H-102: SGI IRIX webdist.cgi, handler and wrap programs Vulnerabilities H-103: HP-UX X11/Motif Libraries Vulnerability H-104: HP-UX libXt Vulnerability H-105: HP-UX vuefile, vuepad, dtfile, & dtpad Vulnerabilities -----BEGIN PGP SIGNATURE----- Version: 4.0 Business Edition iQCVAwUBNCBhSbnzJzdsy3QZAQHs0gP6AzQ8VjpxVgK3QSBaVVNTU6GebME92aIn mjRYz+AfVtbatgOYJRLBvGOAwG46avPvHlVBiyLaBldnl4BcOlarrV1ioddL+bXn M9o031NuWO8Qucrg+siwMExg4xhzBnrEgWKtPpZ7VQvideBys1EZKsSNm3u76bm3 iXa7YjW16iI= =ffc0 -----END PGP SIGNATURE-----