Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:25204
HistoryDec 01, 2010 - 12:00 a.m.

Digitalus 1.10.0 Alpha2 Arbitrary File Upload vulnerability.txt

2010-12-0100:00:00
vulners.com
24

########################################################
Digitalus 1.10.0 Alpha2 Arbitrary File Upload vulnerability
########################################################


/\ `\ /\ \ __ /\ \__/\ \
\ \ \L\
\__ __ \ \ \/'\ /\\ ___ __ \ \ ,\ \ \__ __
\ \ \/\ \/\ \ /'\ \ , < \/\ \ /' _ `\ /' `\ \ \ \/\ \ _ `\ /'`\
\ \ \/\ \ \_\ \/\ \
/\ \ \\`\\ \ \/\ \/\ \/\ \L\ \ \ \ \\ \ \ \ \/\ __/
\ \
\ \ \/\ \\\ \\ \\ \\ \\ \\ \___ \ \ \
\\ \\ \\ \\
\/
/ \/
/ \// \//\//\//\//\//\/L\ \ \// \//\//\//
/\
/
\_/
/
__ __ __ ______ By:eidelweiss
/\ \ /\ \ /\ \ /\ _ \
\ \ \/\ \ \ \ \ \ \
\ \ \L\ \ _____ _____ ____
\ \ \ \ \ \ \ /'
`\ \ '`\ \ \ __ \/\ '`\/\ '`\ /',\
\ \ \/ \\ \/\ /\ \ \L\ \ \ \ \/\ \ \ \L\ \ \ \L\ \/\, `\
\ `\x/\ \___\\ \,
/ \ \\ \\ \ ,/\ \ ,/\/\____/
'\/
/// \// \// \//\//\ \ \/ \ \ \/ \//
\ \
\ \ \\
\/
/ \/_/

[+]Script: Digitalus
[+]Version: 1.10.0 Alpha2
[+]vendor: http://digitaluscms.com/
[+]Download: http://digitalus-cms.googlecode.com/files/digitalus_1.10.0_alpha2.zip
########################################################

[!]Author : eidelweiss
[!]Contact: eidelweiss[at]windowslive[dot]com
[!]Blog: http://eidelweiss-advisories.blogspot.com
[!]Gratz : DealCyber member`s , yogyacarderlink crew , and YOU !!!

[!]Dork: "Powered By Digitalus cms"

Original Advisories:

http://eidelweiss-advisories.blogspot.com/2010/12/digitalus-1100-alpha2-arbitrary-file.html

    -=[Advisories time]=-

[-] 25 desember 2010 (gmt+7) vulnerability found
[-] 25 desember 2010 (gmt+7) vulnerability analisys and testing
[-] 26 desember 2010 (gmt+7) vulnerability report to vendor (first time report and no response)
[-] 28 desember 2010 (gmt+7) vulnerability report to vendor (again still no response)
[!] 01 desember 2010 22:00 (gmt+7) vulnerability publish

########################################################

    -=[Description]=-

Digitalus CMS is a new kind of CMS. The focus of this open source project is usable software as opposed to endless lists of features.
We added a very flexible API to this base so you can customize virtually any aspect of the system.
This creates a simple and elegant platform that you can use for a wide range of sites and requirements.

########################################################

    -=[VUln Code]=-

    path/scripts/fckeditor/editor/filemanager/connectors/php/config.php

[*] // SECURITY: You must explicitly enable this &quot;connector&quot;. &#40;Set it to &quot;true&quot;&#41;.
[*]
[*] $Config[&#39;Enabled&#39;] = true ;
[*]
[*] // Path to user files relative to the document root.
[*] $Config[&#39;UserFilesPath&#39;] = &#39;/media/&#39; ;
[*]
[*] // Fill the following value it you prefer to specify the absolute path for the
[*] // user files directory. Usefull if you are using a virtual directory, symbolic
[*] // link or alias. Examples: &#39;C:&#92;&#92;MySite&#92;&#92;UserFiles&#92;&#92;&#39; or &#39;/root/mysite/UserFiles/&#39;.
[*] // Attention: The above &#39;UserFilesPath&#39; must point to the same directory.
[*]
[*]
[*] $Config[&#39;AllowedExtensions&#39;][&#39;File&#39;]    = array&#40;&#39;7z&#39;, &#39;aiff&#39;, &#39;asf&#39;, &#39;avi&#39;, &#39;bmp&#39;, &#39;csv&#39;, &#39;doc&#39;, &#39;fla&#39;, &#39;flv&#39;, &#39;gif&#39;, &#39;gz&#39;, &#39;gzip&#39;, &#39;jpeg&#39;, &#39;jpg&#39;, &#39;mid&#39;, &#39;mov&#39;, &#39;mp3&#39;, &#39;mp4&#39;, &#39;mpc&#39;, &#39;mpeg&#39;, &#39;mpg&#39;, &#39;ods&#39;, &#39;odt&#39;, &#39;pdf&#39;, &#39;png&#39;, &#39;ppt&#39;, &#39;pxd&#39;, &#39;qt&#39;, &#39;ram&#39;, &#39;rar&#39;, &#39;rm&#39;, &#39;rmi&#39;, &#39;rmvb&#39;, &#39;rtf&#39;, &#39;sdc&#39;, &#39;sitd&#39;, &#39;swf&#39;, &#39;sxc&#39;, &#39;sxw&#39;, &#39;tar&#39;, &#39;tgz&#39;, &#39;tif&#39;, &#39;tiff&#39;, &#39;txt&#39;, &#39;vsd&#39;, &#39;wav&#39;, &#39;wma&#39;, &#39;wmv&#39;, &#39;xls&#39;, &#39;xml&#39;, &#39;zip&#39;&#41; ;
[*] $Config[&#39;DeniedExtensions&#39;][&#39;File&#39;]     = array&#40;&#41; ;
[*]
[*] $Config[&#39;AllowedExtensions&#39;][&#39;Image&#39;]   = array&#40;&#39;bmp&#39;,&#39;gif&#39;,&#39;jpeg&#39;,&#39;jpg&#39;,&#39;png&#39;&#41; ;
[*] $Config[&#39;DeniedExtensions&#39;][&#39;Image&#39;]    = array&#40;&#41; ;
[*]
[*] $Config[&#39;AllowedExtensions&#39;][&#39;Flash&#39;]   = array&#40;&#39;swf&#39;,&#39;flv&#39;&#41; ;
[*] $Config[&#39;DeniedExtensions&#39;][&#39;Flash&#39;]    = array&#40;&#41; ;
[*]
[*] $Config[&#39;AllowedExtensions&#39;][&#39;Media&#39;]   = array&#40;&#39;aiff&#39;, &#39;asf&#39;, &#39;avi&#39;, &#39;bmp&#39;, &#39;fla&#39;, &#39;flv&#39;, &#39;gif&#39;, &#39;jpeg&#39;, &#39;jpg&#39;, &#39;mid&#39;, &#39;mov&#39;, &#39;mp3&#39;, &#39;mp4&#39;, &#39;mpc&#39;, &#39;mpeg&#39;, &#39;mpg&#39;, &#39;png&#39;, &#39;qt&#39;, &#39;ram&#39;, &#39;rm&#39;, &#39;rmi&#39;, &#39;rmvb&#39;, &#39;swf&#39;, &#39;tif&#39;, &#39;tiff&#39;, &#39;wav&#39;, &#39;wma&#39;, &#39;wmv&#39;&#41; ;
[*] $Config[&#39;DeniedExtensions&#39;][&#39;Media&#39;]    = array&#40;&#41; ;
  
with a default configuration of this script, an attacker might be able to upload arbitrary
files containing malicious PHP code due to multiple file extensions isn&#39;t properly checked

########################################################

    -=[ How To Exploit / P0C ]=-
  1. attacker might be able to upload arbitrary files containing malicious PHP code due to multiple file extensions isn't properly checked using remode code execution.

  2. Attacker also can exploit this vulnerability via browser by following this link

     http://127.0.0.1/scripts/fckeditor/editor/filemanager/connectors/test.html
    
             or
    
     http://127.0.0.1/scripts/fckeditor/editor/filemanager/connectors/uploadtest.html
    

[*] your file while be here

    http://127.0.0.1/media/yourfile.extension &lt;= here

########################################################

    | -=[MERRY CHRISTMAS AND HAPPY NEW YEARS , Nothing impossible in this world even nobody&#96;s perfect]=- |

=========================| -=[ E0F ]=- |============================