GLSA-200804-03 : OpenSSH: Privilege escalation

medium Nessus Plugin ID 31834

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200804-03 (OpenSSH: Privilege escalation)

Two issues have been discovered in OpenSSH:
Timo Juhani Lindfors discovered that OpenSSH sets the DISPLAY variable in SSH sessions using X11 forwarding even when it cannot bind the X11 server to a local port in all address families (CVE-2008-1483).
OpenSSH will execute the contents of the '.ssh/rc' file even when the 'ForceCommand' directive is enabled in the global sshd_config (CVE-2008-1657).
Impact :

A local attacker could exploit the first vulnerability to hijack forwarded X11 sessions of other users and possibly execute code with their privileges, disclose sensitive data or cause a Denial of Service, by binding a local X11 server to a port using only one address family.
The second vulnerability might allow local attackers to bypass intended security restrictions and execute commands other than those specified by 'ForceCommand' if they are able to write to their home directory.
Workaround :

There is no known workaround at this time.

Solution

All OpenSSH users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=net-misc/openssh-4.7_p1-r6'

See Also

https://security.gentoo.org/glsa/200804-03

Plugin Details

Severity: Medium

ID: 31834

File Name: gentoo_GLSA-200804-03.nasl

Version: 1.16

Type: local

Published: 4/11/2008

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.1

CVSS v2

Risk Factor: Medium

Base Score: 6.9

Temporal Score: 5.1

Vector: CVSS2#AV:L/AC:M/Au:N/C:C/I:C/A:C

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:openssh, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Ease: No known exploits are available

Patch Publication Date: 4/5/2008

Reference Information

CVE: CVE-2008-1483, CVE-2008-1657

CWE: 264

GLSA: 200804-03