Rapid7 Vulnerability & Exploit Database

PHP apache_request_headers Function Buffer Overflow

Back to Search

PHP apache_request_headers Function Buffer Overflow

Disclosed
05/08/2012
Created
05/30/2018

Description

This module exploits a stack based buffer overflow in the CGI version of PHP 5.4.x before 5.4.3. The vulnerability is due to the insecure handling of the HTTP headers. This module has been tested against the thread safe version of PHP 5.4.2, from "windows.php.net", running with Apache 2.2.22 from "apachelounge.com".

Author(s)

  • Vincent Danen
  • juan vazquez <juan.vazquez@metasploit.com>

Platform

Windows

Development

References

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/php_apache_request_headers_bof
msf exploit(php_apache_request_headers_bof) > show targets
    ...targets...
msf exploit(php_apache_request_headers_bof) > set TARGET < target-id >
msf exploit(php_apache_request_headers_bof) > show options
    ...show and set options...
msf exploit(php_apache_request_headers_bof) > 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

;