Security Vulnerability in Solaris SSH May Allow Unauthorized Access to X11 Sessions



Category :Security
Release Phase :Resolved
Bug Id :6684003  
Product :Solaris 9 Operating System
Solaris 10 Operating System  
Date of Workaround Release :05-May-2008 
Date of Resolved Release :02-Jul-2008 

A Security Vulnerability in Solaris SSH may allow Unauthorized Access to X11 Sessions


1. Impact

A security vulnerability related to X11 forwarding within the SSH product shipped with Solaris may allow a local unprivileged user to gain unauthorized access to another user's X11 session. This may allow execution of code with the privileges of that user or may result in the disclosure of sensitive data related to the user's session.

This issue is also referenced in the following document:

2. Contributing Factors

This issue can occur in the following releases:

SPARC Platform

x86 Platform

Note:  SSH is not shipped with Solaris 8 and therefore is not impacted by this issue.

This issue only affects systems which are configured to run the SSH service. The following can be used to determine if the sshd(1M) daemon is running on a host:
$ pgrep sshd || echo "sshd not running"
This issue only affects SSH sessions which have X11 forwarding enabled. By default users are allowed to enable this facility for any new sessions (see sshd(1)). To determine whether the X11 forwarding setting has been changed from the default, the sshd_config(4) file can
be examined, for example:
% grep X11Forwarding /etc/ssh/sshd_config
X11Forwarding no

3. Symptoms

There are no predictable symptoms that would indicate the described vulnerability has been exploited.

4. Workaround

To workaround this issue, X11 forwarding can be disabled for individual SSH sessions by running the ssh(1) as follows when those sessions are initiated:
$ ssh -o ForwardX11=no ...
OR   
$ ssh -x ...
Alternatively, the sshd_config(4) file on a host can be modified to disable X11 forwarding for all incoming SSH connections to that host, by changing the following line in "/etc/ssh/sshd_config" (or adding it if not already present) from:

X11Forwarding yes
to
X11Forwarding no
       
and then restarting ssh:

For Solaris 9:
# /etc/init.d/sshd stop ; /etc/init.d/sshd start
For Solaris 10:
# svcadm restart ssh

5. Resolution

This issue is addressed in the following releases:

SPARC Platform
x86 Platform
Note: The above patches have introduced a regression for systems that have only IPv4 interfaces configured. Please see Sun Alert 240906 for further information.

For more information on Security Sun Alerts, see Technical Instruction ID 213557.

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-2008 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, CA 95054 U.S.A. All rights reserved.



Modification History

23-May-2008: Updated Contributing Factors and Resolution sections
02-Jul-2008: Updated Contributing Factors and Resolution sections; now Resolved
20-Aug-2008: Updated Resolution section




Attachments
This solution has no attachment

 
 
Login Required

You must login and have a valid contract to access Sun's Premium content which includes:

  • Sun Alerts
  • Bugs
  • Patches
  • Solutions
  • White Papers
  • Documentation
  • Support Knowledge

Login Required

You must login and have a valid contract to access Sun's contracted features

Access Legend:

(Login to access)   Sun Contracted Content
(Login to access)   Sun Contracted Feature

Please make use of SunSolve Feedback application by selecting the floating [+] to provide feedback about this specific document.

Search

Article Details
Article ID : 237444
Article Type : Sun Alert
Last reviewed : 2010-01-21
Audience : PUBLIC
Keywords :
Provide feedback  (help)
Page Tools
»  Print This Page
»  Email This Article
»  Bookmark This Article