header-logo
Suggest Exploit
vendor:
N/A
by:
Stefan Esser
7,5
CVSS
HIGH
Code Execution
94
CWE
Product Name: N/A
Affected Version From: PHP 5.3.9
Affected Version To: PHP 5.4.0RC6
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Windows, Linux, Mac
2012

PHP 5.4.0RC6 *64 bit* Code Execution Vulnerability

This script generates a POST header that makes PHP 5.4.0RC6 *64 bit* try to execute code at 0x1111111111111111. PHP 5.3.9 requires you to know the address of a writable address filled with NULL. 32bit requires you to create a fake 32bit Hashtable instead of a 64bit one. Because this vulnerability also allows leaking memory addresses ASLR can be 'semi'-defeated. This means around 4000 tries = 4000 requests = 4000 crashes are enough to bruteforce code addresses to execute arbitrary code despite ASLR/NX better exploit might be possible after deeper research + heap massage. This specific attack only works if there is no Suhosin-Patch -> RHEL, CentOS.

Mitigation:

Install Suhosin-Patch on RHEL, CentOS.
Source

Exploit-DB raw data: