Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
February 9, 2010
Menu
 Home
 Logout
 Discussions
 Forums
 Members List
 IRC chat
 Tools
 Base64 coder
 MD5 hash
 CRC32 checksum
 ROT13 coder
 SHA-1 hash
 URL-decoder
 Sql Char Encoder
 Affiliates
 urlaxe services
 y3dips ITsec
 Md5 Cracker
 plain-text.info
 LifeDork
 User Manuals
 AlbumNow
 Content
 Content
 Sections
 FAQ
 Top
 Info
 Feedback
 Recommend Us
 Search
 Journal
 Your Account



User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: Izzy_2o2
New Today: 4
New Yesterday: 6
Overall: 5899

People Online:
Visitors: 129
Members: 4
Total: 133

Online Now:
01: Izzy_2o2 - Your Account
02: Mooka91 - Forums
03: tb14 - Forums
04: vince213333 - Forums
milw0rm
·BigAnt Server <= 2.50 SP6 Local (ZIP File) Buffer Overflow PoC #2
·Joomla com_mytube (user_id) Blind SQL Injection Exploit
·Joomla com_jinc (newsid) Blind SQL Injection Vulnerability
·Snort < 2.8.5 Unified1 Output Denial of Service Exploit
·WX Guest Book 1.1.208 (SQL/XSS) Multiple Remote Vulnerabilities
·Loggix Project <= 9.4.5 Multiple Remote File Inclusion Vulnerabilities
·ProdLer <= 2.0 (prodler.class.php sPath) RFI Vulnerability
·CMScontrol 7.x (index.php id_menu) SQL Injection Vulnerability
·cP Creator 2.7.1 (Cookie tickets) Remote SQL Injection Exploit
·Winplot (.wp2 File) Local Buffer Overflow Exploit

read more...
PacketStorm News
·dradis-v2.5.0.tar.gz
·netsniff-ng-0.5.4.1.tar.g z
·CORE-2010-0121.txt
·flexmysql-sql.txt
·CORE-2010-0104.txt
·wippien-negotiation.txt
·mysql_yassl_getname.rb.tx t
·novelliprint_datetime.rb. txt
·novelliprint_target-frame .rb.txt
·deepburner_path.rb.txt

read more...
Security Basics
·Re: SMS Banking
·Re: SMS Banking
·Re: SMS Banking
·Re: Re: MSN virus
·Re: SMS Banking
·Re: MSN virus
·Re: SMS Banking
·Re: SMS Banking
·Re: Transparent vs Routed Firewall
·Re: Firewalking & Netcat & Statistics

read more...
[waraxe-2007-SA#058] - Critical Sql Injection in NukeSentinel 2.5.12





Author: Janek Vind "waraxe"
Date: 27. September 2007
Location: Estonia, Tartu
Web: http://www.waraxe.us/advisory-58.html


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;
if(isset($_COOKIE['admin']) && !empty($_COOKIE['admin'])) {
$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){
global $prefix, $db;
$adminresult = $db->sql_query("SELECT * FROM `".$prefix."_nsnst_admins`
WHERE `aid`='$author'");
$admin_row = $db->sql_fetchrow($adminresult);
return $admin_row;
}

------------>[/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.
Proof of concept exploit has been written by me and can retrieve any data
from database within short time. By stealing phpnuke admin password md5
hash it is possible to gain administrative privileges and compromise all
the website.

//-----> 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!
Greetings to Raido Kerna.
Tervitusi Torufoorumi rahvale!

Contact:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

come2waraxe@yahoo.com
Janek Vind "waraxe"

Homepage: http://www.waraxe.us/









Copyright © by Waraxe IT Security Portal All Right Reserved.

Published on: 2007-09-27 (5780 reads)

[ Go Back ]
Top members by posts
waraxe  waraxe - 2315
pexli  pexli - 621
shai-tan  shai-tan - 477
LINUX  LINUX - 404
y3dips  y3dips - 281
lenny  lenny - 272
vince213333  vince213333 - 268
tehhunter  tehhunter - 259
SpyderMonkey  SpyderMonkey - 210
slimjim100  slimjim100 - 208

M$ Security Bulletins
Currently there is a problem with headlines from this site
News @ SecurityFocus
·News: Twitter attacker had proper credentials
·News: PhotoDNA scans images for child abuse
·News: Conficker data highlights infected networks
·News: Popular apps need better patching, says report
·Brief: Google offers bounty on browser bugs
·Brief: Cyberattacks from U.S. "greatest concern"
·Brief: Microsoft patches as fraudsters target IE flaw
·Brief: Attack on IE 0-day refined by researchers
·News: Most consumers reuse banking passwords
·News: CIA, PayPal under bizarre SSL assault

read more...
Vuln Watch
·VulnWatch

read more...
alexa
Incidents
·About
·
RSS
·
Archive
·
About
·
RSS
·
Archive
·
About
·
RSS
·
Archive
·
About

read more...



It book reviews
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2008 Janek Vind "waraxe"

Page Generation: 0.070 Seconds