Rapid7 Vulnerability & Exploit Database

VLC Media Player MKV Use After Free

Back to Search

VLC Media Player MKV Use After Free

Disclosed
05/24/2018
Created
03/19/2019

Description

This module exploits a use after free vulnerability in VideoLAN VLC =< 2.2.8. The vulnerability exists in the parsing of MKV files and affects both 32 bits and 64 bits. In order to exploit this, this module will generate two files: The first .mkv file contains the main vulnerability and heap spray, the second .mkv file is required in order to take the vulnerable code path and should be placed under the same directory as the .mkv file. This module has been tested against VLC v2.2.8. Tested with payloads windows/exec, windows/x64/exec, windows/shell/reverse_tcp, windows/x64/shell/reverse_tcp. Meterpreter payloads if used can cause the application to crash instead.

Author(s)

  • Eugene Ng - GovTech
  • Winston Ho - GovTech

Platform

Windows

Development

References

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/windows/fileformat/vlc_mkv
msf exploit(vlc_mkv) > show targets
    ...targets...
msf exploit(vlc_mkv) > set TARGET < target-id >
msf exploit(vlc_mkv) > show options
    ...show and set options...
msf exploit(vlc_mkv) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;