[NEWS] Apache "mod_rewrite" LDAP URI Handling Remote Off-By-One Buffer Overflow



The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html

- - - - - - - - -



Apache "mod_rewrite" LDAP URI Handling Remote Off-By-One Buffer Overflow
------------------------------------------------------------------------


SUMMARY

A vulnerability has been identified in Apache, which could be exploited by
remote attackers to compromise a vulnerable server or cause a denial of
service. This flaw is due to an off-by-one buffer overflow error in the
"escape_absolute_uri()" function when processing a specially crafted LDAP
URI, which could be exploited by remote attackers to execute arbitrary
commands on a web server configured with certain Rewrite rules (the
attacker must be able to control the initial part of the rewritten URL,
and the rule must not contain a forbidden [F], gone [G], or NoEscape [NE]
flag).

DETAILS

Vulnerable Systems:
* Apache versions 1.3.28 through 1.3.36
* Apache versions 2.0.46 through 2.0.58
* Apache versions 2.2.0 through 2.2.2

Immune Systems:
* Apache versions 1.3.37
* Apache versions 2.0.59
* Apache versions 2.2.2

Off-by-one error in the 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.

CVE Information:
<http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-3747>
CVE-2006-3747

Patch Information:
Patch details can be found at:
<http://svn.apache.org/viewvc?view=rev&revision=426144>
http://svn.apache.org/viewvc?view=rev&revision=426144


ADDITIONAL INFORMATION

The information has been provided by Mark Dowd.
The original article can be found at:
<http://www.apache.org/dist/httpd/Announcement2.0.html>
http://www.apache.org/dist/httpd/Announcement2.0.html



========================================


This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx


====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages

  • [EXPL] Apache Mod_Rewrite Off-by-one Remote Overflow Exploit (win32)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Apache Mod_Rewrite Off-by-one Remote Overflow Exploit ... The Rewrite module for Apache HTTP Server could allow a ... # Vulnerability discovered by Mark Dowd. ...
    (Securiteam)
  • [EXPL] Apache mod_rewrite Off-By-One (Exploit)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... found in mod_rewrite apache module to the bugtraq mailing list. ... raised when mod_rewrite is dealing with an LDAP URL, ... # Vulnerability discovered by Mark Dowd. ...
    (Securiteam)
  • [NEWS] Apache Multiple Injection Vulnerabilities
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Apache Multiple Injection Vulnerabilities ... Apache is the most widely deployed web server in the Internet. ...
    (Securiteam)
  • [UNIX] Apache HTTPd Arbitrary Long HTTP Headers DoS
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The <http://httpd.apache.org/> Apache Software Foundation's HTTP Server ... * Apache web server version 2.0.49, ... It is possible to consume arbitrary amount of memory using a specially ...
    (Securiteam)
  • [UNIX] Apache Local User to Root Escalation
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Apache Local User to Root Escalation ... invoke the TIOCSTI ioctl on the fd corresponding to its ctty, ... a user created CGI script can inject and have executed any input ...
    (Securiteam)