OpenSSH Channel Code Off by 1 vulnerability in older version
Reporter | Title | Published | Views | Family All 15 |
---|---|---|---|---|
![]() | local and remote command execution in 009 | 7 Mar 200218:29 | – | suse |
![]() | CVE-2002-0083 | 15 Mar 200205:00 | – | nvd |
![]() | OpenSSH < 3.1 Channel Code Off by One Remote Privilege Escalation | 7 Mar 200200:00 | – | nessus |
![]() | Debian DSA-119-1 : ssh -- local root exploit, remote client exploit | 29 Sep 200400:00 | – | nessus |
![]() | Mandrake Linux Security Advisory : openssh (MDKSA-2002:019) | 31 Jul 200400:00 | – | nessus |
![]() | OpenSSH < 3.0.1 Multiple Flaws | 20 Nov 200100:00 | – | nessus |
![]() | SunSSH < 1.1.1 / 1.3 CBC Plaintext Disclosure | 29 Aug 201100:00 | – | nessus |
![]() | CVE-2002-0083 | 25 Jun 200204:00 | – | cvelist |
![]() | FreeBSD-SA-02:13.openssh | 7 Mar 200200:00 | – | freebsd_advisory |
![]() | OpenSSH Channel Code Off by 1 | 3 Nov 200500:00 | – | openvas |
# OpenVAS Vulnerability Test
# $Id: openssh_channel.nasl 6056 2017-05-02 09:02:50Z teissa $
# Description: OpenSSH Channel Code Off by 1
#
# Authors:
# Thomas reinke <[email protected]>
#
# Copyright:
# Copyright (C) 2002 Thomas Reinke
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# as published by the Free Software Foundation
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
tag_summary = "You are running a version of OpenSSH which is older than 3.1.
Versions prior than 3.1 are vulnerable to an off by one error
that allows local users to gain root access, and it may be
possible for remote users to similarly compromise the daemon
for remote access.
In addition, a vulnerable SSH client may be compromised by
connecting to a malicious SSH daemon that exploits this
vulnerability in the client code, thus compromising the
client system.";
tag_solution = "Upgrade to OpenSSH 3.1 or apply the patch for
prior versions. (See: http://www.openssh.org)";
if(description)
{
script_id(10883);
script_version("$Revision: 6056 $");
script_tag(name:"last_modification", value:"$Date: 2017-05-02 11:02:50 +0200 (Tue, 02 May 2017) $");
script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
script_bugtraq_id(4241);
script_tag(name:"cvss_base", value:"10.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_cve_id("CVE-2002-0083");
name = "OpenSSH Channel Code Off by 1";
script_name(name);
summary = "Checks for the remote OpenSSH version";
script_category(ACT_GATHER_INFO);
script_tag(name:"qod_type", value:"remote_banner_unreliable");
script_copyright("This script is Copyright (c) 2002 Thomas Reinke");
family = "Gain a shell remotely";
script_family(family);
script_dependencies("ssh_detect.nasl");
script_require_ports("Services/ssh", 22);
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "summary" , value : tag_summary);
exit(0);
}
#
# The script code starts here
#
port = get_kb_item("Services/ssh");
if(!port) port = 22;
banner = get_kb_item("SSH/banner/" + port );
if ( ! banner ) exit(0);
if(ereg(pattern:"ssh-.*-openssh[-_](2\..*|3\.0).*" , string:tolower(banner)))
security_message(port);
Transform Your Security Services
Elevate your offerings with Vulners' advanced Vulnerability Intelligence. Contact us for a demo and discover the difference comprehensive, actionable intelligence can make in your security strategy.
Book a live demo