SecureCRT SSH-1 Protocol Version String Remote Overflow - Nessus

High   Plugin ID: 15822

This page contains detailed information about the SecureCRT SSH-1 Protocol Version String Remote Overflow Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 15822
Name: SecureCRT SSH-1 Protocol Version String Remote Overflow
Filename: securecrt_remote_overflow.nasl
Vulnerability Published: 2002-07-23
This Plugin Published: 2004-11-24
Last Modification Time: 2018-07-27
Plugin Version: 1.18
Plugin Type: local
Plugin Family: Windows
Dependencies: smb_hotfixes.nasl
Required KB Items [?]: SMB/Registry/Enumerated

Vulnerability Information


Severity: High
Vulnerability Published: 2002-07-23
Patch Published: N/A
CVE [?]: CVE-2002-1059
CPE [?]: N/A

Synopsis

The remote host has an application that is affected by a buffer overflow vulnerability.

Description

The remote host is using a vulnerable version of SecureCRT, a SSH/Telnet client built for Microsoft Windows operating systems.

It has been reported that SecureCRT contains a remote buffer overflow allowing an SSH server to execute arbitrary commands via an especially long SSH1 protocol version string.

Solution

Upgrade to SecureCRT 3.2.2, 3.3.4, 3.4.6, 4.1 or newer

Public Exploits


Target Network Port(s): 139, 445
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the SecureCRT SSH-1 Protocol Version String Remote Overflow vulnerability:

  1. Metasploit: exploit/windows/ssh/securecrt_ssh1
    [SecureCRT SSH1 Buffer Overflow]
  2. Exploit-DB: exploits/windows/remote/16460.rb
    [EDB-16460: SecureCRT 4.0 Beta 2 SSH1 - Remote Buffer Overflow (Metasploit)]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:M/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:9.3 (High)
Impact Subscore:10.0
Exploitability Subscore:8.6
CVSS Temporal Score:7.7 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.7 (High)

Go back to menu.

Plugin Source


This is the securecrt_remote_overflow.nasl nessus plugin source code. This script is Copyright (C) 2004-2018 Tenable Network Security, Inc.

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
 script_id(15822);
 script_version("1.18");
 script_cvs_date("Date: 2018/07/27 18:38:15");

 script_cve_id("CVE-2002-1059");
 script_bugtraq_id(5287);

 script_name(english:"SecureCRT SSH-1 Protocol Version String Remote Overflow");
 script_summary(english:"Determines the version of SecureCRT");

 script_set_attribute(attribute:"synopsis", value:
"The remote host has an application that is affected by a buffer
overflow vulnerability.");
 script_set_attribute(attribute:"description", value:
"The remote host is using a vulnerable version of SecureCRT, a
SSH/Telnet client built for Microsoft Windows operating systems.

It has been reported that SecureCRT contains a remote buffer overflow
allowing an SSH server to execute arbitrary commands via an especially
long SSH1 protocol version string.");
 script_set_attribute(attribute:"solution", value:"Upgrade to SecureCRT 3.2.2, 3.3.4, 3.4.6, 4.1 or newer");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'SecureCRT SSH1 Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

 script_set_attribute(attribute:"vuln_publication_date", value:"2002/07/23");
script_set_attribute(attribute:"plugin_publication_date", value:"2004/11/24");

script_set_attribute(attribute:"plugin_type", value:"local");
script_end_attributes();

 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2004-2018 Tenable Network Security, Inc.");
 script_family(english:"Windows");
 script_dependencies("smb_hotfixes.nasl");
 script_require_keys("SMB/Registry/Enumerated");
 script_require_ports(139, 445);
 exit(0);
}

include("smb_func.inc");
include("audit.inc");

# Connect to the appropriate share.
name    =  kb_smb_name();
port    =  kb_smb_transport();

login   =  kb_smb_login();
pass    =  kb_smb_password();
domain  =  kb_smb_domain();



if(! smb_session_init()) audit(AUDIT_FN_FAIL, 'smb_session_init');
rc = NetUseAdd(login:login, password:pass, domain:domain, share:"IPC$");
if (rc != 1) {
  NetUseDel();
  exit(0);
}

# Connect to remote registry.
hklm = RegConnectRegistry(hkey:HKEY_LOCAL_MACHINE);
if (isnull(hklm))
{
  NetUseDel();
  exit(0);
}

key = "SOFTWARE\VanDyke\SecureCRT\License";
key_h = RegOpenKey(handle:hklm, key:key, mode:MAXIMUM_ALLOWED);
if ( isnull(key_h) )
{
 key = "SOFTWARE/VanDyke/SecureCRT/Evaluation License/Version";
 if ( isnull(key_h) )
 {
  RegCloseKey(handle:hklm);
  NetUseDel();
  exit(0);
 }
}

version = RegQueryValue(handle:key_h, item:"Version");
RegCloseKey(handle:key_h);
RegCloseKey(handle:hklm);
NetUseDel();
if ( !isnull(version) )
{
 set_kb_item(name:"SMB/SecureCRT/Version", value:version[1]);
 if (egrep(pattern:"^(2\.|3\.([01]|2[^.]|2\.1[^0-9]|3[^.]|3\.[1-3][^0-9]|4[^.]|4\.[1-5][^0-9])|4\.0 beta [12]([^0-9]|$))", string:version[1]))
  security_hole(kb_smb_transport());
}

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/securecrt_remote_overflow.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\securecrt_remote_overflow.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/securecrt_remote_overflow.nasl

Go back to menu.

How to Run


Here is how to run the SecureCRT SSH-1 Protocol Version String Remote Overflow as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Windows plugin family.
  6. On the right side table select SecureCRT SSH-1 Protocol Version String Remote Overflow plugin ID 15822.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl securecrt_remote_overflow.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a securecrt_remote_overflow.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - securecrt_remote_overflow.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state securecrt_remote_overflow.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 10026 - BFTelnet Username Handling Remote Overflow DoS
  • 10474 - GAMSoft TelSrv 1.4/1.5 Username Overflow DoS
  • 105154 - PuTTY < 0.67 PSCP Server Header Handling Stack Buffer Overflow
  • 11705 - LeapFTP < 2.7.4.x PASV Reply Remote Overflow
  • 122033 - Apache OpenOffice < 4.1.6 Virtual Table Arithmetic Overflow
  • 124062 - SolarWinds DameWare Mini Remote Client Agent < 12.0.3 Stack Buffer Overflow
  • 145534 - Python Buffer Overflow (CVE-2021-3177)
  • 15771 - Ipswitch IMail IMAP Service DELETE Command Remote Overflow
  • 17254 - RealPlayer Multiple Remote Overflows (2005-03-01)
  • 18041 - CA BrightStor ARCserve Backup Universal Agent Remote Overflow (QO66526)
  • 18551 - VERITAS Backup Exec Agent for Windows CONNECT_CLIENT_AUTH Remote Overflow
  • 19193 - MailEnable IMAP STATUS Command Remote Overflow
  • 19387 - CA BrightStor ARCserve Backup Agent for Windows Long String Overflow
  • 19553 - DameWare Mini Remote Control Pre-Authentication Remote Overflow
  • 19554 - DameWare Mini Remote Control Pre-Authentication Username Remote Overflow
  • 19783 - MailEnable IMAP Server W3C Logging Overflow
  • 20826 - Winamp < 5.13 Playlist Handling Multiple Overflows
  • 21141 - Rhapsody SWF File Handling Buffer Overflow
  • 21674 - WinGate POST Request Buffer Overflow
  • 21738 - Winamp < 5.24 in_midi.dll MIDI File Processing Overflow
  • 22127 - eIQnetworks Enterprise Security Analyzer Syslog Server Multiple Remote Overflows
  • 22129 - eIQnetworks Enterprise Security Analyzer EnterpriseSecurityAnalyzer.exe LICMGR_ADDLICENSE Command Remote Overflow
  • 22196 - eIQnetworks Enterprise Security Analyzer Monitoring.exe Multiple Command Overflow
  • 22253 - IBM eGatherer ActiveX RunEgatherer Function Overflow
  • 22510 - CA BrightStor ARCserve Backup for Windows Multiple Remote Buffer Overflows (QO81201)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file securecrt_remote_overflow.nasl version 1.18. For more plugins, visit the Nessus Plugin Library.

Go back to menu.