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.
Platforms Affected:
- Apache, HTTP Server 1.3.28 - 1.3.36
- Apache, HTTP Server 2.0.46 - 2.0.58
- Apache, HTTP Server 2.2.0 - 2.2.2
- Apple, Mac OS X 10.4.11
- 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 prior to 2.1.7
- IBM, HTTP Server 6.x on Windows
- IBM, WebSphere Application Server 6.1.0
- Mandriva, Corporate Server 3.0
- Mandriva, Corporate Server 3.0 X86_64
- Mandriva, Linux 2006 X86_64
- Mandriva, Linux 2006
- Mandriva, Multi Network Firewall 2.0
- OpenPKG, OpenPKG 2-STABLE
- OpenPKG, OpenPKG 2.5
- OpenPKG, OpenPKG CURRENT
- Sun, Solaris 10 x86
- Sun, Solaris 10 SPARC
- SuSE, SLE SDK 10
- 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
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:
Apply the Security Update 2008-002, 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.
Consequences:
Gain Access
References:
- Apache HTTP Server Project Web site, Apache HTTP Server 2.0.59 Released at http://www.apache.org/dist/httpd/Announcement2.0.html.
- Apache HTTP Server Project Web site, Apache HTTP Server 1.3.37 Released at http://www.apache.org/dist/httpd/Announcement1.3.html.
- Apache HTTP Server Project Web site, Apache HTTP Server 2.2.3 Released at http://www.apache.org/dist/httpd/Announcement2.2.html.
- Apache Web site, Welcome! - The Apache HTTP Server Project at http://httpd.apache.org/.
- Apple Web site, About Security Update 2008-002 at http://docs.info.apple.com/article.html?artnum=307562.
- BugTraq Mailing List, Sun Aug 20 2006 - 10:06:02 CDT, POC & exploit for Apache mod_rewrite off-by-one at http://archives.neohapsis.com/archives/bugtraq/2006-08/0398.html.
- 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 at http://archives.neohapsis.com/archives/fulldisclosure/2006-07/0674.html.
- 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 at http://archives.neohapsis.com/archives/fulldisclosure/2006-07/0670.html.
- HPSBMA02250 SSRT061275 rev.1 , HP System Management Homepage (SMH) for Linux and Windows, Remote Execution of Arbitrary Code and Denial of Service (DoS) at http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01118771&jumpid=reg_R1002_USEN.
- 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 at http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01428449.
- IBM APAR PK29154, CVE-2006-3747 MOD_REWRITE ERROR at http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg1PK29154.
- IBM Support Web site, Fix list for WebSphere Application Server Version 6.1.0 at http://www-1.ibm.com/support/docview.wss?uid=swg27007951.
- Sun Alert ID: 102662, Security Vulnerabilities in the Apache 2.0 Web Server "mod_rewrite" Module at http://sunsolve.sun.com/search/document.do?assetkey=1-26-102662-1.
- 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
- FrSIRT/ADV-2006-3017: Apache mod_rewrite LDAP URI Handling Remote Off-By-One Buffer Overflow Vulnerability
- FrSIRT/ADV-2006-3264: IBM HTTP Server Apache Remote Buffer Overflow and Cross Site Scripting Vulnerabilities
- FrSIRT/ADV-2006-3282: IBM HTTP Server Security Update Fixes Apache mod_rewrite Buffer Overflow Vulnerability
- FrSIRT/ADV-2006-3884: IBM WebSphere Application Server Apache mod_rewrite Overflow Vulnerability
- FrSIRT/ADV-2006-3995: Sun Solaris Security Update Fixes Apache Code Execution and DoS Vulnerabilities
- FrSIRT/ADV-2006-4015: Sun Solaris Security Update Fixes Apache Remote Code Execution Vulnerabilities
- FrSIRT/ADV-2006-4207: IBM Hardware Management Console Multiple Apache2 and OpenSSL Vulnerabilities
- FrSIRT/ADV-2006-4300: HP-UX VirtualVault and Webproxy Apache Code Execution and DoS Vulnerabilities
- FrSIRT/ADV-2006-4868: HP-UX Security Update Fixes Multiple Apache Code Execution and DoS Vulnerabilities
- FrSIRT/ADV-2007-2783: HP System Management Homepage Code Execution and Denial of Service Issues
- FrSIRT/ADV-2008-0924: Apple Mac OS X Command Execution and Security Bypass Issues
- FrSIRT/ADV-2008-1246: HP OpenView Network Node Manager Multiple Remote Vulnerabilities
- 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
- 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
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 (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.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
