Protect yourself against future threats.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 =========================================================================== AUSCERT External Security Bulletin Redistribution ESB-2006.0742 -- [UNIX/Linux][Solaris] Security Vulnerability in X Display Manager (xdm(1)) Xsession Script 31 January 2007 =========================================================================== AusCERT Security Bulletin Summary --------------------------------- Product: xdm Publisher: Sun Microsystems Operating System: Solaris 10 Solaris 9 Solaris 8 UNIX variants (UNIX, Linux, OSX) Impact: Overwrite Arbitrary Files Read-only Data Access Access: Existing Account CVE Names: CVE-2006-5215 CVE-2006-5214 Original Bulletin: http://sunsolve.sun.com/search/printfriendly.do?assetkey=1-26-102652-1 Comment: This advisory references vulnerabilities in products which run on platforms other than Solaris. It is recommended that administrators running xdm check for an updated version of the software from their vendor. Revision History: January 31 2007: Patches are now available October 18 2006: Updated Contributing Factors and Workaround sections and added CVE Name October 16 2006: Updates to Relief/Workaround section October 9 2006: Initial Release - --------------------------BEGIN INCLUDED TEXT-------------------- Sun(sm) Alert Notification * Sun Alert ID: 102652 * Synopsis: Security Vulnerability in X Display Manager (xdm(1)) Xsession Script * Category: Security * Product: Solaris 9 Operating System, Solaris 10 Operating System, Solaris 8 Operating System * BugIDs: 6388471, 6423858 * Avoidance: Patch, Workaround * State: Resolved * Date Released: 06-Oct-2006, 29-Jan-2007 * Date Closed: 29-Jan-2007 * Date Modified: 12-Oct-2006, 16-Oct-2006, 14-Dec-2006, 29-Jan-2007 1. Impact The X Display Manager (xdm(1)) manages a collection of X displays which may be on the local host or remote servers. A race condition in the Xsession script executed by xdm(1) my lead to either of the following issues: 1. A local unprivileged user may be able to view the xdm(1) error log file, $HOME/.xsession-errors, of another user (BugID 6388471). This issue is also described in Xorg bug 5897: https://bugs.freedesktop.org/show_bug.cgi?id=5897 2. A local unprivileged user may be able to view the alternate xdm(1) error log file, ${TMP-/tmp}/xses-$USER, of another user. In addition, when this alternate log file is in use, a local unprivileged user may be able to erase the contents of arbitrary files which are writable by another user. This alternate log file is only used if the $HOME/.xsession-errors file could not be created (BugID 6423858). This issue is also described in Xorg bug 5898: https://bugs.freedesktop.org/show_bug.cgi?id=5898 2. Contributing Factors This issue can occur in the following releases: SPARC Platform * Solaris 8 without patch 111844-04 * Solaris 9 without patch 124830-01 * Solaris 10 without patch 124457-01 x86 Platform * Solaris 8 without patch 111845-04 * Solaris 9 without patch 124831-01 * Solaris 10 without patch 124458-01 3. Symptoms There are no predictable symptoms that would indicate the described issues have been exploited. 4. Relief/Workaround To work around the described issues (until a patch is available), consider one of the two following workarounds: A) Use an alternate login mechanism such as dtlogin(1) or if using Solaris 10, gdm(1). or: B) Modify the xdm(1) configuration file, xdm-config, and create a new Xsession file using the following commands as the root user: # cd /usr/openwin/lib/X11/xdm # mv xdm-config xdm-config.orig # sed -e 's/cp \/dev\/null "$errfile"/umask 077 \&\& cp \/dev\/null "$errfi le"/' Xsession > /etc/X11/Xsession # sed -e 's/\/usr\/openwin\/lib\/X11\/xdm\/Xsession/\/etc\/X11\/Xsession/' xdm-config.orig > xdm-config then restore executable permissions to the file by running the following command: # chmod 755 Xsession 5. Resolution This issue is addressed in the following releases: SPARC Platform * Solaris 8 with patch 111844-04 or later * Solaris 9 with patch 124830-01 or later * Solaris 10 with patch 124457-01 or later x86 Platform * Solaris 8 with patch 111845-04 or later * Solaris 9 with patch 124831-01 or later * Solaris 10 with patch 124458-01 or later Change History 12-Oct-2006: * Updated Relief/Workaround section 16-Oct-2006: * Updated Contributing Factors and Workaround sections 14-Dec-2006: * Updated Contributing Factors and Resolution sections 29-Jan-2007: * Updated Contributing Factors and Resolution sections * State: Resolved 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 described 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-2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, CA 95054 U.S.A. All rights reserved - --------------------------END INCLUDED TEXT-------------------- You have received this e-mail bulletin as a result of your organisation's registration with AusCERT. The mailing list you are subscribed to is maintained within your organisation, so if you do not wish to continue receiving these bulletins you should contact your local IT manager. If you do not know who that is, please send an email to auscert@auscert.org.au and we will forward your request to the appropriate person. NOTE: Third Party Rights This security bulletin is provided as a service to AusCERT's members. As AusCERT did not write the document quoted above, AusCERT has had no control over its content. The decision to follow or act on information or advice contained in this security bulletin is the responsibility of each user or organisation, and should be considered in accordance with your organisation's site policies and procedures. AusCERT takes no responsibility for consequences which may arise from following or acting on information or advice contained in this security bulletin. NOTE: This is only the original release of the security bulletin. It may not be updated when updates to the original are made. If downloading at a later date, it is recommended that the bulletin is retrieved directly from the author's website to ensure that the information is still current. Contact information for the authors of the original document is included in the Security Bulletin above. If you have any questions or need further information, please contact them directly. Previous advisories and external security bulletins can be retrieved from: http://www.auscert.org.au/render.html?cid=1980 If you believe that your computer system has been compromised or attacked in any way, we encourage you to let us know by completing the secure National IT Incident Reporting Form at: http://www.auscert.org.au/render.html?it=3192 =========================================================================== Australian Computer Emergency Response Team The University of Queensland Brisbane Qld 4072 Internet Email: auscert@auscert.org.au Facsimile: (07) 3365 7031 Telephone: (07) 3365 4417 (International: +61 7 3365 4417) AusCERT personnel answer during Queensland business hours which are GMT+10:00 (AEST). On call after hours for member emergencies only. =========================================================================== -----BEGIN PGP SIGNATURE----- Comment: http://www.auscert.org.au/render.html?it=1967 iQCVAwUBRb/t+yh9+71yA2DNAQIcowQAgOJzGTRR8tGXiqE3R4QayIhlefG1+vR1 fY2ZdE/rkY/rTlykWp9xNfo3h1mAajKLD5losdjpRtBsBA7US/Y0wOLHNjzCL1Vq CyIyx7dNrrax2d0Bth92aCpBSpUqEapXjKlC+rW6g0j6kMSUTaoUN64GX0gkxQLE 0HSVir6ZqqM= =NFsu -----END PGP SIGNATURE-----