****************************************************************************** ------ ----- ----- --- ----- | ----- ---- | | | | | |--- | | | | | | | | | |-- | | | | |-- | | | | | | | | \ | | ----- ---- ----- ----- | \ ----- A D V I S O R Y FA-98.22 ****************************************************************************** Topic: Xterm and Xaw Library Vulnerability Source: CERT/CC Creation Date: April 27, 1998 Last Updated: To aid in the wide distribution of essential security information, FedCIRC is forwarding the following information from CERT/CC Vendor Initiated Bulletin VB-98.04. FedCIRC urges you to act on this information as soon as possible. If you have any questions, please contact FedCIRC: Telephone: +1 888 282 0870 Email: fedcirc@fedcirc.gov =======================FORWARDED TEXT STARTS HERE============================ -----BEGIN PGP SIGNED MESSAGE----- ============================================================================= CERT* Vendor-Initiated Bulletin VB-98.04 April 27, 1998 Topic: Vulnerabilities in xterm and Xaw Source: The Open Group To aid in the wide distribution of essential security information, the CERT Coordination Center is forwarding the following information from The Open Group. The Open Group urges you to act on this information as soon as possible. Further questions about these vulnerabilities should be directed to your vendor or support personnel. =======================FORWARDED TEXT STARTS HERE============================ ______________________________________________________________________________ The Open Group X Project Team Security Advisory Title: xterm and Xaw library vulnerability Date: April 27, 1998 ______________________________________________________________________________ The Open Group X Project Team provides this information freely to the X11 user community for its consideration, interpretation, implementation and use. The Open Group X Project Team recommends that this information be acted upon as soon as possible. The Open Group X Project Team 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 The Open Group 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. ______________________________________________________________________________ I. Description Vulnerabilities exist in the terminal emulator xterm(1), and the Xaw library distributed in various MIT X Consortium; X Consortium, Inc.; and The Open Group X Project Team releases. These vulnerabilities may be exploited by an intruder to gain root access. The resources and the releases affected by the xterm vulnerability are: Resources inputMethod preeditType *Keymap Release X11R3 NO NO YES X11R4 NO NO YES X11R5 NO NO YES X11R6 NO NO YES X11R6.1 YES YES YES X11R6.2 YES YES YES X11R6.3 YES YES YES X11R6.4 YES YES YES The resources and the releases affected by the Xaw library vulnerability are Resources inputMethod preeditType Release X11R6 YES YES X11R6.1 YES YES X11R6.2 YES YES X11R6.3 YES YES X11R6.4 YES YES (X11R6.2 was not released to the public.) The Open Group X Project Team has investigated the issue and recommends the following steps for neutralizing the exposure. It is HIGHLY RECOMMENDED that these measures be implemented on ALL vulnerable systems. This issue will be corrected in future X Project Team releases of X11. - - - -------------- - - - --- Impact --- - - - -------------- By crafting an arbitrarily long string that contains embedded machine code and using it to set specific "resources", a user may obtain a shell prompt that has root privileges. Anyone using the MIT X Consortium; X Consortium, Inc.; or X Project Team xterm and that has xterm installed setuid-root may be vulnerable. Anyone using an xterm based on any of the sources listed above may also be vulnerable to the xterm vulnerability. In order to be vulnerable to the Xaw library vulnerability, the Xaw Text widget must be used by a setuid-root program. Anyone using an Xaw replacement based on any of the released versions of Xaw listed above (e.g. Xaw3d) may also be vulnerable to the Xaw vulnerability. - - - -------------------------- - - - --- Temporary Solution --- - - - -------------------------- 1) Become the root user on the system. % /bin/su - Password: # 2) Remove the setuid-root bit from the xterm binary. # chmod 0755 /xterm For the Xaw vulnerability, remove the suid-root bit from any programs which use the Xaw text widget. 2) Remove the setuid-root bit from the binary. # chmod 0755 - - - ---------------- - - - --- Solution --- - - - ---------------- Patches to address this vulnerability have been given to X Project Team members: Astec Attachmate BARCO Chromatics CliniComp International Digital Hewlett-Packard Hitachi Hummingbird Communications IBM Jupiter Systems Metro Link Network Computing Devices NetManage Peritek Seaweed Systems Sequent Computer Systems Shiman Associates Silicon Graphics Societe Axel Siemens Nixdorf Starnet SunSoft WRQ Xi Graphics The X Project Team periodically makes public patches available to fix a variety of problems. Announcements about the availability of these patches is announced on the Usenet comp.windows.x.announce newsgroup. The patches, when they become available, may be found on ftp://ftp.x.org/pub/R6.4/fixes/. The X Project Team only supplies patches for the latest release -- we do not make patches for prior releases. Information on joining The Open Group can be found at http://www.opengroup.org/howtojoin.htm ========================FORWARDED TEXT ENDS HERE============================= If you believe that your system has been compromised, contact the CERT Coordination Center or your representative in the Forum of Incident Response and Security Teams (FIRST). See http://www.first.org/team-info/. We strongly urge you to encrypt any sensitive information you send by email. The CERT Coordination Center can support a shared DES key and PGP. Contact the CERT staff for more information. Location of CERT PGP key ftp://ftp.cert.org/pub/CERT_PGP.key CERT Contact Information - ------------------------ Email cert@cert.org Phone +1 412-268-7090 (24-hour hotline) CERT personnel answer 8:30-5:00 p.m. EST (GMT-5)/EDT(GMT-4), and are on call for emergencies during other hours. Fax +1 412-268-6989 Postal address CERT Coordination Center Software Engineering Institute Carnegie Mellon University Pittsburgh PA 15213-3890 USA CERT publications, information about FIRST representatives, and other security-related information are available from http://www.cert.org/ ftp://ftp.cert.org/pub/ CERT advisories and bulletins are also posted on the USENET newsgroup comp.security.announce To be added to our mailing list for CERT advisories and bulletins, send your email address to cert-advisory-request@cert.org In the subject line, type SUBSCRIBE your-email-address * Registered U.S. Patent and Trademark Office. The CERT Coordination Center is part of the Software Engineering Institute (SEI). The SEI is sponsored by the U. S. Department of Defense. This file: ftp://ftp.cert.org/pub/cert_bulletins/VB-98.04.xterm.Xaw -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBNUTuuXVP+x0t4w7BAQEbnwQA3DJTOrIvrnizEvHb2RojMNm/Hmu5dqHL ber6ArkrMaqITjJpgLnoGKy3n9x4DOWt/4008gm9g11rRpHoOEPPDha5oSi+vpqh MMkh7ALe8J1OiHmzUy0MJA4xBblGbimEsI0pTZgsP6ndHhZXAJX1Kd6BuL+Pp+PX oqHgg+9cBLQ= =KOjp -----END PGP SIGNATURE----- -+#+--+#+--+#+--+#+--+#+--+#+--+#+--+#+--+#+--+#+--+#+--+#+--+#+--+#+--+ This message was posted through the FIRST mailing list server. If you wish to unsubscribe from this mailing list, send the message body of "unsubscribe first-info" to first-majordomo@FIRST.ORG -+#+--+#+--+#+--+#+--+#+--+#+--+#+--+#+--+#+--+#+--+#+--+#+--+#+--+#+--+ ========================FORWARDED TEXT ENDS HERE============================= The National Institute of Standards and Technology (NIST) has established a Federal Computer Incident response Capability (FedCIRC) to assist federal civilians agencies in their incident handling efforts by providing proactive and reactive computer security related services. FedCIRC is a partnership among NIST, the Computer Incident Advisory Capability (CIAC), and the CERT* Coordination Center (CERT/CC). If you believe that your system has been compromised, please contact FedCIRC: Telephone: +1 888 282 0870 Email: fedcirc@fedcirc.gov Web Server: http://www.fedcirc.gov/ * Registered in U.S. Patent and Trademark Office The CERT Coordination Center is part of the Software Engineering Institute. The Software Engineering Institute is sponsored by the U.S. Department of Defense. 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. 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.