SSH Multiple Vulns

2005-11-03T00:00:00
ID OPENVAS:136141256231011195
Type openvas
Reporter This script is Copyright (C) 2002 Paul Johnston, Westpoint Ltd
Modified 2019-02-11T00:00:00

Description

According to its banner, the remote SSH server is vulnerable to one or more of the following vulnerabilities:

CVE-2002-1357 (incorrect length)

CVE-2002-1358 (lists with empty elements/empty strings)

CVE-2002-1359 (large packets and large fields)

CVE-2002-1360 (string fields with zeros)

                                        
                                            # OpenVAS Vulnerability Test
# $Id: ssh_multivulns_16122002.nasl 13568 2019-02-11 10:22:27Z cfischer $
# Description: SSH Multiple Vulns
#
# Authors:
# Paul Johnston of Westpoint Ltd <paul@westpoint.ltd.uk>
#
# Copyright:
# Copyright (C) 2002 Paul Johnston, Westpoint Ltd
#
# 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.
#

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.11195");
  script_version("$Revision: 13568 $");
  script_tag(name:"last_modification", value:"$Date: 2019-02-11 11:22:27 +0100 (Mon, 11 Feb 2019) $");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  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-1357", "CVE-2002-1358", "CVE-2002-1359", "CVE-2002-1360");
  script_name("SSH Multiple Vulns");
  script_category(ACT_GATHER_INFO);
  script_tag(name:"qod_type", value:"remote_banner");
  script_copyright("This script is Copyright (C) 2002 Paul Johnston, Westpoint Ltd");
  script_family("Gain a shell remotely");
  script_dependencies("ssh_detect.nasl");
  script_require_ports("Services/ssh", 22);
  script_mandatory_keys("ssh/server_banner/available");

  script_tag(name:"solution", value:"Upgrade your SSH server to an unaffected version.");

  script_tag(name:"summary", value:"According to its banner, the remote SSH server is vulnerable to one or
  more of the following vulnerabilities:

  CVE-2002-1357 (incorrect length)

  CVE-2002-1358 (lists with empty elements/empty strings)

  CVE-2002-1359 (large packets and large fields)

  CVE-2002-1360 (string fields with zeros)");

  script_tag(name:"impact", value:"Some of these vulnerabilities may allow remote attackers to execute
  arbitrary code with the privileges of the SSH process, usually root.");

  script_tag(name:"solution_type", value:"VendorFix");

  exit(0);
}

include("ssh_func.inc");

port = get_ssh_port(default:22);
banner = get_ssh_server_banner(port:port);
if ( ! banner )
  exit(0);

# SSH-2.0-3.2.0 F-Secure SSH Windows NT Server
# versions up to 3.1.* affected
if(ereg(pattern:"^SSH-2.0-([12]\..*|3\.[01]\..*) F-Secure SSH", string:banner, icase:TRUE))
{
  security_message(port:port);
}

# SSH-2.0-3.2.0 SSH Secure Shell Windows NT Server
# versions up to 3.1.* affected
if(ereg(pattern:"^SSH-2.0-([12]\..*|3\.[01]\..*) SSH Secure Shell", string:banner, icase:TRUE))
{
  security_message(port:port);
}

# SSH-1.99-Pragma SecureShell 3.0
# versions up to 2.* affected
if(ereg(pattern:"^SSH-1.99-Pragma SecureShell ([12]\..*)", string:banner, icase:TRUE))
{
  security_message(port:port);
}