Description
Buffer overflow in the apache_request_headers function in sapi/cgi/cgi_main.c in PHP 5.4.x before 5.4.3 allows remote attackers to cause a denial of service (application crash) via a long string in the header of an HTTP request.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.
Metasploit 1 module
-
PHP apache_request_headers Function Buffer Overflow
exploit/windows/http/php_apache_request_headers_bof
Exploit-DB 1
- PHP 5.4.3 - apache_request_headers Function Buffer Overflow (Metasploit) EDB-19231 · remote · Jun 17, 2012 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://bugs.php.net/bug.php?id=61807
- php-apacherequestheaders-bo(75545) vdb-entry
- 49014 third-party-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=820000
- http://www.php.net/archive/2012.php#id2012-05-08-1
- 53455 vdb-entry
- SSRT100992 vendor-advisory
- http://www.php.net/ChangeLog-5.php#5.4.3