CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
NONE
Integrity Impact
NONE
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:N/I:N/A:P
EPSS
Percentile
86.6%
The remote FTP server seems to be running oftpd version 0.3.6 or older. There is a bug in this version which may allow an attacker to disable this service remotely by sending a malformed PORT command.
An attacker may exploit this flaw to prevent this system from doing its job.
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if(description)
{
script_id(12125);
script_version ("1.17");
script_cve_id("CVE-2004-0376");
script_bugtraq_id(9980);
script_name(english:"oftpd PORT Command Remote DoS");
script_set_attribute(attribute:"synopsis", value:
"The remote host has an application that is affected by a
denial of service vulnerability." );
script_set_attribute(attribute:"description", value:
"The remote FTP server seems to be running oftpd version
0.3.6 or older. There is a bug in this version which may
allow an attacker to disable this service remotely by
sending a malformed PORT command.
An attacker may exploit this flaw to prevent this system
from doing its job." );
script_set_attribute(attribute:"solution", value:
"Upgrade to oftpd 0.3.7 or newer" );
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
script_set_attribute(attribute:"exploit_available", value:"false");
script_set_attribute(attribute:"plugin_publication_date", value: "2004/04/04");
script_set_attribute(attribute:"vuln_publication_date", value: "2004/03/25");
script_cvs_date("Date: 2018/07/16 14:09:13");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();
script_summary(english:"Determines if the remote oftpd server might be vulnerable to a DoS attack");
script_category(ACT_ATTACK);
script_family(english:"FTP");
script_copyright(english:"This script is Copyright (C) 2004-2018 Tenable Network Security, Inc.");
script_dependencie("ftpserver_detect_type_nd_version.nasl", "ftp_anonymous.nasl");
script_require_keys("ftp/login", "ftp/wuftpd");
script_require_ports("Services/ftp", 21);
exit(0);
}
#
# The script code starts here :
#
include("ftp_func.inc");
login = get_kb_item("ftp/login");
pass = get_kb_item("ftp/password");
port = get_ftp_port(default: 21);
banner = get_ftp_banner(port: port);
if ("Service ready for new user" >!< banner ) exit(0);
if ( ! login ) login = "ftp";
soc = open_sock_tcp(port);
if (! soc) exit(1);
if (! ftp_authenticate(socket:soc, user:login, pass:pass))
exit(1);
# oftpd 0.3.6 and older will happily return the size of
# a directory, whereas 0.3.7 issues an error.
send(socket:soc, data:'TYPE I\r\n');
err = ftp_recv_line(socket:soc);
send(socket:soc, data:'SIZE .\r\n');
err = ftp_recv_line(socket:soc);
if ( egrep(pattern:"^213 [0-9]*", string:err) ) security_warning(port);