SkipNavigation
US-CERT
American Flag
  Vulnerability
Notes
Database

Search Vulnerability Notes

Vulnerability Notes Help Information


 
 View Notes By
  Name

ID Number

CVE Name

Date Public

Date Published

Date Updated

Severity Metric



 Other Documents
  Technical Alerts

Technical Bulletins

Alerts

Security Tips

Vulnerability Note VU#363181

OpenSSH disregards client configuration and allows server access to ssh-agent and/or X11 after session negotiation

Overview

Versions of OpenSSH client prior to 2.3.0 do not properly enforce restrictions to the ssh-agent or X11 display.

I. Description

An OpenSSH client can be configured to prevent servers from accessing the client's ssh-agent or X11 display. However, versions of OpenSSH client prior to 2.3.0 fail to enforce these settings and thus allow access regardless of the client's desired configuration.

The ssh-agent program is a tool used to store private keys for subsequent use by programs started in the same session. When an SSH connection is established, the client and server negotiate whether or not the server may have access to the client's local ssh-agent (and consequently, the client's stored authentication material). The ForwardAgent setting specifies whether access to the client's ssh-agent is permitted. However, if a server requests access to the local ssh-agent after the connection is negotiated, versions of the OpenSSH client prior to 2.3.0 will permit it even if ForwardAgent is set to "no."

A similar problem exists in the implementation of X11 forwarding in the same versions of the OpenSSH client.

II. Impact

Malicious servers can gain access to your X11 display or key material cached with ssh-agent.

III. Solution

Upgrade to OpenSSH 2.3.0 or later, or apply the patch for this issue available at http://www.openssh.com.

Clear both the $DISPLAY and the $SSH_AUTH_SOCK variable before connecting to untrusted hosts.
% unset SSH_AUTH_SOCK; unset DISPLAY; ssh host

Systems Affected

VendorStatusDate NotifiedDate Updated
OpenSSHVulnerable25-Jun-2001

References


http://www.securityfocus.com/bid/1949
http://xforce.iss.net/static/5517.php
http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-agent

Credit

Thanks to Jacob Langseth <jwl@pobox.com> for pointing out the X11 forwarding issue and to Markus Friedl who published an advisory on this topic.

This document was written by Shawn Hernan and Shawn Van Ittersum.

Other Information

Date Public:2000-12-07
Date First Published:2001-08-13
Date Last Updated:2002-05-30
CERT Advisory: 
CVE-ID(s):CVE-2000-1169
NVD-ID(s):CVE-2000-1169
US-CERT Technical Alerts: 
Metric:0.98
Document Revision:16

If you have feedback, comments, or additional information about this vulnerability, please send us email.
 

 
Page Corner Image
Copyright 2001 Carnegie Mellon University
Disclaimers and copyright information
Get Adobe Reader Get Adobe Reader