module

PHP apache_request_headers Function Buffer Overflow

Disclosed
May 8, 2012
Created
May 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".

Authors

Vincent Danen
juan vazquez [email protected]

Platform

Windows

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.