OpenSSH X11 < 5.1 Session Hijacking

medium Nessus Network Monitor Plugin ID 4598

Synopsis

The remote host is vulnerable to a local 'session hijacking' flaw.

Description

According to its banner, the version of SSH installed on the remote host is older than 5.1. Such versions may allow a local user to hijack X11 sessions because it improperly checks user privileges before re-binding a port. In order for the attack to be successful, the 'X11UseLocalhost' option would need to be disabled. By default, the option is enabled. Further, the OpenSSH service would need to be running on an operating system (such as HP-UX) where the effective user ID is not checked.

Note: NNM has solely relied on the banner of the SSH client to perform this check. Any backported patches or workarounds such as recompiling or edited configurations are not observable through the banner.

Solution

Upgrade to version 5.1 or higher.

See Also

http://www.openssh.com/txt/release-5.1

Plugin Details

Severity: Medium

ID: 4598

Family: SSH

Published: 7/22/2008

Updated: 3/6/2019

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 4.7

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

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:openbsd:openssh

Reference Information

CVE: CVE-2008-3259, CVE-2008-5161

BID: 32319, 30339