|
|||||||||||
|
[waraxe-2007-SA#058] - Critical Sql Injection in NukeSentinel 2.5.12
From: <come2waraxe(at)yahoo.com>
Date: Thu Sep 27 2007 - 11:38:08 EDT [waraxe-2007-SA#058] - Critical Sql Injection in NukeSentinel 2.5.12
Author: Janek Vind "waraxe"
Target software description: Developer: http://www.nukescripts.net NukeSentinel is anti-hacking sofware, used as additional security layer around well-known-for-security-holes-as-swiss-cheese phpnuke CMS. Vulnerabilities: Critical Sql Injection in "includes/nukesentinel.php" NukeSentinel 2.5.12 is latest update with multiple security holes pathed, still there are possibilities to conduct sql injection attacks and compromise underlying website. Let's look at script "includes/nukesentinel.php" source code: ------------>[source code]<------------
function write_ban($banip, $htip, $blocker_row) {
global $ab_config, $nuke_config, $db, $prefix, $user_prefix,
$admin, $nsnst_const;
$abadmin = base64_decode($_COOKIE['admin']);
$abadmin = explode(":", $abadmin);
$a_aid = "$abadmin[0]";
} $admin_row = abget_admin($a_aid); ------------>[/source code]<----------- and next is presented "abget_admin()" source code: ------------>[source code]<------------
function abget_admin($author){
------------>[/source code]<-----------
As we can witness, incoming "$_COOKIE['admin']" variable is used in
base64 decoding and produced string is not sanitized at all before using
it in sql query. Result is classical sql injection case, which can be
exploited as blind sql injection.
//-----> See ya soon and have a nice day ;) <-----// How to fix: Waiting for new NukeSentinel version :)) Greetings:
Greets to ToXiC, LINUX, y3dips, Sm0ke, Heintz, slimjim100, Chb
and anyone else who know me!
Contact:
come2waraxe@yahoo.com
Homepage: http://www.waraxe.us/ Shameless advertise: User Manuals - http://user-manuals.waraxe.us/ Chemistry Books - http://chemistry.oldreadings.com/
This archive was generated by hypermail 2.1.8 : Sun Oct 28 2007 - 06:18:17 EDT |
||||||||||
|
|||||||||||