4D WebStar Pre-authentication FTP Overflow - Nessus

Critical   Plugin ID: 14195

This page contains detailed information about the 4D WebStar Pre-authentication FTP Overflow Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 14195
Name: 4D WebStar Pre-authentication FTP Overflow
Filename: 4d_webstar_ftp_overflow.nasl
Vulnerability Published: 2004-07-13
This Plugin Published: 2004-08-03
Last Modification Time: 2018-11-15
Plugin Version: 1.19
Plugin Type: remote
Plugin Family: FTP
Dependencies: ftpserver_detect_type_nd_version.nasl, http_version.nasl

Vulnerability Information


Severity: Critical
Vulnerability Published: 2004-07-13
Patch Published: N/A
CVE [?]: CVE-2004-0695
CPE [?]: N/A

Synopsis

The FTP server is affected by a buffer overflow vulnerability.

Description

There is a buffer overflow condition in the remote version of 4D WebStar FTP Server installed on the remote host. An attacker may exploit this flaw to execute arbitrary code on the remote host with the privileges of the FTP server (root).

Solution

Upgrade to 4D WebStar 5.3.3 or later.

Public Exploits


Target Network Port(s): 21, 80
Target Asset(s): Services/ftp, Services/www
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 4D WebStar Pre-authentication FTP Overflow vulnerability:

  1. Metasploit: exploit/osx/ftp/webstar_ftp_user
    [WebSTAR FTP Server USER Overflow]
  2. Exploit-DB: exploits/osx/remote/9928.rb
    [EDB-9928: WebSTAR FTP Server 5.3.2 (OSX) - USER Overflow (Metasploit)]
  3. Exploit-DB: exploits/osx/remote/16872.rb
    [EDB-16872: WebSTAR FTP Server - USER 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:L/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.3 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.3 (High)

Go back to menu.

Plugin Source


This is the 4d_webstar_ftp_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(14195);
 script_cve_id("CVE-2004-0695");
 script_bugtraq_id(10720);
 script_version ("1.19");
 
 script_name(english:"4D WebStar Pre-authentication FTP Overflow");
 
 script_set_attribute(attribute:"synopsis", value:
"The FTP server is affected by a buffer overflow vulnerability." );
 script_set_attribute(attribute:"description", value:
"There is a buffer overflow condition in the remote version of 4D
WebStar FTP Server installed on the remote host.  An attacker may
exploit this flaw to execute arbitrary code on the remote host with
the privileges of the FTP server (root)." );
 script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2004/Jul/130");
 script_set_attribute(attribute:"solution", value:
"Upgrade to 4D WebStar 5.3.3 or later." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/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:'WebSTAR FTP Server USER Overflow');
 script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");


 script_set_attribute(attribute:"plugin_publication_date", value: "2004/08/03");
 script_set_attribute(attribute:"vuln_publication_date", value: "2004/07/13");
 script_cvs_date("Date: 2018/11/15 20:50:22");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();

 
 summary["english"] = "Checks for 4D FTP Server";
 
 script_summary(english:summary["english"]);
 
 script_category(ACT_GATHER_INFO);
 
 script_copyright(english:"This script is Copyright (C) 2004-2018 Tenable Network Security, Inc.");
 family["english"] = "FTP";
 script_family(english:family["english"]);
 script_dependencie("http_version.nasl", "ftpserver_detect_type_nd_version.nasl");
 script_require_ports("Services/www", 80, "Services/ftp", 21);
 exit(0);
}

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


# 4D runs both FTP and WWW on the same host
port = get_http_port(default:80);

banner = get_http_banner(port:port);
if ( ! banner ) exit(0);
# Server: 4D_WebSTAR_S/5.3.3 (MacOS X)
if ( "4D_WebSTAR" >< banner &&
     egrep(pattern:"^Server: 4D_WebSTAR.*/([0-4]\.|5\.([0-2]\.|3\.[0-2][^0-9]))", string:banner) ) 
{
 port = get_ftp_port(default: 21);
 ftpbanner = get_ftp_banner(port:port);
 if (egrep(string:ftpbanner, pattern:"^220 FTP server ready\."))
 { 
  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/4d_webstar_ftp_overflow.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\4d_webstar_ftp_overflow.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/4d_webstar_ftp_overflow.nasl

Go back to menu.

How to Run


Here is how to run the 4D WebStar Pre-authentication FTP 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 4D WebStar Pre-authentication FTP Overflow plugin ID 14195.
  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 4d_webstar_ftp_overflow.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 95655 - Fedora 25 : httpd (2016-260d22944d)
  • 94872 - Fedora 25 : c-ares (2016-e523c37b4d)
  • 105908 - Fedora 27 : check-mk (2017-79b7fd1b4d)
  • 105013 - Fedora 26 : kernel (2017-9ea11e444d) (Dirty COW)
  • 120385 - Fedora 28 : 2:qemu (2018-44f8a7454d) (Spectre)
  • 120497 - Fedora 29 : python-markdown2 (2018-6a8028084d)
  • 120564 - Fedora 29 : krb5 (2018-7db7ccda4d)
  • 120615 - Fedora 28 : drupal8 (2018-906ba26b4d) (Drupalgeddon 2)
  • 124467 - Fedora 30 : 2:qemu (2019-0664c7724d)
  • 126706 - Fedora 29 : expat (2019-139fcda84d)
  • 122795 - Fedora 28 : postgresql-jdbc (2019-1b9e80874d)
  • 147791 - Fedora 33 : mingw-python3 (2021-b76ede8f4d)
  • 74295 - FreeBSD : gnutls -- client-side memory corruption (027af74d-eb56-11e3-9032-000c2980a9f3)
  • 83328 - FreeBSD : libssh -- NULL pointer dereference (0b040e24-f751-11e4-b24d-5453ed2e2b49)
  • 18840 - FreeBSD : awstats -- remote command execution vulnerability (0f5a2b4d-694b-11d9-a9e7-0001020eed82)
  • 91027 - FreeBSD : wordpress -- multiple vulnerabilities (3686917b-164d-11e6-94fa-002590263bf5)
  • 95506 - FreeBSD : xen-kernel -- x86 task switch to VM86 mode mis-handled (523bb0b7-ba4d-11e6-ae1b-002590263bf5)
  • 64288 - FreeBSD : wordpress -- multiple vulnerabilities (559e00b7-6a4d-11e2-b6b0-10bf48230856)
  • 51069 - FreeBSD : chromium -- multiple vulnerabilities (6887828f-0229-11e0-b84d-00262d5ed8ee)
  • 121273 - FreeBSD : joomla3 -- vulnerabilitiesw (6aa398d0-1c4d-11e9-96dd-a4badb296695)
  • 110969 - FreeBSD : zziplib - multiple vulnerabilities (7764b219-8148-11e8-aa4d-000e0cd7b374)
  • 86377 - FreeBSD : chromium -- multiple vulnerabilities (8301c04d-71df-11e5-9fcb-00262d5ed8ee)
  • 66210 - FreeBSD : phpMyAdmin -- Multiple security vulnerabilities (8c8fa44d-ad15-11e2-8cea-6805ca0b3d42)
  • 33905 - FreeBSD : ruby -- DNS spoofing vulnerability (959d384d-6b59-11dd-9d79-001fc61c2a55)
  • 86080 - FreeBSD : libssh2 -- denial of service vulnerability (9770d6ac-614d-11e5-b379-14dae9d210b8)
  • 90235 - FreeBSD : activemq -- Unsafe deserialization (a258604d-f2aa-11e5-b4a9-ac220bdcec59)
  • 144815 - FreeBSD : Gitlab -- multiple vulnerabilities (a2a2b34d-52b4-11eb-87cb-001b217b3468)
  • 91911 - FreeBSD : Python -- HTTP Header Injection in Python urllib (a61374fc-3a4d-11e6-a671-60a44ce6887b)
  • 99325 - FreeBSD : BIND -- multiple vulnerabilities (c6861494-1ffb-11e7-934d-d05099c0ae8c)
  • 96473 - FreeBSD : BIND -- multiple vulnerabilities (d4c7e9a9-d893-11e6-9b4d-d050996490d0)
  • 61388 - FreeBSD : Apache -- Insecure LD_LIBRARY_PATH handling (de2bc01f-dc44-11e1-9f4d-002354ed89bc)
  • 126806 - FreeBSD : jenkins -- multiple vulnerabilities (df3db21d-1a4d-4c78-acf7-4639e5a795e0)
  • 106754 - ProFTPD 1.3.4d / 1.3.5rc3 Denial of Service
  • 58993 - Scrutinizer < 9.0.1 d4d/alarms.php Multiple Parameters SQLi
  • 61598 - Scrutinizer < 9.5.2 d4d/statusFilter.php q Parameter SQL Injection

Version


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

Go back to menu.