vendor:
PHP
by:
rgod
7.5
CVSS
HIGH
Buffer Overflow
119
CWE
Product Name: PHP
Affected Version From: PHP 5.2.1 with PECL phpDOC
Affected Version To: PHP 5.2.1 with PECL phpDOC
Patch Exists: NO
Related CWE:
CPE: a:php:php:5.2.1
Platforms Tested: Windows 2000 SP3
2007
PHP 5.2.1 with PECL phpDOC confirm_phpdoc_compiled() local buffer overflow poc exploit
This is a proof-of-concept exploit for a buffer overflow vulnerability in PHP 5.2.1 with the PECL phpDOC extension. The exploit targets the confirm_phpdoc_compiled() function. It is designed to be launched from the command line interface (CLI) and exploits a stack-based buffer overflow to execute arbitrary code. The exploit overwrites the structured exception handler (SEH) and uses WinExec to launch the Notepad application. The exploit code is provided in the PHP script.
Mitigation:
To mitigate this vulnerability, users should update to a patched version of PHP and the phpDOC extension. It is recommended to regularly update software and extensions to protect against known vulnerabilities.