|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If you have found a vulnerability, please send to our SecurityAlert Database : secalert()securityreason()com
Also if you have new ( 0-day ) exploit, please send to our ExploitAlert Archive :
exploit()securityreason()com |
|
|
Home SecurityAlert Database |
|
|
Topic : | NPDS <= 5.10 - Multiple SQL injections
|
SecurityAlert : 2670
CVE : CVE-2007-2537
SecurityRisk : Medium (About)
Remote Exploit : Yes
Local Exploit : No
Exploit Available : Yes
Credit : Gu1ll4um3r0m41n
Published : 12.05.2007
Affected Software : | NPDS <= 5.10 |
 Advisory Content : [|Description:|]
Security holes were found in NPDS 5.10.
N°1: Sql Injection in cookies (File Mainfile.php lines 655 to 691).
No check is carried out on nicknames or Id which can allow an attacker
to modify a SQL request so as to obtain data.
N°2: SQL Injection due to a bad use of "X_FORWARDED_FOR" (file Mainfile.php
lines 88 to 110).
NPDS uses the HTTP header "X_FORWARDED_FOR" which normally contains the IP
adress
of a person using a non anonymous proxy. This Ip address is used in a SQL
resquest without appropriate
filtering, and an attacker can define "X_FORWARDED_FOR" insering malicious
SQL code.
[|Exploit:|]
http://www.aeroxteam.fr/exploit-NPDS-5.10.txt
[|Solution:|]
N°1: File mainfile.php, add after line 665:
$cookie[0] = inval($cookie[0);
$cookie[1] = addslashes($cookie[1]);
$cookie[2] = addslashes($cookie[2]);
N°2: Replace fonction "getip" (mainfile.php) by:
function getip() {
return $_SERVER['REMOTE_ADDR'];
}
[|Credits:|]
Gu1ll4um3r0m41n (aeroxteam --[at]-- gmail --[dot]-- com)
for AeroX (AeroXteam.fr)
[|Gr33tz:|]
Gr33tz: Darkfig, Spamm, Math², Barma, NeoMorphS, Snake91, Kad, Nitr0,
BlastKiller, Alkino And everybody from #aerox (at) irc.epiknet (dot) org
[email concealed]
Feedback :
If you have additional information or notice any errors regarding this security advisory, please use contact form or email us at info()securityreason()com.
|
|
|
|