LeapFTP < 2.7.4.x PASV Reply Remote Overflow - Nessus

High   Plugin ID: 11705

This page contains detailed information about the LeapFTP < 2.7.4.x PASV Reply 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: 11705
Name: LeapFTP < 2.7.4.x PASV Reply Remote Overflow
Filename: leapftp_overflow.nasl
Vulnerability Published: 2003-06-09
This Plugin Published: 2003-06-09
Last Modification Time: 2018-11-15
Plugin Version: 1.19
Plugin Type: local
Plugin Family: Windows
Dependencies: smb_hotfixes.nasl
Required KB Items [?]: SMB/Registry/Enumerated

Vulnerability Information


Severity: High
Vulnerability Published: 2003-06-09
Patch Published: N/A
CVE [?]: N/A
CPE [?]: N/A

Synopsis

The remote host is running an FTP client that is affected by a buffer overflow vulnerability.

Description

The remote host is running LeapFTP - an FTP client.

There is a flaw in the remote version of this software that could allow an attacker to execute arbitrary code on this host.

To exploit it, an attacker would need to set up a rogue FTP server and have a user on this host connect to it.

Solution

Upgrade to version 2.7.4.x or newer as this reportedly fixes the issue.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the LeapFTP < 2.7.4.x PASV Reply Remote Overflow vulnerability:

  1. Metasploit: exploit/windows/ftp/leapftp_pasv_reply
    [LeapWare LeapFTP v2.7.3.600 PASV Reply Client Overflow]

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.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:U/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:5.5 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:5.5 (Medium)

Go back to menu.

Plugin Source


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

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

# Ref:
# Date: Mon, 09 Jun 2003 12:19:40 +0900
# From: ":: Operash ::" <[email protected]>
# To: [email protected]
# Subject: [LeapFTP] "PASV" Reply Buffer Overflow Vulnerability
#


include("compat.inc");

if (description)
{
 script_id(11705);
 script_version("1.19");
 script_cvs_date("Date: 2018/11/15 20:50:27");
 script_bugtraq_id(7860);

 script_name(english:"LeapFTP < 2.7.4.x PASV Reply Remote Overflow");
 script_summary(english:"Determines the presence of LeapFTP");

 script_set_attribute(attribute:"synopsis", value:
"The remote host is running an FTP client that is affected by a buffer
overflow vulnerability.");
 script_set_attribute(attribute:"description", value:
"The remote host is running LeapFTP - an FTP client.

There is a flaw in the remote version of this software that could
allow an attacker to execute arbitrary code on this host.

To exploit it, an attacker would need to set up a rogue FTP server and
have a user on this host connect to it.");
 script_set_attribute(attribute:"see_also", value:"https://marc.info/?l=bugtraq&m=105795219412333&w=2");
 script_set_attribute(attribute:"solution", value:
"Upgrade to version 2.7.4.x or newer as this reportedly fixes the
issue.");
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:U/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:'LeapWare LeapFTP v2.7.3.600 PASV Reply Client Overflow');
 script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

 script_set_attribute(attribute:"vuln_publication_date", value:"2003/06/09");
 script_set_attribute(attribute:"plugin_publication_date", value:"2003/06/09");

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

 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2003-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("smb_hotfixes.inc");
include("audit.inc");



rootfile = hotfix_get_programfilesdir();
if(!rootfile) exit(1);
share = ereg_replace(pattern:"^([A-Za-z]):.*", replace:"\1$", string:rootfile);
exe =  ereg_replace(pattern:"^[A-Za-z]:(.*)", replace:"\1\LeapFTP\LeapFTP.exe", string:rootfile);



name 	=  kb_smb_name();
login	=  kb_smb_login();
pass  	=  kb_smb_password();
domain 	=  kb_smb_domain();
port    =  kb_smb_transport();




if(! smb_session_init()) audit(AUDIT_FN_FAIL, 'smb_session_init');

r = NetUseAdd(login:login, password:pass, domain:domain, share:share);
if ( r != 1 ) exit(1);


handle = CreateFile (file:exe, desired_access:GENERIC_READ, file_attributes:FILE_ATTRIBUTE_NORMAL,
                     share_mode:FILE_SHARE_READ, create_disposition:OPEN_EXISTING);
if( ! isnull(handle) )
{
 version = GetFileVersion(handle:handle);
 CloseFile(handle:handle);
 if ( version[0] < 2 ||
      (version[0] == 2 && version[1] < 6 ) ||
      (version[0] == 2 && version[1] == 7 && version[2] <= 3 ) )
	security_hole(port);
}

NetUseDel();

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

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

Go back to menu.

How to Run


Here is how to run the LeapFTP < 2.7.4.x PASV Reply 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 LeapFTP < 2.7.4.x PASV Reply Remote Overflow plugin ID 11705.
  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 leapftp_overflow.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - leapftp_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 leapftp_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
  • 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
  • 15822 - SecureCRT SSH-1 Protocol Version String 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

Version


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

Go back to menu.