Rapid7 Vulnerability & Exploit Database

Apache Module mod_rewrite LDAP Protocol Buffer Overflow

Back to Search

Apache Module mod_rewrite LDAP Protocol Buffer Overflow

Disclosed
07/28/2006
Created
05/30/2018

Description

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.

Author(s)

  • aushack <patrick@osisecurity.com.au>

Platform

Windows

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/windows/http/apache_mod_rewrite_ldap
msf exploit(apache_mod_rewrite_ldap) > show targets
    ...targets...
msf exploit(apache_mod_rewrite_ldap) > set TARGET < target-id >
msf exploit(apache_mod_rewrite_ldap) > show options
    ...show and set options...
msf exploit(apache_mod_rewrite_ldap) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;