header-logo
Suggest Exploit
vendor:
by:
Stefan Esser
7.5
CVSS
HIGH
Code Execution
CWE
Product Name:
Affected Version From: PHP versions before 5.2.0
Affected Version To:
Patch Exists: NO
Related CWE:
CPE:
Metasploit:
Other Scripts:
Platforms Tested: Linux
2007

PHP ext/shmop Code Execution Exploit

This exploit allows an attacker to execute arbitrary code on a target system by leveraging a vulnerability in the PHP ext/shmop extension. It works by injecting a bindshell shellcode into the Apache memory and then scanning for it to execute. This exploit only works with PHP versions before 5.2.0 and on Linux x86 systems.

Mitigation:

To mitigate this vulnerability, it is recommended to update to a version of PHP that is later than 5.2.0. Additionally, ensure that the ext/shmop and ext/gd extensions are not loaded if they are not required for your application.
Source

Exploit-DB raw data: