VLC Media Player < 2.0.1 Multiple Vulnerabilities - Nessus

High   Plugin ID: 58416

This page contains detailed information about the VLC Media Player < 2.0.1 Multiple Vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 58416
Name: VLC Media Player < 2.0.1 Multiple Vulnerabilities
Filename: vlc_2_0_1.nasl
Vulnerability Published: 2012-03-19
This Plugin Published: 2012-03-21
Last Modification Time: 2018-11-15
Plugin Version: 1.12
Plugin Type: local
Plugin Family: Windows
Dependencies: vlc_installed.nasl
Required KB Items [?]: SMB/VLC/Version

Vulnerability Information


Severity: High
Vulnerability Published: 2012-03-19
Patch Published: 2012-03-19
CVE [?]: CVE-2012-1775, CVE-2012-1776
CPE [?]: cpe:/a:videolan:vlc_media_player

Synopsis

The remote Windows host contains a media player that is affected by multiple vulnerabilities.

Description

The version of VLC media player installed on the remote host is earlier than 2.0.1. Such versions are affected by multiple vulnerabilities:

- The function 'MMSOpen' in the MMS access plugin contains a boundary error that can allow a stack-based buffer overflow when maliciously crafted MMS streams are opened. (CVE-2012-1775)

- The Realrtsp plugin contains an unspecified error that can allow a heap-based buffer overflow when maliciously crafted Real rtsp streams are opened. (CVE-2012-1776)

Solution

Upgrade to VLC Media Player version 2.0.1 or later. Alternatively, remove any affected plugin files from VLC's plugins directory.

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 < 2.0.1 Multiple Vulnerabilities vulnerability:

  1. Metasploit: exploit/windows/browser/vlc_mms_bof
    [VLC MMS Stream Handling Buffer Overflow]
  2. Exploit-DB: exploits/windows/remote/18825.rb
    [EDB-18825: VideoLAN VLC Media Player 2.0.0 - Mms Stream Handling Buffer 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_2_0_1.nasl nessus plugin source code. This script is Copyright (C) 2012-2018 Tenable Network Security, Inc.

#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");


if (description)
{
  script_id(58416);
  script_version("1.12");
  script_cvs_date("Date: 2018/11/15 20:50:29");

  script_cve_id("CVE-2012-1775", "CVE-2012-1776");
  script_bugtraq_id(52550, 53391);
  script_xref(name:"EDB-ID", value:"18825");

  script_name(english:"VLC Media Player < 2.0.1 Multiple Vulnerabilities");
  script_summary(english:"Checks version of VLC");

  script_set_attribute(
    attribute:"synopsis",
    value:
"The remote Windows host contains a media player that is affected by
multiple vulnerabilities."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The version of VLC media player installed on the remote host is
earlier than 2.0.1.  Such versions are affected by multiple
vulnerabilities:

  - The function 'MMSOpen' in the MMS access plugin
    contains a boundary error that can allow a stack-based
    buffer overflow when maliciously crafted MMS streams
    are opened. (CVE-2012-1775)

  - The Realrtsp plugin contains an unspecified error that
    can allow a heap-based buffer overflow when maliciously
    crafted Real rtsp streams are opened. (CVE-2012-1776)"
  );
  # https://xorl.wordpress.com/2012/05/16/cve-2012-1775-vlc-mms-support-stack-overflow/
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?58d31350"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.videolan.org/security/sa1201.html"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.videolan.org/security/sa1202.html"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.videolan.org/vlc/releases/2.0.1.html"
  );
  # Include a list of the patches that aren't
  # going out as new, fixed releases; just 
  # patches.
  # git diff for 1.2.x RealRTSP fix
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?d62cd2cc"
  );
  # git diff for 1.2.x MMS fix
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?6d1dc580"
  );
  # git diff for 1.1.x RealRTSP fix
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?22cac0f0"
  );
  # git diff for 1.1.x MMS fix
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?dbc08f65"
  );
  script_set_attribute(
    attribute:"solution",
    value:
"Upgrade to VLC Media Player version 2.0.1 or later.  Alternatively,
remove any affected plugin files from VLC's plugins directory."
  );
  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 MMS Stream Handling Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2012/03/19");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/03/19");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/03/21");

  script_set_attribute(attribute:"cpe", value:"cpe:/a:videolan:vlc_media_player");
  script_set_attribute(attribute:"plugin_type", value:"local");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

  script_copyright(english:"This script is Copyright (C) 2012-2018 Tenable Network Security, Inc.");

  script_dependencies("vlc_installed.nasl");
  script_require_keys("SMB/VLC/Version");

  exit(0);
}


include("global_settings.inc");
include("misc_func.inc");

vuln_plugins_installed = make_list();
version = get_kb_item_or_exit("SMB/VLC/Version");

# nb: 'version' may look like '0.9.8a'!
if (
  version =~ "^[01]\." ||
  version =~ "^2\.0\.0($|[^0-9])"
) version_is_vulnerable = TRUE;
else exit(0, "The VLC "+version+" install is not affected.");

installed_plugins = get_kb_list("SMB/VLC/plugin*");
if (isnull(installed_plugins)) exit(0, "Unable to obtain VLC plugin list from KB.");

foreach plugin (installed_plugins)
  if ("\libaccess_mms_plugin.dll" >< plugin || "\libaccess_realrtsp_plugin.dll" >< plugin)
    vuln_plugins_installed = make_list(vuln_plugins_installed, plugin);

if (
  # Paranoid scan
  report_paranoia > 1
  ||
  # Or non-paranoid scan and plugin file check
  (
    report_paranoia <= 1 &&
    max_index(vuln_plugins_installed) > 0
  )
)
{
  if (report_verbosity > 0)
  {
    path = get_kb_item("SMB/VLC/File");
    if (isnull(path)) path = "n/a";
    else path = ereg_replace(pattern:"^(.+)\\[^\\]+$", replace:"\1", string:path);

    report = 
      '\n  Path              : ' + path +
      '\n  Installed version : ' + version +
      '\n  Fixed version     : 2.0.1\n';

    # Add plugin paths if available
    if (max_index(vuln_plugins_installed) > 0)
    {
      report += 
      '\n  - Vulnerable Plugin ';

      if (max_index(vuln_plugins_installed) > 1)
        report += 'Paths : ';
      else
        report += 'Path  : ';

      foreach plugin_path (vuln_plugins_installed)
        report += '\n    ' + plugin_path;

      report += '\n';
    }

    security_hole(port:get_kb_item("SMB/transport"), extra:report);
  }
  else security_hole(get_kb_item("SMB/transport"));

  exit(0);
}
else exit(0, "The VLC "+version+" install does not have the affected plugins.");

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/vlc_2_0_1.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\vlc_2_0_1.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/vlc_2_0_1.nasl

Go back to menu.

How to Run


Here is how to run the VLC Media Player < 2.0.1 Multiple Vulnerabilities as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Windows plugin family.
  6. On the right side table select VLC Media Player < 2.0.1 Multiple Vulnerabilities plugin ID 58416.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. 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_2_0_1.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a vlc_2_0_1.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - vlc_2_0_1.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_2_0_1.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 62114 - FreeBSD : vlc -- arbitrary code execution in Real RTSP and MMS support (62f36dfd-ff56-11e1-8821-001b2134ef46)
  • 78879 - GLSA-201411-01 : VLC: Multiple vulnerabilities
  • 31853 - VLC Media Player < 0.8.6f Multiple Vulnerabilities
  • 34730 - VLC Media Player 0.5.0 to 0.9.5 Stack-Based Buffer Overflows
  • 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
  • 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_2_0_1.nasl version 1.12. For more plugins, visit the Nessus Plugin Library.

Go back to menu.