__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN Security Vulnerability Involving the Common Desktop Environment (CDE) dtlogin(1X) Command [Sun Alert ID: 101478] July 21, 2005 20:00 GMT Number P-258 ______________________________________________________________________________ PROBLEM: There is a security vulnerability involving the Common Desktop Environment (CDE) dtlogin(1X) Command when parsing XDMCP requests. PLATFORM: Solaris 7, 8, & 9 DAMAGE: A local or remote unprivileged user may be able to gain unauthorized root privileges or cause a denial of service. SOLUTION: Upgrade to the appropriate version. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. A local user could gain root privileges. ASSESSMENT: ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/p-258.shtml ORIGINAL BULLETIN: Sun Alert ID: 101478 http://www.sunsolve.sun.com/search/document.do?assetkey=1-2 6-101478-1&searchclause=%22category:security%22%20%22 availability,%20security%22%20category:security ______________________________________________________________________________ [***** Start Sun Alert ID: 101478 *****] Sun(sm) Alert Notification Sun Alert ID: 101478 (formerly 57539) Synopsis: Security Vulnerability Involving the Common Desktop Environment (CDE) dtlogin(1X) Command When Parsing XDMCP Requests (CERT VU#179804) Category: Availability Product: Solaris 9 Operating System, Solaris 7 Operating System, Solaris 8 Operating System BugIDs: 5022437 Avoidance: Patch, Workaround State: Resolved Date Released: 07-May-2004, 03-Aug-2004 Date Closed: 03-Aug-2004 Date Modified: 10-May-2004, 11-Jun-2004, 03-Aug-2004 1. Impact A local or remote unprivileged user may be able to gain unauthorized root privileges or cause a denial of service due to a "double-free" vulnerability in the CDE login service dtlogin(1X) which can be triggered when parsing invalid X Display Manager Control Protocol (XDMCP) packets. If the dtlogin(1X) program is killed, users will be unable to login on any Sun Ray devices attached to the server, and the console will display the command line login prompt. This issue is also described in CERT Vulnerability VU #179804 (see http://www.kb.cert.org/vuls/id/179804) 2. Contributing Factors This issue can occur in the following releases: SPARC Platform * Solaris 7 without patch 107180-31 * Solaris 8 without patch 108919-21 * Solaris 9 without patch 112807-09 x86 Platform * Solaris 7 wthout patch 107181-31 * Solaris 8 without patch 108920-21 * Solaris 9 without patch 114210-08 This issue may occur on systems running dtlogin(1X). To determine if dtlogin(1X) is running on a system, use the "ps" command as shown below: % ps -ef | grep dtlogin 3. Symptoms If an application core file is captured for this issue, it will be found in "/core" and will contain a stack trace similar to the following: core 'core' of 2999: /usr/dt/bin/dtlogin -daemon ff310dd8 XdmcpDisposeARRAY8 (0, 0, fef66fc0, fef6a680, ff080fe4, 0) + 4 ff310e74 XdmcpDisposeARRAYofARRAY8 (ffbffb70, 0, 0, 0, ffbffc44, ff) + 1c 00025528 request_respond (ffbffc44, 20, 6, ffbffbfc, 6, 0) + 464 00024398 ProcessRequestSocket (6, 43c00, 1ac, ffbffc44, 270, 18) + 244 00023f68 WaitForSomething (40, 20, 3f400, 6, 3ec00, 1) + 208 000190e8 main (2, 0, 48618, 48400, ffbffe7c, 48400) + 338 00015b68 _start (0, 0, 0, 0, 0, 0) + 10 Solution Summary Top 4. Relief/Workaround If dtlogin(1X) exits unexpectedly, it may be restarted using the following command as root: # /etc/init.d/dtlogin startTo reduce the possibility of the described issue from occurring, network administrators should block UDP(7P) packets to port 177 across any firewall where XDMCP remote session service is not required. If no graphical login access is required for local console users, Sun Ray devices, or remote XDMCP sessions, dtlogin(1X) may be disabled completely by running the following command as root: # /usr/dt/bin/dtconfig -dand then stop the currently running dtlogin: # /usr/dt/bin/dtconfig -killIf XDMCP remote session access to a machine is not required at all, but graphical login access for the console and/or Sun Ray devices is required, dtlogin(1X) can be configured to not listen for XDMCP connections by editing the "/etc/dt/config/Xconfig file" and removing the "#" symbol at the beginning of the following line: # Dtlogin.requestPort 0If the "/etc/dt/config/Xconfig" file does not exist, create it by doing the following: # mkdir -p /etc/dt/config # cp /usr/dt/config/Xconfig /etc/dt/config # /etc/init.d/dtlogin resetNote: Controlling access via the access control list in the "Xaccess" file is not effective at preventing this issue. 5. Resolution This issue is addressed in the following releases: SPARC Platform * Solaris 7 with patch 107180-31 or later * Solaris 8 with patch 108919-21 or later * Solaris 9 with patch 112807-09 or later x86 Platform * Solaris 7 with patch 107181-31 or later * Solaris 8 with patch 108920-21 or later * Solaris 9 with patch 114210-08 or later Change History 10-May-2004: Updated Contributing Factors and Resolution sections 11-Jun-2004: Updated Relief/Workaround section 03-Aug-2004: State: Resolved Updated Contributing Factors and Resolution sections This Sun Alert notification is being provided to you on an "AS IS" basis. This Sun Alert notification may contain information provided by third parties. The issues d escribed in this Sun Alert notification may or may not impact your system(s). Sun makes no representations, warranties, or guarantees as to the information contained herein. ANY AND ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE HEREBY DISCLAIMED. BY ACCESSING THIS DOCUMENT YOU ACKNOWLEDGE THAT SUN SHALL IN NO EVENT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES THAT ARISE OUT OF YOUR USE OR FAILURE TO USE THE INFORMATION CONTAINED HEREIN. This Sun Alert notification contains Sun proprietary and confidential information. It is being provided to you pursuant to the provisions of your agreement to purchase services from Sun, or, if you do not have such an agreement, the Sun.com Terms of Use. This Sun Alert notification may only be used for the purposes contemplated by these agreements. Copyright 2000-2005 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, CA 95054 U.S.A. All rights reserved. [***** End Sun Alert ID: 101478 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Sun Microsystems 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) P-248: Microsoft Color Management Module Vulnerability P-249: krb5 Security Update P-250: Critical Patch Update - July 2005 P-251: Mozilla Security Updates P-252: Firefox Security Updates P-253: Solaris Runtime Linker Vulnerability P-254: 'tiff' Buffer Overflow Vulnerability P-255: Heimdal P-256: Targeted Attacks P-257: SSH Tectia Server Private Key Permission Vulnerability in Windows