|
|||||||||||
|
[waraxe-2007-SA#057] - Unauthorized File Upload in SiteX CMS
From: <come2waraxe(at)yahoo.com>
Date: Thu Sep 27 2007 - 11:24:30 EDT [waraxe-2007-SA#057] - Unauthorized File Upload in SiteX CMS
Author: Janek Vind "waraxe"
Target software description: SiteX is a versitile web tool that will enable you to start your own dynamic website in under 5 minutes. Driven by PHP and MySQL, SiteX consists of components common to most personal and professional websites. Vulnerabilities: file upload possibilities SiteX CMS contains third-party scripts from FCKeditor. One of them is: "includes/fck/editor/filemanager/upload/php/upload.php". This particular script does not have any checks against user validity and anyone can try to upload files to SiteX-powered website. Here is proof-of-concept file for testing:
------------>[proof-of-concept]<-----------
Parameter "ServerPath" must be changed as needed. Now, by using this PoC upload file we can upload to victim server any files, except with some predefined (dangerous) extensions.
$Config['DeniedExtensions']['File'] = array('php','php2','php3',
'php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm',
'cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi') ;
But we really want to upload php scripts to victim webserver ...
Well, let's assume, that we have php file "test.waraxe". As we see,
file extension is "waraxe" :)
------------>[proof-of-concept]<-----------
And when we use this upload form, then we will have file named "x.php.test.waraxe" in target webserver. Does anyone recall "RAR exploit"? Google for "RAR exploit coppermine" and find out, that Apache webserver has interesting feature: if we request file with unknown extension (".waraxe") and if filename contains ".php.", then Apache will try to handle it as php file :) So that we can now upload to webserver any php files and get php scripting level access to target server. Next step can be uploading php shell and escalating attack. //-----> See ya soon and have a nice day ;) <-----// Greetings:
Greets to ToXiC, LINUX, y3dips, Sm0ke, Heintz, slimjim100, Chb
and all other people who know me!
Contact:
come2waraxe@yahoo.com
Homepage: http://www.waraxe.us/ Shameless advertise: Biology books - http://biology.oldreadings.com/ Sevice Manuals - http://service-manuals.waraxe.us/
This archive was generated by hypermail 2.1.8 : Sun Oct 28 2007 - 06:18:12 EDT |
||||||||||
|
|||||||||||