Apache mod_rewrite off-by-one buffer overflow
| apache-modrewrite-offbyone-bo (28063) |
Description:
The Rewrite module (mod_rewrite) for Apache HTTP Server could allow a remote attacker to execute arbitrary code on the system, caused by an off-by-one buffer overflow in the escape_absolute_uri() LDAP scheme handling function. If RewriteRule is enabled and does not contain a Forbidden(F), Gone(G), or NoEscape(NE) flag, a remote attacker could exploit this vulnerability to execute arbitrary code on the system or cause the server to crash.
*CVSS:
| Base Score: | 8 |
| Access Vector: | Remote |
| Access Complexity: | High |
| Authentication: | Not Required |
| Confidentiality Impact: | Complete |
| Integrity Impact: | Complete |
| Availability Impact: | Complete |
| Temporal Score: | 6.6 |
| Exploitability: | Functional |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Gain Access
Remedy:
For Apache 2.2.x:
Upgrade to the latest version of Apache (2.2.3 or later), available from the Apache Web site. See References.
For Apache 1.x:
Upgrade to the latest version of Apache (1.3.37 or later), available from the Apache Web site. See References.
For Apache 2.0.x:
Upgrade to the latest version of Apache (2.2.0.59 or later), available from the Apache Web site. See References.
For Gentoo Linux:
Refer to Gentoo Linux Security Announcement GLSA 2006-08-01 for patch, upgrade, or suggested workaround information. See References.
For Debian GNU/Linux:
Refer to DSA-1132-1 or DSA-1131-1 for patch, upgrade, or suggested workaround information. See References.
For OpenPKG:
Refer to OpenPKG Security Advisory OpenPKG-SA-2006.014 for patch, upgrade, or suggested workaround information. See References.
For Sun Solaris:
Refer to Sun Alert ID: 102662 for patch, upgrade, or suggested workaround information. See References.
For WebSphere Application Server:
Refer to IBM Support & downloads for patch, upgrade, or suggested workaround information. See References.
For SUSE Linux:
Refer to SUSE-SA:2006:043 for patch, upgrade, or suggested workaround information. See References.
For HP System Management Homepage:
Refer to HPSBMA02250 SSRT061275 rev.1 for patch, upgrade, or suggested workaround information. See References.
For Mac OS X 10.4.11, Mac OS X 10.5.2, Mac OS X Server 10.5.2:
Apply Security Update 2008-002, available from the Apple Web site. See References.
For Mac OS X Server 10.4.11:
Apply Security Update 2008-003, available from the Apple Web site. See References.
For HP OpenView Network Node Manager:
Refer to HPSBMA02328 SSRT071293 rev.1 for patch information. See References.
For other distributions:
Apply the appropriate update for your system. See References.
References:
- Apache HTTP Server Project Web site: Apache HTTP Server 2.0.59 Released.
- Apache HTTP Server Project Web site: Apache HTTP Server 1.3.37 Released.
- Apache HTTP Server Project Web site: Apache HTTP Server 2.2.3 Released.
- Apache Web site: Welcome! - The Apache HTTP Server Project.
- Apple Web site: About the security content of Security Update 2008-003 / Mac OS X 10.5.3.
- Apple Web site: About Security Update 2008-002.
- BugTraq Mailing List, Sun Aug 20 2006 - 10:06:02 CDT: POC & exploit for Apache mod_rewrite off-by-one.
- Full-Disclosure Mailing List, Fri Jul 28 2006 - 09:44:41 CDT: [Announcement] Apache HTTP Server 2.2.3 (2.0.59, 1.3.37) Released.
- Full-Disclosure Mailing List, Fri Jul 28 2006 - 10:01:25 CDT: Apache 1.3.29/2.X mod_rewrite Buffer Overflow Vulnerability CVE-2006-3747.
- HPSBMA02250 SSRT061275 rev.1 : HP System Management Homepage (SMH) for Linux and Windows, Remote Execution of Arbitrary Code and Denial of Service (DoS).
- HPSBMA02328 SSRT071293 rev.1: HP OpenView Network Node Manager (OV NNM) Running Apache, Remote Cross Site Scripting (XSS), Denial of Service (DoS), Execute Arbitrary Code.
- IBM APAR PK29154: CVE-2006-3747 MOD_REWRITE ERROR.
- IBM Support Web site: Fix list for WebSphere Application Server Version 6.1.0.
- IBM Systems Support Web site: Support for HMC.
- Sun Alert ID: 102662: Security Vulnerabilities in the Apache 2.0 Web Server "mod_rewrite" Module.
- ASA-2006-241: HP-UX VirtualVault Vulnerabilities
- ASA-2006-261: HP-UX Apache Remote Execution of Arbitrary Code Denial of Service (DoS) and Unauthorized Access (HPSBUX02145)
- BID-19204: Apache Mod_Rewrite Off-By-One Buffer Overflow Vulnerability
- 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.
- DSA-1131: apache -- buffer overflow
- DSA-1132: apache2 -- buffer overflow
- GLSA-200608-01: Apache: Off-by-one flaw in mod_rewrite
- MDKSA-2006:133: Updated apache packages fix mod_rewrite vulnerability
- OpenPKG-SA-2006.015: Apache mod_rewrite
- OSVDB ID: 27588: Apache HTTP Server mod_rewrite LDAP Protocol URL Handling Overflow
- SA21197: Apache mod_rewrite Off-By-One Buffer Overflow Vulnerability
- SA21478: IBM HTTP Server Two Vulnerabilities
- SA21509: IBM HTTP Server Apache mod_rewrite Vulnerability
- SA22262: IBM WebSphere Application Server Apache mod_rewrite Vulnerability
- SA22388: Sun Solaris Apache "mod_rewrite" and "mod_imap" Vulnerabilities
- SA22523: IBM HMC Apache2 / OpenSSL Vulnerabilities
- SA23028: IBM WebSphere Application Server Multiple Vulnerabilities
- SA26329: HP System Management Homepage Apache and OpenSSL Vulnerabilities
- SA29420: Mac OS X Security Update Fixes Multiple Vulnerabilities
- SA29849: HP OpenView Network Node Manager Multiple Vulnerabilities
- SA30430: Apple Mac OS X Security Update Fixes Multiple Vulnerabilities
- SECTRACK ID: 1016601: Apache mod_rewrite Off-by-one Error Lets Remote Users Execute Arbitrary Code
- SUSE-SA:2006:043: ApacheApache2 mod_rewrite security problems
- US-CERT VU#395412: Apache mod_rewrite contains off-by-one error in ldap scheme handling
- USN-328-1: Apache vulnerability
- VUPEN/ADV-2006-3017: Apache mod_rewrite LDAP URI Handling Remote Off-By-One Buffer Overflow Vulnerability
- VUPEN/ADV-2006-3264: IBM HTTP Server Apache Remote Buffer Overflow and Cross Site Scripting Vulnerabilities
- VUPEN/ADV-2006-3282: IBM HTTP Server Security Update Fixes Apache mod_rewrite Buffer Overflow Vulnerability
- VUPEN/ADV-2006-3884: IBM WebSphere Application Server Apache mod_rewrite Overflow Vulnerability
- VUPEN/ADV-2006-3995: Sun Solaris Security Update Fixes Apache Code Execution and DoS Vulnerabilities
- VUPEN/ADV-2006-4015: Sun Solaris Security Update Fixes Apache Remote Code Execution Vulnerabilities
- VUPEN/ADV-2006-4207: IBM Hardware Management Console Multiple Apache2 and OpenSSL Vulnerabilities
- VUPEN/ADV-2006-4300: HP-UX VirtualVault and Webproxy Apache Code Execution and DoS Vulnerabilities
- VUPEN/ADV-2006-4868: HP-UX Security Update Fixes Multiple Apache Code Execution and DoS Vulnerabilities
- VUPEN/ADV-2007-2783: HP System Management Homepage Code Execution and Denial of Service Issues
- VUPEN/ADV-2008-0924: Apple Mac OS X Command Execution and Security Bypass Issues
- VUPEN/ADV-2008-1246: HP OpenView Network Node Manager Multiple Remote Vulnerabilities
- VUPEN/ADV-2008-1697: Apple Mac OS X Command Execution and Security Bypass Issues
Platforms Affected:
- Apache HTTP Server 1.3.28
- Apache HTTP Server 1.3.29
- Apache HTTP Server 1.3.3
- Apache HTTP Server 1.3.30
- Apache HTTP Server 1.3.31
- Apache HTTP Server 1.3.32
- Apache HTTP Server 1.3.33
- Apache HTTP Server 1.3.4
- Apache HTTP Server 1.3.5
- Apache HTTP Server 1.3.6
- Apache HTTP Server 1.3.7
- Apache HTTP Server 1.3.8
- Apache HTTP Server 1.3.9
- Apache HTTP Server 2.0.46
- Apache HTTP Server 2.0.47
- Apache HTTP Server 2.0.48
- Apache HTTP Server 2.0.49
- Apache HTTP Server 2.0.50
- Apache HTTP Server 2.0.51
- Apache HTTP Server 2.0.52
- Apache HTTP Server 2.0.53
- Apache HTTP Server 2.0.54
- Apache HTTP Server 2.0.55
- Apache HTTP Server 2.0.56
- Apache HTTP Server 2.0.57
- Apache HTTP Server 2.0.58
- Apple Mac OS X 10.4.11
- Apple Mac OS X 10.5.2
- Apple Mac OS X Server 10.4.11
- Apple Mac OS X Server 10.5.2
- Canonical Ubuntu 5.04
- Canonical Ubuntu 5.10
- Canonical Ubuntu 6.06 LTS
- Debian Debian Linux 3.1
- Gentoo Linux
- HP OpenView Network Node Manager 6.41
- HP OpenView Network Node Manager 7.01
- HP OpenView Network Node Manager 7.51
- HP System Management Homepage 2.1
- HP System Management Homepage 2.1.1
- HP System Management Homepage 2.1.2
- HP System Management Homepage 2.1.3
- HP System Management Homepage 2.1.4
- HP System Management Homepage 2.1.5
- HP System Management Homepage 2.1.6
- IBM HTTP Server 6.0
- IBM HTTP Server 6.1
- IBM WebSphere Application Server 6.1.0
- MandrakeSoft Mandrake Linux 2006 X86_64
- MandrakeSoft Mandrake Linux 2006
- MandrakeSoft Mandrake Linux Corporate Server 3.0
- MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft Mandrake Multi Network Firewall 2.0
- Novell SLE SDK 10
- OpenPKG OpenPKG 2-STABLE
- OpenPKG OpenPKG 2.5
- OpenPKG OpenPKG CURRENT
- Sun Solaris 10 SPARC
- Sun Solaris 10 x86
- SUSE SuSE Linux 10.0
- SUSE SuSE Linux 10.1
- SUSE SuSE Linux 9.2
- SUSE SuSE Linux 9.3
- SuSE SuSE SLES 10
- SuSE SuSE SLES 9
Reported:
Jul 28, 2006
The information within this database may change without notice. 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. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
The information within this database may change without notice. 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. In no event shall IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
