CesarFTP Multiple Vulnerabilities (OF, File Access, more) - Nessus

High   Plugin ID: 11755

This page contains detailed information about the CesarFTP Multiple Vulnerabilities (OF, File Access, more) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 11755
Name: CesarFTP Multiple Vulnerabilities (OF, File Access, more)
Filename: cesarftp_overflows.nasl
Vulnerability Published: 2001-05-28
This Plugin Published: 2003-06-18
Last Modification Time: 2022-04-11
Plugin Version: 1.31
Plugin Type: remote
Plugin Family: FTP
Dependencies: ftpserver_detect_type_nd_version.nasl

Vulnerability Information


Severity: High
Vulnerability Published: 2001-05-28
Patch Published: N/A
CVE [?]: CVE-2001-0826, CVE-2001-1335, CVE-2001-1336, CVE-2003-0329, CVE-2004-0298, CVE-2006-2961
CPE [?]: N/A

Synopsis

The remote FTP server is affected by multiple flaws.

Description

The remote host is running CesarFTP, an FTP server for Windows systems.

There are multiple flaws in this version of CesarFTP that could allow an attacker to execute arbitrary code on this host, or simply to disable this server remotely.

Solution

Remove the software as it has not been updated since 2002.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the CesarFTP Multiple Vulnerabilities (OF, File Access, more) vulnerability:

  1. Metasploit: exploit/windows/ftp/cesarftp_mkd
    [Cesar FTP 0.99g MKD Command Buffer Overflow]
  2. Exploit-DB: exploits/windows/remote/16713.rb
    [EDB-16713: CesarFTP 0.99g - 'MKD' Remote Buffer Overflow (Metasploit) (2)]
  3. 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 cesarftp_overflows.nasl nessus plugin source code. This script is Copyright (C) 2003-2022 and is owned by Tenable, Inc. or an Affiliate thereof.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(11755);
  script_version("1.31");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_cve_id(
    "CVE-2001-0826",
    "CVE-2001-1335",
    "CVE-2001-1336",
    "CVE-2003-0329",
    "CVE-2004-0298",
    "CVE-2006-2961"
  );
  script_bugtraq_id(
    2785,
    2786,
    2972,
    7946,
    7950,
    9666,
    18586
  );

  script_name(english:"CesarFTP Multiple Vulnerabilities (OF, File Access, more)");

  script_set_attribute(attribute:"synopsis", value:
"The remote FTP server is affected by multiple flaws.");
  script_set_attribute(attribute:"description", value:
"The remote host is running CesarFTP, an FTP server for Windows systems. 

There are multiple flaws in this version of CesarFTP that could allow
an attacker to execute arbitrary code on this host, or simply to
disable this server remotely.");
  script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2001/May/248");
  # https://downloads.securityfocus.com/vulnerabilities/exploits/CesarFTP-ex1.pl
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?9d02484f");
  script_set_attribute(attribute:"see_also", value:"http://www.securiteam.com/exploits/5ZP0C0AIUA.html");
  script_set_attribute(attribute:"solution", value:
"Remove the software as it has not been updated since 2002.");
  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:'Cesar FTP 0.99g MKD Command Buffer 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:"2001/05/28");
  script_set_attribute(attribute:"plugin_publication_date", value:"2003/06/18");

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

  script_category(ACT_GATHER_INFO);
  script_family(english:"FTP");

  script_copyright(english:"This script is Copyright (C) 2003-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("ftpserver_detect_type_nd_version.nasl");
  script_require_ports("Services/ftp", 21);

  exit(0);
}

#
# The script code starts here
#

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


port = get_ftp_port(default: 21);

banner = get_ftp_banner(port:port);
if (
  banner && 
  egrep(pattern:"^220 CesarFTP 0\.([0-8]|9[0-8]|99[a-g])", string:banner)
)
{
  security_hole(port);
  exit(0);
}


# Ferdy Riphagen pointed out that while the banne can be tweaked, the
# help command can not be.
if (thorough_tests)
{
  soc = open_sock_tcp(port);
  if (soc) {
    ftp_send_cmd(socket:soc, cmd:"HELP");
    res = recv(socket:soc, length:1024);
    ftp_close(socket:soc);

    if (
      res && 
      egrep(pattern:"CesarFTP server 0\.([0-8]|9[0-8]|99[a-g])", string:res)
    ) security_hole(port);
  }
}
exit(0);

#
# The following code freezes the GUI, but does not
# crash the FTP daemon
# 
# send(socket:soc, data:'USER !@#$%^&*()_\r\n');
# r = ftp_recv_line(socket:soc);
# display(r);
# send(socket:soc, data:'USER ' + crap(256) + '\r\n');
# r = ftp_recv_line(socket:soc);
# display(r);

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

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

Go back to menu.

How to Run


Here is how to run the CesarFTP Multiple Vulnerabilities (OF, File Access, more) 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 CesarFTP Multiple Vulnerabilities (OF, File Access, more) plugin ID 11755.
  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 cesarftp_overflows.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 11112 - FTP Server Traversal Arbitrary File Access

Version


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

Go back to menu.