Exploit-DB #12295
Description: N/X Web CMS (N/X WCMS 4.5) - Multiple Vulnerabilities
Type: webapps
Platform: php
Date: 2010-04-19
Author: eidelweiss

Exploit:
N/X - Web CMS (N/X WCMS 4.5) Multiple Vulnerability
===================================================

1-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=0
0     _                   __           __       __                     1
1   /' \            __  /'__`\        /\ \__  /'__`\                   0
0  /\_, \    ___   /\_\/\_\ \ \    ___\ \ ,_\/\ \/\ \  _ ___           1
1  \/_/\ \ /' _ `\ \/\ \/_/_\_<_  /'___\ \ \/\ \ \ \ \/\`'__\          0
0     \ \ \/\ \/\ \ \ \ \/\ \ \ \/\ \__/\ \ \_\ \ \_\ \ \ \/           1
1      \ \_\ \_\ \_\_\ \ \ \____/\ \____\\ \__\\ \____/\ \_\           0
0       \/_/\/_/\/_/\ \_\ \/___/  \/____/ \/__/ \/___/  \/_/           1
1                  \ \____/ >> Exploit database separated by exploit   0
0                   \/___/          type (local, remote, DoS, etc.)    1
1                                                                      1
0  [+] Site            : Inj3ct0r.com                                  0
1  [+] Support e-mail  : submit[at]inj3ct0r.com                        1
0                                                                      0
1                    ########################################          1
0                    I'm eidelweiss member from Inj3ct0r Team          1
1                    ########################################          0
0-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-1

Work If:	magic_quotes_gpc & magic_quotes_runtime Disable
Download:	http://sourceforge.net/projects/nxwcms/files/0.%20N_X%20WCMS%204.5%20System/4.5%20Release%201/nx45.zip/download

Author:		eidelweiss
Contact:	eidelweiss[at]cyberservices.com
Thank`s:	r0073r & 0x1D (inj3ct0r) , JosS , exploit-db team , [D]eal [C]yber
		sp3x (securityreason) get-well brother
Special To:	m4rc0 & LeQhi  (thank`s so much brother , respect to you)

Advisories:	http://eidelweiss-advisories.blogspot.com/2010/04/nx-web-cms-nx-wcms-45-multiple.html

========================================================================

Description:

N/X 4.0 is a powerful content management system for the web.
N/X CMS is focused on delivering content in many powerful ways.
Its functions and content-types can be extended with the plugin-interface and a very very powerful API. 

========================================================================

	-=[ VULN C0de ]=-

**************************************************
[-] nx_path/www/text.php
**************************************************

<?PHP
  require_once "nxheader.inc.php";
  include $cds->path."inc/header.php";

  // Start of individual template
  echo $cds->content->get("Headline");
  br();
  echo $cds->content->get("Body");  
  
 
  include $cds->path."inc/footer.php";
  require_once "nxfooter.inc.php";
?>

**************************************************
[-] nx_path/www/article.php
**************************************************

<?PHP
  require_once "nxheader.inc.php";
  require_once $cds->path."inc/header.php";

  // get the id of the article from the request
  // do type validation
  
  echo $cds->cluster->draw($article);
  br();
  br();
    
  // link back to the page where the article was called    
  echo $cds->content->get("Backlink Title");
  
  require_once $cds->path."inc/footer.php";
  require_once "nxfooter.inc.php";
?>

**************************************************
[-] nx_path/www/article_overview.php
**************************************************
<?PHP
  require_once "nxheader.inc.php";
  require_once $cds->path."inc/header.php";	// line 3

	*****

  require_once $cds->path."inc/footer.php";	// line 42
  require_once "nxfooter.inc.php";
?>

**************************************************
[-] nx_path/www/sitemap.php
**************************************************

<?PHP
  require_once "nxheader.inc.php";
  include $cds->path."inc/header.php";	// line 3

	*****

  include $cds->path."inc/footer.php";		// line 56
  require_once "nxfooter.inc.php";
?>

**************************************************
[-] nx_path/www/pagelayout.inc.php
**************************************************

**************************************************
[-] nx_path/www/nxheader.inc.php
**************************************************

<?php
	/*
	 * Include this file in your page-templates
	 */
	 if (isset($c["path"])) {
	 	require_once $c["path"]."config.inc.php";
	 } else {
	   require_once "../cms/config.inc.php";
	 }
	 include_once $c["path"]."api/cds/track_exit_pages.php";
	 require_once $c["path"]."api/cds/lib.inc.php";

	*****

	 if ($c["pagetracking"]  && ! $c["usewebbug"]) {
	    include_once $c["path"].'modules/stats/phpOpenTracker.php';	// line 31
	    @phpOpenTracker::log(array('document' => $page));	
	 }
	 require_once $c["path"]."ext/jpcache/jpcache.php";	// line 34

**************************************************
[-] nx_path/cms/api/xml/lib.inc.php
**************************************************
<?
	require_once $c["path"] . "api/xml/xpath.class.php";
   require_once $c["path"] . "api/xml/meta.php";
   require_once $c["path"] . "api/xml/plugin.php";
   require_once $c["path"] . "api/xml/cluster_template.php";
   require_once $c["path"] . "api/xml/cluster.php";   
   require_once $c["path"] . "api/xml/sitepage_master.php"; 
   require_once $c["path"] . "api/xml/syndication.php"; 
   require_once $c["path"] . "api/xml/xmlapi_prepare.php";
?>

**************************************************
[-] nx_path/cms/api/parser/lib.inc.php
**************************************************
<?
	require_once $c["path"] . "api/parser/nxparser.php";
	require_once $c["path"] . "api/parser/class.filemanipulation.php";
	require_once $c["path"] . "api/parser/class.mso2003.php";
	require_once $c["path"] . "api/parser/class.openoffice.php";
	require_once $c["path"] . "api/parser/nx2html.php";
	requ