Vulnerabilities > CVE-2003-0218 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Monkey-Project Monkey

047910
CVSS 7.5 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
low complexity
monkey-project
CWE-119
nessus

Summary

Buffer overflow in PostMethod() function for Monkey HTTP Daemon (monkeyd) 0.6.1 and earlier allows remote attackers to execute arbitrary code via a POST request with a large body.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Nessus

NASL familyWeb Servers
NASL idMONKEYWEB_TOO_BIG_POST.NASL
descriptionThe version of Monkey web server that you are running is vulnerable to a buffer overflow on a POST command with too much data. It is possible to make this web server crash or execute arbitrary code.
last seen2020-06-01
modified2020-06-02
plugin id11544
published2003-04-22
reporterThis script is Copyright (C) 2003-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/11544
titleMonkey HTTP Daemon (monkeyd) PostMethod() Function Remote Overflow
code
#
# (C) Tenable Network Security, Inc.
#

# Ref:
# From: "Matthew Murphy" <[email protected]>
# To: "BugTraq" <[email protected]>
# Subject: Monkey HTTPd Remote Buffer Overflow
# Date: Sun, 20 Apr 2003 16:34:03 -0500



include("compat.inc");

if(description)
{
 script_id(11544);
 script_version ("1.19");
 script_cve_id("CVE-2003-0218");
 script_bugtraq_id(7202);
 
 script_name(english: "Monkey HTTP Daemon (monkeyd) PostMethod() Function Remote Overflow");
 
 script_set_attribute(attribute:"synopsis", value:
"Arbitrary code can be run on the remote web server." );
 script_set_attribute(attribute:"description", value:
"The version of Monkey web server that you are running is vulnerable 
to a buffer overflow on a POST command with too much data.
It is possible to make this web server crash or execute arbitrary code." );
 script_set_attribute(attribute:"solution", value:
"Upgrade to Monkey server 0.6.2" );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C");
  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: "2003/04/22");
 script_set_attribute(attribute:"vuln_publication_date", value: "2003/04/23");
 script_cvs_date("Date: 2018/07/14  1:59:37");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();

 script_summary(english: "MonkeyWeb overflow with POST data");
 script_category(ACT_GATHER_INFO);
 script_copyright(english: "This script is Copyright (C) 2003-2018 Tenable Network Security, Inc.");
 script_family(english: "Web Servers");
 script_dependencie("find_service1.nasl", "http_version.nasl");
 # The listening port in the example configuration file is 2001
 # I suspect that some people might leave it unchanged.
 script_require_ports("Services/www",80, 2001);
 exit(0);
}

#
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");

port = get_http_port(default:80); # 2001 ?
if(! get_port_state(port)) exit(0);
banner = get_http_banner(port:port);

if (banner =~ "Server: *Monkey/0\.([0-5]\.|6\.[01])")
    security_hole(port: port);