WarFTPd CWD/MKD Command Overflow - Nessus

Medium   Plugin ID: 11205

This page contains detailed information about the WarFTPd CWD/MKD 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: 11205
Name: WarFTPd CWD/MKD Command Overflow
Filename: DDI_warftpd_cwd_overflow.nasl
Vulnerability Published: 2000-02-03
This Plugin Published: 2003-01-22
Last Modification Time: 2018-11-15
Plugin Version: 1.17
Plugin Type: remote
Plugin Family: FTP
Dependencies: ftpserver_detect_type_nd_version.nasl

Vulnerability Information


Severity: Medium
Vulnerability Published: 2000-02-03
Patch Published: N/A
CVE [?]: CVE-2000-0131
CPE [?]: N/A

Synopsis

The remote FTP service is prone to a buffer overflow attack.

Description

The version of the War FTP Daemon running on this host is vulnerable to a buffer overflow attack. This is due to improper bounds checking within the code that handles both the CWD and MKD commands. By exploiting this vulnerability, it is possible to crash the server.

Solution

Upgrade to WarFTPd version 1.67-4 or later.

Public Exploits


Target Network Port(s): 21
Target Asset(s): Services/ftp
Exploit Available: True (GitHub)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the WarFTPd CWD/MKD Command Overflow vulnerability:

  1. GitHub: https://github.com/iricartb/buffer-overflow-warftp-1.65
    [CVE-2000-0131]

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:S/C:N/I:N/A:P/E:POC/RL:OF/RC:C
CVSS Base Score:4.0 (Medium)
Impact Subscore:2.9
Exploitability Subscore:8.0
CVSS Temporal Score:3.1 (Low)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:3.1 (Low)

Go back to menu.

Plugin Source


This is the DDI_warftpd_cwd_overflow.nasl nessus plugin source code. This script is Copyright (C) 2003-2011 Digital Defense, Inc.

#
# This script was written by Erik Tayler <[email protected]>
#
# See the Nessus Scripts License for details
#
# Changes by Tenable:
# - Revised plugin title (1/22/2009)
# - Revised plugin title (2/04/2009)

include("compat.inc");

if(description)
{
	script_id(11205);
	script_version("1.17");

	script_cve_id("CVE-2000-0131");
	script_bugtraq_id(966);
	
	script_name(english:"WarFTPd CWD/MKD Command Overflow");
	script_summary(english:"War FTP Daemon CWD/MKD Buffer Overflow");

	script_set_attribute(attribute:"synopsis", value:
"The remote FTP service is prone to a buffer overflow attack.");
	script_set_attribute(attribute:"description", value:
"The version of the War FTP Daemon running on this host is vulnerable
to a buffer overflow attack.  This is due to improper bounds checking
within the code that handles both the CWD and MKD commands.  By
exploiting this vulnerability, it is possible to crash the server.");
	script_set_attribute(attribute:"see_also", value:
"https://seclists.org/bugtraq/2000/Feb/44");
	script_set_attribute(attribute:"see_also", value:
"https://seclists.org/bugtraq/2000/Feb/71");
	script_set_attribute(attribute:"solution", value:
"Upgrade to WarFTPd version 1.67-4 or later.");
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:N/I:N/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:POC/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:"plugin_publication_date", value:
"2003/01/22");
 script_set_attribute(attribute:"vuln_publication_date", value: "2000/02/03");
 script_cvs_date("Date: 2018/11/15 20:50:22");
	script_set_attribute(attribute:"plugin_type", value:"remote");
	script_end_attributes();

	script_category(ACT_ATTACK);
	script_copyright(english:"This script is Copyright (C) 2003-2011 Digital Defense, Inc.");
	script_family(english:"FTP");
	script_require_ports("Services/ftp", 21);
	script_dependencies("ftpserver_detect_type_nd_version.nasl");
	exit(0);
}


include("ftp_func.inc");

port = get_ftp_port(default: 21);

r = get_ftp_banner(port:port);
if (!r) exit(1);
	
	if(("WAR-FTPD 1.66x4" >< r) || ("WAR-FTPD 1.67-03" >< r))
	{
		security_warning(port);
	}

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

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

Go back to menu.

How to Run


Here is how to run the WarFTPd CWD/MKD 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 WarFTPd CWD/MKD Command Overflow plugin ID 11205.
  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 DDI_warftpd_cwd_overflow.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 11000 - MPEi/X Default FTP Accounts
  • 11207 - WarFTPd USER/PASS Command Remote Overflow
  • 10961 - AirConnect Default Password
  • 11202 - Enhydra Multiserver Default Password
  • 10820 - F5 Device Default Support Password
  • 10995 - Sun JavaServer Default Admin Password
  • 10998 - Shiva LanRover Blank Password
  • 10999 - Linksys Router Default Password
  • 11203 - Motorola Vanguard with No Password (telnet check)
  • 11208 - Netscape Enterprise Default Administrative Password
  • 10798 - Symantec pcAnywhere Service Unrestricted Access
  • 10778 - SiteScope Web Service Unpassworded Access
  • 11004 - Ipswitch WhatsUp Gold Default Admin Account
  • 14195 - 4D WebStar Pre-authentication FTP Overflow
  • 15628 - Ability FTP Server Multiple Command Remote Buffer Overflows
  • 24021 - Easy File Sharing FTP Server PASS Command 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 DDI_warftpd_cwd_overflow.nasl version 1.17. For more plugins, visit the Nessus Plugin Library.

Go back to menu.