Vulnerabilities > CVE-2002-2272 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Apache Http Server and Tomcat

047910
CVSS 7.8 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
COMPLETE
network
low complexity
apache
CWE-119
nessus
exploit available

Summary

Tomcat 4.0 through 4.1.12, using mod_jk 1.2.1 module on Apache 1.3 through 1.3.27, allows remote attackers to cause a denial of service (desynchronized communications) via an HTTP GET request with a Transfer-Encoding chunked field with invalid values.

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.

Exploit-Db

descriptionApache 1.3.x,Tomcat 4.0.x/4.1.x Mod_JK Chunked Encoding Denial Of Service Vulnerability. CVE-2002-2272. Dos exploit for unix platform
idEDB-ID:22068
last seen2016-02-02
modified2002-12-04
published2002-12-04
reporterSapient2003
sourcehttps://www.exploit-db.com/download/22068/
titleApache 1.3.x & Tomcat 4.0.x/4.1.x Mod_JK - Chunked Encoding Denial of Service Vulnerability

Nessus

NASL familyWeb Servers
NASL idMOD_JK_CHUNKED_ENCODING_DOS.NASL
descriptionAccording to the banner, the remote host is using a vulnerable version of the Apache mod_jk module. Such versions have a bug that could allow a remote attacker to use chunked encoding requests to desynchronize Apache and Tomcat, and therefore prevent the remote web server from working properly.
last seen2020-06-01
modified2020-06-02
plugin id11519
published2003-04-04
reporterThis script is Copyright (C) 2003-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/11519
titleApache Tomcat mod_jk Invalid Transfer-Encoding Chunked Field DoS
code
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");

if(description)
{
 script_id(11519);
 script_version("1.22");
 script_cve_id("CVE-2002-2272");
 script_bugtraq_id(6320);
 
 script_name(english:"Apache Tomcat mod_jk Invalid Transfer-Encoding Chunked Field DoS");
 script_summary(english:"Checks for version of mod_jk");

 script_set_attribute(
   attribute:"synopsis",
   value:"The remote web server module has a denial of service vulnerability."
 );
 script_set_attribute( attribute:"description",  value:
"According to the banner, the remote host is using a vulnerable
version of the Apache mod_jk module.  Such versions have a bug that
could allow a remote attacker to use chunked encoding requests to
desynchronize Apache and Tomcat, and therefore prevent the remote web
server from working properly." );
 script_set_attribute(
   attribute:"see_also",
   value:"https://seclists.org/bugtraq/2002/Dec/47"
 );
 script_set_attribute(
   attribute:"solution", 
   value:"Upgrade to mod_jk 1.2.1 or later."
 );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
 script_set_attribute(attribute:"exploit_available", value:"true");
 script_cwe_id(119);
 script_set_attribute(attribute:"plugin_publication_date", value: "2003/04/04");
 script_set_attribute(attribute:"vuln_publication_date", value: "2002/12/04");
 script_cvs_date("Date: 2018/11/15 20:50:25");
 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);
 script_family(english:"Web Servers");

 script_copyright(english:"This script is Copyright (C) 2003-2018 Tenable Network Security, Inc.");

 script_dependencie("http_version.nasl", "find_service1.nasl", "no404.nasl");
 script_require_ports("Services/www", 80);
 exit(0);
}

#
# The script code starts here
#

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

port = get_http_port(default:80);
banner = get_http_banner(port:port);
if(!banner)exit(0);
serv = strstr(banner, "Server:");
 
if(ereg(pattern:".*mod_jk/1\.([0-1]\..*|2\.0)", string:serv))
{
  security_warning(port);
}