Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
November 29, 2014
 Members List
 IRC chat
 Base64 coder
 MD5 hash
 CRC32 checksum
 ROT13 coder
 SHA-1 hash
 Sql Char Encoder
 y3dips ITsec
 Md5 Cracker
 User Manuals
 Recommend Us
 Your Account

User Info
Welcome, Anonymous

Latest: pepe0787
New Today: 0
New Yesterday: 1
Overall: 8958

People Online:
Visitors: 151
Members: 0
Total: 151
·[web applications] - Wordpress InfusionSoft Upload Exploit
·[remote exploits] - Rejetto HttpFileServer Remote Command Execution Exploit
·[remote exploits] - F5 iControl Remote Root Command Execution Exploit
·[web applications] - Nessus Web UI 2.3.3 Cross Site Scripting Vulnerability
·[web applications] - WordPress Backup plugin Ready! Arbitrary File Download Vulnerability
·[local exploits] - Asx to Mp3 2.7.5 - Stack Overflow Exploit
·[remote exploits] - XAMPP 1.8.x Multiple Vulnerabilities
·[web applications] - ZyXEL SBG-3300 Security Gateway Denial Of Service Vulnerability
·[web applications] - ZyXEL SBG-3300 Security Gateway Cross Site Scripting Vulnerability
·[remote exploits] - Ultra Electronics SSL VPN / SQL Injection / Directory Creation

PacketStorm News
·HP Security Bulletin HPSBGN03108
·HP Security Bulletin HPSBMU03118 2
·Ubuntu Security Notice USN-2371-1
·Ubuntu Security Notice USN-2370-1
·SAP Business Warehouse Missing Authorization Check
·SAP HANA Web-based Development Workbench Code Injection
·SAP BusinessObjects Persistent Cross Site Scripting
·SAP Business Objects Information Disclosure Via CORBA
·SAP HANA Reflective Cross Site Scripting
·SAP Business Objects Denial Of Service Via CORBA

[waraxe-2006-SA#044] - XSS in phpNuke 7.8 and older versions

Author: Janek Vind "waraxe"
Date: 13. February 2006
Location: Estonia, Tartu
Web: http://www.waraxe.us/advisory-44.html

Target software description:

phpNuke 6.0 - 7.8

Homepage: http://phpnuke.org/

What is phpNuke ?

PHP-Nuke is a news automated system specially designed to be used in Intranets and Internet.
The Administrator has total control of his web site, registered users, and he will have in
the hand a powerful assembly of tools to maintain an active and 100% interactive web site
using databases.


Potentially harmful cross-site scripting bug has been found in phpNuke software.
All versions from 6.0 to 7.8 are affected. Version 7.9 has not been tested against this bug,
but probably it is affected too. As in case of any XSS bugs, there can be many ways to
exploit this bug, for example stealing the cookies, containing username/hashed password.


So what is the cause of this XSS case? As common in phpNuke world, problem lies in
uninitialized variable - "$pagetitle". This global variable is used for transfer page
title from module worker-code to "head()" function in "header.php" file.

Looking at source ("header.php" line ~ 28):

----------------[ from source code ]------------------

function head() {
global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic,
$hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4,
$textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
$ThemeSel = get_theme();
echo "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
echo "<html>
echo "<head>
echo "<title>$sitename $pagetitle</title>
----------------[ /from source code ]-----------------

So we see, that "$pagetitle" is directly rendered to html code. And after searching in
source code, we can see that it is not initialized by default.
Hmm, what about running some tests ...

Let's try "http://localhost/nuke78/?pagetitle=w00t></title></head><body>test"

and we see, that html tags injection is really possible.
Now comes the hard part - how to inject scripting code? Phpnuke is using some anti-XSS
filters agaist injection, so direct attack with "<script>" and other usual tags will not
succeed. Well, as always, there can be found ways to bypass filters and after playing some
time with various injection tricki, I found this possibility:

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


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

This method was tested successfully with 3 browsers - IE 6, Firefox and Opera 8.51 .
So it seems, that phpnuke anti-xss filter must be made to be more bulletproof ...

Bye all and have a nice day ;)

How to fix:

Write one code line to "mainfile.php":

$pagetitle = '';

This will initialize affected variable and patch the hole.


Greetz to LINUX, Heintz, y3dips, shai-tan, slimjim100, zer0-c00l and
all other active members from waraxe forum !

Raido Kerna - tervitused!

Additional resources:

DX expeditions database - http://www.dxdb.com/

HDD data recovery - http://www.hdd911.com/


Janek Vind "waraxe"

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

Copyright © by Waraxe IT Security Portal All Right Reserved.

Published on: 2006-02-13 (9157 reads)

[ Go Back ]
Top members by posts
waraxe  waraxe - 2407
vince213333  vince213333 - 736
pexli  pexli - 665
Mullog  Mullog - 539
demon  demon - 485
shai-tan  shai-tan - 477
Cyko  Cyko - 375
tsabitah  tsabitah - 328
y3dips  y3dips - 281
·Vuln: Apache Xalan-Java Library CVE-2014-0107 Security Bypass Vulnerability
·Vuln: Xen CVE-2014-3968 Denial of Service Vulnerability
·Vuln: Xen '/hvm/hvm.c' Remote Denial of Service Vulnerability
·Vuln: Xen 'HVM MSI injection' CVE-2014-3967 Denial of Service Vulnerability
·Bugtraq: [security bulletin] HPSBMU03110 rev.1 - HP Sprinter, Remote Execution of Code
·Bugtraq: [security bulletin] HPSBMU03127 rev.1 - HP Operations Manager for UNIX, Remote Code Execution
·Bugtraq: [SECURITY] [DSA 3048-1] apt security update
·Bugtraq: Cisco Security Advisory: Multiple Vulnerabilities in Cisco ASA Software
·More rss feeds from SecurityFocus


Hardware 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.048 Seconds