VLC Media Player 0.5.0 to 0.9.5 Stack-Based Buffer Overflows - Nessus
High Plugin ID: 34730This page contains detailed information about the VLC Media Player 0.5.0 to 0.9.5 Stack-Based Buffer Overflows Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 34730
Name: VLC Media Player 0.5.0 to 0.9.5 Stack-Based Buffer Overflows
Filename: vlc_0_9_6.nasl
Vulnerability Published: N/A
This Plugin Published: 2008-11-10
Last Modification Time: 2018-11-15
Plugin Version: 1.17
Plugin Type: local
Plugin Family: Windows
Dependencies:
vlc_installed.nasl
Required KB Items [?]: SMB/VLC/Version
Vulnerability Information
Severity: High
Vulnerability Published: N/A
Patch Published: N/A
CVE [?]: CVE-2008-5032, CVE-2008-5036
CPE [?]: cpe:/a:videolan:vlc_media_player
Synopsis
The remote Windows host contains an application that is affected by multiple buffer overflow vulnerabilities.
Description
A version of VLC between 0.5.0 and 0.9.5 is installed on the remote host. Such versions are affected by the following vulnerabilities :
- RealText subtitle file (modules\demux\subtitle.c) processing is susceptible to a buffer overflow caused by user-supplied data from a malicious subtitle file being copied into static buffers without proper validation.
- CUE image file (modules\access\vcd\cdrom.c) processing is susceptible to a stack-based buffer overflow because data supplied by the CUE file is supplied as an array index without proper validation.
An attacker may be able to leverage these issues to execute arbitrary code on the remote host by tricking a user into opening a specially crafted video file using the affected application.
Solution
Upgrade to VLC version 0.9.6 or later.
Public Exploits
Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, Core Impact)
Exploit Ease: Exploits are available
Here's the list of publicly known exploits and PoCs for verifying the VLC Media Player 0.5.0 to 0.9.5 Stack-Based Buffer Overflows vulnerability:
- Metasploit: exploit/windows/fileformat/vlc_realtext
[VLC Media Player RealText Subtitle Overflow] - Exploit-DB: exploits/windows/local/18548.rb
[EDB-18548: VideoLAN VLC Media Player 0.9.5 - RealText Subtitle Overflow (Metasploit)]
Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.
WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.
Risk Information
CVSS V2 Vector [?]: AV:N/AC:M/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score: | 9.3 (High) |
Impact Subscore: | 10.0 |
Exploitability Subscore: | 8.6 |
CVSS Temporal Score: | 7.7 (High) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 7.7 (High) |
Go back to menu.
Plugin Source
This is the vlc_0_9_6.nasl nessus plugin source code. This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(34730);
script_version("1.17");
script_cve_id("CVE-2008-5032", "CVE-2008-5036");
script_bugtraq_id(32125, 36403);
script_xref(name:"EDB-ID", value:"18548");
script_name(english:"VLC Media Player 0.5.0 to 0.9.5 Stack-Based Buffer Overflows");
script_summary(english:"Checks version of VLC Media Player");
script_set_attribute(attribute:"synopsis", value:
"The remote Windows host contains an application that is affected by
multiple buffer overflow vulnerabilities." );
script_set_attribute(attribute:"description", value:
"A version of VLC between 0.5.0 and 0.9.5 is installed on the remote
host. Such versions are affected by the following vulnerabilities :
- RealText subtitle file (modules\demux\subtitle.c)
processing is susceptible to a buffer overflow caused
by user-supplied data from a malicious subtitle file
being copied into static buffers without proper
validation.
- CUE image file (modules\access\vcd\cdrom.c)
processing is susceptible to a stack-based buffer
overflow because data supplied by the CUE file is
supplied as an array index without proper validation.
An attacker may be able to leverage these issues to execute arbitrary
code on the remote host by tricking a user into opening a specially
crafted video file using the affected application." );
script_set_attribute(attribute:"see_also", value:"http://www.trapkit.de/advisories/TKADV2008-012.txt" );
script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/498111/30/0/threaded" );
script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/498112/30/0/threaded" );
script_set_attribute(attribute:"see_also", value:"http://www.videolan.org/security/sa0810.html" );
script_set_attribute(attribute:"see_also", value:"http://permalink.gmane.org/gmane.comp.security.oss.general/1140" );
script_set_attribute(attribute:"solution", value:
"Upgrade to VLC version 0.9.6 or later." );
script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"exploit_framework_core", value:"true");
script_set_attribute(attribute:"metasploit_name", value:'VLC Media Player RealText Subtitle Overflow');
script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_cwe_id(119);
script_set_attribute(attribute:"plugin_publication_date", value: "2008/11/10");
script_cvs_date("Date: 2018/11/15 20:50:29");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"cpe:/a:videolan:vlc_media_player");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Windows");
script_copyright(english:"This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.");
script_dependencies("vlc_installed.nasl");
script_require_keys("SMB/VLC/Version");
exit(0);
}
include("global_settings.inc");
ver = get_kb_item("SMB/VLC/Version");
if (ver && ver =~ "^0\.([5-8]\.|9\.[0-5]($|[^0-9]))")
{
if (report_verbosity)
{
report = string(
"\n",
"VLC Media Player version ", ver, " is currently installed on the remote host.\n"
);
security_hole(port:get_kb_item("SMB/transport"), extra:report);
}
else security_hole(get_kb_item("SMB/transport"));
}
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/vlc_0_9_6.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\vlc_0_9_6.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/vlc_0_9_6.nasl
Go back to menu.
How to Run
Here is how to run the VLC Media Player 0.5.0 to 0.9.5 Stack-Based Buffer Overflows as a standalone plugin via the Nessus web user interface (https://localhost:8834/):
- Click to start a New Scan.
- Select Advanced Scan.
- Navigate to the Plugins tab.
- On the top right corner click to Disable All plugins.
- On the left side table select Windows plugin family.
- On the right side table select VLC Media Player 0.5.0 to 0.9.5 Stack-Based Buffer Overflows plugin ID 34730.
- Specify the target on the Settings tab and click to Save the scan.
- Run the scan.
Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.
Basic usage:
/opt/nessus/bin/nasl vlc_0_9_6.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a vlc_0_9_6.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - vlc_0_9_6.nasl -t <IP/HOST>
Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):
/opt/nessus/bin/nasl -K /tmp/state vlc_0_9_6.nasl -t <IP/HOST>
Go back to menu.
References
BID | SecurityFocus Bugtraq ID: CWE | Common Weakness Enumeration:
- CWE-119 (Weakness) Improper Restriction of Operations within the Bounds of a Memory Buffer
- https://www.tenable.com/plugins/nessus/34730
- https://www.securityfocus.com/archive/1/498111/30/0/threaded
- https://www.securityfocus.com/archive/1/498112/30/0/threaded
- http://permalink.gmane.org/gmane.comp.security.oss.general/1140
- http://www.trapkit.de/advisories/TKADV2008-012.txt
- http://www.videolan.org/security/sa0810.html
- https://vulners.com/nessus/VLC_0_9_6.NASL
- 39451 - Debian DSA-1819-1 : vlc - several vulnerabilities
- 34723 - FreeBSD : vlc -- cue processing stack overflow (4b09378e-addb-11dd-a578-0030843d3802)
- 35271 - GLSA-200812-24 : VLC: Multiple vulnerabilities
- 31853 - VLC Media Player < 0.8.6f Multiple Vulnerabilities
- 55024 - VLC < 1.1.10 Multiple Vulnerabilities
- 48906 - VLC Media Player < 1.1.4 Path Subversion Arbitrary DLL Injection Code Execution
- 51772 - VLC Media Player < 1.1.6 Multiple Vulnerabilities
- 51851 - VLC Media Player < 1.1.7 MKV Input Validation Vulnerability
- 52976 - VLC Media Player < 1.1.8 Multiple Buffer Overflows
- 58416 - VLC Media Player < 2.0.1 Multiple Vulnerabilities
- 78626 - VLC Media Player < 2.1.5 Multiple Vulnerabilities
- 100592 - VLC Media Player < 2.2.5 Multiple Vulnerabilities
- 112216 - VLC Media Player <= 2.2.8 Use-After-Free RCE
- 126246 - VLC < 3.0.7 Multiple Vulnerabilities
- 31642 - VLC Media Player network/httpd.c httpd_FileCallBack Function Connection Parameter Format String
- 137753 - VLC < 2.1.6 Multiple Vulnerabilities
- 146102 - VLC < 3.0.12 Buffer Overflow
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file vlc_0_9_6.nasl version 1.17. For more plugins, visit the Nessus Plugin Library.
Go back to menu.