Vulnerabilities > CVE-2007-6258 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in multiple products

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
apache
f5
CWE-119
nessus
exploit available

Summary

Multiple stack-based buffer overflows in the legacy mod_jk2 2.0.3-DEV and earlier Apache module allow remote attackers to execute arbitrary code via a long (1) Host header, or (2) Hostname within a Host header.

Vulnerable Configurations

Part Description Count
Application
Apache
4
Application
F5
1

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

  • idEDB-ID:5330
  • idEDB-ID:5386

Nessus

NASL familyWeb Servers
NASL idMOD_JK2_BUFFER_OVERFLOW_VULNERABILITIES.NASL
descriptionThe remote host is running Apache web server with mod_jk2, a connector that connects a web server such as Apache web server. According to its banner, the version of mod_jk2 installed on the remote host is affected by multiple buffer overflow vulnerabilities. An attacker may be able to exploit these vulnerabilities to cause a denial of service condition or execute arbitrary code subject to the privileges of the user running the Apache process.
last seen2020-06-01
modified2020-06-02
plugin id31786
published2008-04-04
reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/31786
titleApache mod_jk2 Host Header Multiple Fields Remote Overflow
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if(description)
{
 script_id(31786);
 script_version("1.18");
 script_cve_id("CVE-2007-6258");
 script_bugtraq_id(27752);
  script_xref(name:"EDB-ID", value:"5330");
 
 script_name(english:"Apache mod_jk2 Host Header Multiple Fields Remote Overflow");
 script_summary(english:"Checks version of mod_jk2");
 
 script_set_attribute(attribute:"synopsis", value:
"The remote host is affected by multiple buffer overflow
vulnerabilities." );
 script_set_attribute(attribute:"description", value:
"The remote host is running Apache web server with mod_jk2, a connector
that connects a web server such as Apache web server. 

According to its banner, the version of mod_jk2 installed on the
remote host is affected by multiple buffer overflow vulnerabilities. 
An attacker may be able to exploit these vulnerabilities to cause a
denial of service condition or execute arbitrary code subject to the
privileges of the user running the Apache process." );
 script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/487983" );
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?1bad43ab" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to mod_jk2 2.0.4 or higher." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
 script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L");
 script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/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: "2008/04/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) 2008-2018 Tenable Network Security, Inc.");

 script_dependencies("apache_http_version.nasl");
 script_require_keys("installed_sw/Apache");
 script_require_ports("Services/www", 80);
 exit(0);
}

#
# The script code starts here
#
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("audit.inc");
include("install_func.inc");

get_install_count(app_name:"Apache", exit_if_zero:TRUE);
port = get_http_port(default:80);
install = get_single_install(app_name:"Apache", port:port, exit_if_unknown_ver:TRUE);

source = get_kb_item_or_exit('www/apache/'+port+'/source', exit_code:1);
backported = get_kb_item_or_exit('www/apache/'+port+'/backported', exit_code:1);
if (report_paranoia < 2 && backported) audit(AUDIT_BACKPORT_SERVICE, port, "Apache");

ver = ereg_replace(pattern:".*mod_jk2/([0-9]+\.[^ ]+).*$", replace:"\1", string:install["modules"]);
if(ver && preg(pattern:"^([0-1]\.|2\.0($|\.[0-3]($|[^0-9])))", string:ver))
{
  report = string(
    "\n",
    "mod_jk2 version ", ver, " appears to be running on the remote host\n",
    "based on the following Server response header :\n",
    "\n",
    "  ", source, "\n"
  );
  security_report_v4(severity:SECURITY_HOLE, port:port, extra:report);
  exit(0);
}

audit(AUDIT_LISTEN_NOT_VULN, "Apache", port, install["version"]);