Torna indietro   Serverplan Forum > Serverplan comunica > Vulnerabilità
Registrazione FAQ Lista utenti Calendario Cerca I messaggi di oggi Segna forums come letti

Rispondi
 
LinkBack Strumenti discussione Modalità visualizzazione
  #1 (permalink)  
Vecchio 05-02-2004, 12.04.21
Administrator
Amministratore
 
Data registrazione: 11-09-2002
Messaggi: 3,349
serverplan ha disabilitato la reputazione
Predefinito GBook for Php-Nuke ver. 1.0

Author: Janek Vind "waraxe"

Date: 02 Feb 2004


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

Php-Nuke is popular freeware content management system, written in php by
Francisco Burzi. GBook is guestbook module for Php-Nuke, created by Germ?n Cuevas
and V?ctor Simental, http://www.php-mania.com.ar



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

Gbook script does`nt sanityze user input at all, so anybody, who can make entries
to guestbook, can inject there potentially hostile html tags. This can lead to
cookie stealing and extracting usernames and password md5 hashes for Php-Nuke.



Exploit:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Html tags can be injected on many places on guestbook entry - "name", "email",
"city","message", etc. Choose what you prefer.
Next, GBook uses POST request to submit data to server, but Php-Nuke itself has
filter for $_POST[] variables:

##### Php-Nuke 7.0 mainfile.php line 56 #######################################

foreach ($_POST as $secvalue) {
if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*style*\"?[^>]*>", $secvalue))) {
die ("<center><img src=images/logo.gif>

The html tags you attempted to use are not allowed


[ <a href=\"javascript:history.go(-1)\">Go Back</a> ]");
}
}

################################################## #############################

So we can`t directly inject &lt;script&gt; tags to guestbook entry. But we have many
methods to bypass this filter. I will offer 2 methods:

1. We can use $_COOKIE array to transport variable with "&lt;script&gt;" tags to GBook
script. Yes, it`s true - Php-Nuke will not filter $_COOKIE array at all!
This can be done by manually editing browser cookies or by using speacially
crafted script.


2. There are many methods to use javascripting without &lt;script&gt; and <style> tags.
Example:

[img]foobar[/img]
[img]images/pix.gif[/img]
Your message here...



Ok, we have now cookies from Php-Nuke users, hopefully from admin too, and we need to
extract usernames and password md5 hashes from them. Just find cookie fields named
"admin" and/or "user" and base64_decode() them!
Example php implementation can be found on url:


http://www.zone.ee/waraxe/sa001/steal.php


And finally - if we have usernames and password md5 hashes, we have many choices:

1. We can try to crack md5 hashes to reveal real password.

2. Modify browser cookie manually and then access Php-Nuke site with stolen ID.

3. If we have "superadmin"`s username and pwd md5 hash, then perl script


http://www.zone.ee/waraxe/sa001/god.pl.php


can create additional superadmin account for attacker.



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

Greets to ulljobu, djzone, raider and to all computer freaks on Estonia!



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

come2waraxe@yahoo.com
Janek Vind "waraxe"
Rispondi citando
Rispondi


Strumenti discussione
Modalità visualizzazione

Regole di scrittura
Tu non puoi inserire nuovi messaggi
Tu non puoi rispondere ai messaggi
Tu non puoi inviare files
Tu non puoi modificare i tuoi messaggi

Il codice vB è 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
Installazione Php Nuke Alina PHP 2 06-10-2004 09.22.58
PHP-Nuke 7.4 serverplan Vulnerabilità 1 08-09-2004 11.12.09
SQL injection in Php-Nuke 7.1.0 serverplan Vulnerabilità 0 09-02-2004 21.05.30
PHP Nuke SKYwalker PHP 4 15-11-2003 00.22.33
php nuke 6.8 domenicoruggiero PHP 2 05-10-2003 22.20.57


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


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