the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register
Vulnerability Feeds & WidgetsNew  

Vulnerability Details : CVE-2006-3747

Off-by-one error in the ldap scheme handling in the Rewrite module (mod_rewrite) in Apache 1.3 from 1.3.28, 2.0.46 and other versions before 2.0.59, and 2.2, when RewriteEngine is enabled, allows remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via crafted URLs that are not properly handled using certain rewrite rules.
Publish Date : 2006-07-28 Last Update Date : 2017-07-19
Search Twitter   Search YouTube   Search Google

- CVSS Scores & Vulnerability Types

CVSS Score
Confidentiality Impact Complete (There is total information disclosure, resulting in all system files being revealed.)
Integrity Impact Complete (There is a total compromise of system integrity. There is a complete loss of system protection, resulting in the entire system being compromised.)
Availability Impact Complete (There is a total shutdown of the affected resource. The attacker can render the resource completely unavailable.)
Access Complexity High (Specialized access conditions exist. It is hard to exploit and several special conditions must be satisfied to exploit)
Authentication Not required (Authentication is not required to exploit the vulnerability.)
Gained Access Admin
Vulnerability Type(s) Denial Of ServiceExecute Code
CWE ID 189

- Vendor Statements

Fixed in Apache HTTP Server 2.2.3, 2.0.59, and 1.3.37:
Source: Apache
The ability to exploit this issue is dependent on the stack layout for a particular compiled version of mod_rewrite. If the compiler has added padding to the stack immediately after the buffer being overwritten, this issue can not be exploited, and Apache httpd will continue operating normally. The Red Hat Security Response Team analyzed Red Hat Enterprise Linux 3 and Red Hat Enterprise Linux 4 binaries for all architectures as shipped by Red Hat and determined that these versions cannot be exploited. This issue does not affect the version of Apache httpd as supplied with Red Hat Enterprise Linux 2.1
Source: Redhat

- Related OVAL Definitions

Title Definition Id Class Family
CVE-2006-3747 unix
mod_rewrite off-by-one error oval:org.apache.httpd:def:20063747
OVAL (Open Vulnerability and Assessment Language) definitions define exactly what should be done to verify a vulnerability or a missing patch. Check out the OVAL definitions if you want to learn what you should do to verify a vulnerability.

- Products Affected By CVE-2006-3747

# Product Type Vendor Product Version Update Edition Language
1 Application Apache Http Server 1.3.3 Version Details Vulnerabilities
2 Application Apache Http Server 1.3.4 Version Details Vulnerabilities
3 Application Apache Http Server 1.3.5 Version Details Vulnerabilities
4 Application Apache Http Server 1.3.6 Version Details Vulnerabilities
5 Application Apache Http Server 1.3.7 DEV Version Details Vulnerabilities
6 Application Apache Http Server 1.3.7 Version Details Vulnerabilities
7 Application Apache Http Server 1.3.8 Version Details Vulnerabilities
8 Application Apache Http Server 1.3.9 Version Details Vulnerabilities
9 Application Apache Http Server 1.3.28 Version Details Vulnerabilities
10 Application Apache Http Server 1.3.29 Version Details Vulnerabilities
11 Application Apache Http Server 1.3.30 Version Details Vulnerabilities
12 Application Apache Http Server 1.3.31 Version Details Vulnerabilities
13 Application Apache Http Server 1.3.32 Version Details Vulnerabilities
14 Application Apache Http Server 1.3.33 Version Details Vulnerabilities
15 Application Apache Http Server 2.0.46 Version Details Vulnerabilities
16 Application Apache Http Server 2.0.47 Version Details Vulnerabilities
17 Application Apache Http Server 2.0.48 Version Details Vulnerabilities
18 Application Apache Http Server 2.0.49 Version Details Vulnerabilities
19 Application Apache Http Server 2.0.50 Version Details Vulnerabilities
20 Application Apache Http Server 2.0.51 Version Details Vulnerabilities
21 Application Apache Http Server 2.0.52 Version Details Vulnerabilities
22 Application Apache Http Server 2.0.53 Version Details Vulnerabilities
23 Application Apache Http Server 2.0.54 Version Details Vulnerabilities
24 Application Apache Http Server 2.0.55 Version Details Vulnerabilities
25 Application Apache Http Server 2.0.56 Version Details Vulnerabilities
26 Application Apache Http Server 2.0.57 Version Details Vulnerabilities
27 Application Apache Http Server 2.0.58 Version Details Vulnerabilities
28 OS Ubuntu Ubuntu Linux 5.04 Version Details Vulnerabilities
29 OS Ubuntu Ubuntu Linux 5.10 Version Details Vulnerabilities
30 OS Ubuntu Ubuntu Linux 6.06 Lts Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
Apache Http Server 27
Ubuntu Ubuntu Linux 3

- References For CVE-2006-3747
VUPEN ADV-2008-1697
XF apache-modrewrite-offbyone-bo(28063) CONFIRM
VUPEN ADV-2008-1246
VUPEN ADV-2008-0924
VUPEN ADV-2007-2783
VUPEN ADV-2006-4868
VUPEN ADV-2006-4300
VUPEN ADV-2006-4207
VUPEN ADV-2006-4015
VUPEN ADV-2006-3995
VUPEN ADV-2006-3884
VUPEN ADV-2006-3282
VUPEN ADV-2006-3264
VUPEN ADV-2006-3017
BID 19204 Apache Mod_Rewrite Off-By-One Buffer Overflow Vulnerability Release Date:2009-03-10
CERT TA08-150A
HP SSRT061202
BUGTRAQ 20060820 POC & exploit for Apache mod_rewrite off-by-one
HP SSRT061265
OPENPKG OpenPKG-SA-2006.015
BUGTRAQ 20060728 [Announcement] Apache HTTP Server 2.2.3 (2.0.59, 1.3.37) Released
BUGTRAQ 20060728 Apache mod_rewrite Buffer Overflow Vulnerability
BUGTRAQ 20060728 rPSA-2006-0139-1 httpd mod_ssl
CERT-VN VU#395412
SECTRACK 1016601
FULLDISC 20060728 [Announcement] Apache HTTP Server 2.2.3 (2.0.59, 1.3.37) Released CONFIRM
GENTOO GLSA-200608-01
TRUSTIX 2006-0044
FULLDISC 20060728 Apache 1.3.29/2.X mod_rewrite Buffer Overflow Vulnerability CVE-2006-3747
APPLE APPLE-SA-2008-03-18
APPLE APPLE-SA-2008-05-28
HP SSRT061275

- Metasploit Modules Related To CVE-2006-3747

Apache Module mod_rewrite LDAP Protocol Buffer Overflow
This module exploits the mod_rewrite LDAP protocol scheme handling flaw discovered by Mark Dowd, which produces an off-by-one overflow. Apache versions 1.3.29-36, 2.0.47-58, and 2.2.1-2 are vulnerable. This module requires REWRITEPATH to be set accurately. In addition, the target must have 'RewriteEngine on' configured, with a specific 'RewriteRule' condition enabled to allow for exploitation. The flaw affects multiple platforms, however this module currently only supports Windows based installations.
Module type : exploit Rank : great Platforms : Windows

CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritative source of OVAL content is MITRE's OVAL web site.
Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.