Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
June 25, 2024
 Members List
 IRC chat
 Base64 coder
 MD5 hash
 CRC32 checksum
 ROT13 coder
 SHA-1 hash
 Sql Char Encoder
 y3dips ITsec
 Md5 Cracker
 User Manuals
 Recommend Us
 Your Account

User Info
Welcome, Anonymous

Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9145

People Online:
Visitors: 409
Members: 0
Total: 409
PacketStorm News
·301 Moved Permanently

[waraxe-2007-SA#057] - Unauthorized File Upload in SiteX CMS

Author: Janek Vind "waraxe"
Date: 27. September 2007
Location: Estonia, Tartu
Web: http://www.waraxe.us/advisory-57.html

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:

<form action="http://localhost/sitex.0.7.3.beta/includes/fck/editor/
enctype="multipart/form-data" method="post">
<input type="file" name="NewFile" size="140">
<input type="submit" value="Test">

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',
'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" :)
Now there is another PoC testfile:

<form action="http://localhost/sitex.0.7.3.beta/includes/fck/editor/
enctype="multipart/form-data" method="post">
<input type="file" name="NewFile" size="140">
<input type="submit" value="Test">

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

//-----> See ya soon and have a nice day ;) <-----//


Greets to ToXiC, LINUX, y3dips, Sm0ke, Heintz, slimjim100, Chb
and all other people who know me!
Greetings to Raido Kerna.
Tervitusi Torufoorumi rahvale!


Janek Vind "waraxe"

Homepage: http://www.waraxe.us/

Copyright © by Waraxe IT Security Portal All Right Reserved.

Published on: 2007-09-27 (22921 reads)

[ Go Back ]
Top members by posts
waraxe  waraxe - 2407
vince213333  vince213333 - 737
pexli  pexli - 665
Mullog  Mullog - 540
demon  demon - 485
shai-tan  shai-tan - 477
Cyko  Cyko - 375
tsabitah  tsabitah - 328
y3dips  y3dips - 281
Currently there is a problem with headlines from this site

Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2020 Janek Vind "waraxe"
Page Generation: 0.135 Seconds