Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
May 26, 2013
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
 y3dips ITsec
 Md5 Cracker
 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: mettbrot
New Today: 1
New Yesterday: 2
Overall: 8639

People Online:
Visitors: 82
Members: 1
Total: 83

Online Now:
01: fux0r - Forums
milw0rm
·[local exploits] - Ophcrack v3.5.0 - Local Code Execution BOF
·[remote exploits] - MS Internet Explorer & MSN Explorer Arbitrary File Overwrite
·[dos / poc] - win32k!EPATHOBJ::pprFlatt enRec Uninitialized Next Pointer Testcase
·[remote exploits] - Linksys WRT160nv2 apply.cgi Remote Command Injection
·[remote exploits] - D-Link DIR615h OS Command Injection Vulnerability
·[web applications] - iOS < 5.0 Free Apps/Music Bug
·[web applications] - Haraj Script Stored XSS and File Upload Vulnerability
·[web applications] - Dsl Router D-link BZ_1.06 Multiple Vulnerabilities
·[local exploits] - Glibc 2.11.3 / 2.12.x LD_AUDIT libmemusage.so Local Root Exploit
·[web applications] - Moa Gallery 1.2.6 Multiple Vulnerabilities

read more...
PacketStorm News
·CAREL pCOWeb 1.5.0 Default Credential Shell Access
·Microsoft Internet Explorer 10-9 Object Confusion Sandbox Bypass
·Microsoft Internet Explorer 10-9-8-7-6 VML Remote Integer Overflow
·Debian Security Advisory 2672-1
·Debian Security Advisory 2671-1
·Red Hat Security Advisory 2013-0856-01
·Red Hat Security Advisory 2013-0855-01
·Infotecs ViPNet Products Privilege Escalation
·Slackware Security Advisory - kernel Updates
·Red Hat Security Advisory 2013-0847-01

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 (8107 reads)

[ Go Back ]
Top members by posts
waraxe  waraxe - 2405
vince213333  vince213333 - 736
pexli  pexli - 665
Mullog  Mullog - 539
demon  demon - 481
shai-tan  shai-tan - 477
LINUX  LINUX - 404
Cyko  Cyko - 371
tsabitah  tsabitah - 328
y3dips  y3dips - 281
SecurityFocus
·Vuln: X.Org libXcursor '_XcursorFileHeaderCreate ()' Function Remote Code Execution Vulnerability
·Vuln: Oracle Java SE CVE-2013-0401 Remote Code Execution Vulnerability
·Vuln: Python pip CVE-2013-1888 Insecure Temporary File Creation Vulnerability
·Vuln: MIT Kerberos 5 kadmind CVE-2002-2443 Remote Denial of Service Vulnerability
·Bugtraq: CFP: IEEE SafeConfig: 6th Symposium on Security Analytics and Automation
·Bugtraq: SEC Consult SA-20130523-0 :: JavaScript Execution in IBM WebSphere DataPower Services
·Bugtraq: [ANN] Struts 2.3.14.1 GA (fast track | security)
·Bugtraq: APPLE-SA-2013-05-22-1 QuickTime 7.7.4
·More rss feeds from SecurityFocus

read more...
alexa



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-2013 Janek Vind "waraxe"
Page Generation: 0.050 Seconds