Vulnerabilities > CVE-2013-3564 - Information Exposure vulnerability in Videolan VLC Media Player

047910
CVSS 5.0 - MEDIUM
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
NONE
Availability impact
NONE
network
low complexity
videolan
CWE-200
nessus

Summary

The web interface in VideoLAN VLC media player before 2.0.7 has no access control which allows remote attackers to view directory listings via the 'dir' command or issue other commands without authenticating.

Vulnerable Configurations

Part Description Count
Application
Videolan
108

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Subverting Environment Variable Values
    The attacker directly or indirectly modifies environment variables used by or controlling the target software. The attacker's goal is to cause the target software to deviate from its expected operation in a manner that benefits the attacker.
  • Footprinting
    An attacker engages in probing and exploration activity to identify constituents and properties of the target. Footprinting is a general term to describe a variety of information gathering techniques, often used by attackers in preparation for some attack. It consists of using tools to learn as much as possible about the composition, configuration, and security mechanisms of the targeted application, system or network. Information that might be collected during a footprinting effort could include open ports, applications and their versions, network topology, and similar information. While footprinting is not intended to be damaging (although certain activities, such as network scans, can sometimes cause disruptions to vulnerable applications inadvertently) it may often pave the way for more damaging attacks.
  • Exploiting Trust in Client (aka Make the Client Invisible)
    An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Browser Fingerprinting
    An attacker carefully crafts small snippets of Java Script to efficiently detect the type of browser the potential victim is using. Many web-based attacks need prior knowledge of the web browser including the version of browser to ensure successful exploitation of a vulnerability. Having this knowledge allows an attacker to target the victim with attacks that specifically exploit known or zero day weaknesses in the type and version of the browser used by the victim. Automating this process via Java Script as a part of the same delivery system used to exploit the browser is considered more efficient as the attacker can supply a browser fingerprinting method and integrate it with exploit code, all contained in Java Script and in response to the same web page request by the browser.
  • Session Credential Falsification through Prediction
    This attack targets predictable session ID in order to gain privileges. The attacker can predict the session ID used during a transaction to perform spoofing and session hijacking.

Nessus

  • NASL familyWindows
    NASL idVLC_2_0_7.NASL
    descriptionThe version of VLC media player installed on the remote host is earlier than 2.0.7 and is, therefore, affected by the following vulnerabilities: - The web interface contains a flaw that does not validate input passed via XML services resulting in a cross-site scripting vulnerability. - A flaw exists in the XML services of the web interface that may allow a remote attacker to execute media player commands. - A flaw exists that could lead to a denial of service / memory consumption when loading a malicious playlist.
    last seen2020-06-01
    modified2020-06-02
    plugin id69015
    published2013-07-23
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/69015
    titleVLC < 2.0.7 Multiple Vulnerabilities
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(69015);
      script_version("1.8");
      script_cvs_date("Date: 2019/11/27");
    
      script_cve_id("CVE-2013-3564", "CVE-2013-3565", "CVE-2013-7340");
      script_bugtraq_id(60705, 66546);
    
      script_name(english:"VLC < 2.0.7 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.7 and is, therefore, affected by the following vulnerabilities:
    
      - The web interface contains a flaw that does not validate
        input passed via XML services resulting in a cross-site
        scripting vulnerability.
    
      - A flaw exists in the XML services of the web interface
        that may allow a remote attacker to execute media player
        commands.
    
      - A flaw exists that could lead to a denial of service / 
        memory consumption when loading a malicious playlist.");
      # http://blog.spiderlabs.com/2013/06/twsl2013-006-cross-site-scripting-vulnerability-in-coldbox.html
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?6f33883d");
      script_set_attribute(attribute:"see_also", value:"https://www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2013-007/?fid=3876&dl=1");
      script_set_attribute(attribute:"see_also", value:"http://www.videolan.org/vlc/releases/2.0.7.html");
      script_set_attribute(attribute:"solution", value:
    "Upgrade to VLC version 2.0.7 or later.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:N/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2013-7340");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
      script_cwe_id(20, 74, 79, 442, 629, 711, 712, 722, 725, 750, 751, 800, 801, 809, 811, 864, 900, 928, 931, 990);
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/06/10");
      script_set_attribute(attribute:"patch_publication_date", value:"2013/05/26");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/23");
    
      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) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("vlc_installed.nasl");
      script_require_keys("SMB/VLC/Version");
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    
    vuln_plugins_installed = make_list();
    version = get_kb_item_or_exit("SMB/VLC/Version");
    
    path = get_kb_item_or_exit("SMB/VLC/File");
    path = ereg_replace(pattern:"^(.+)\\[^\\]+$", replace:"\1", string:path);
    
    port = get_kb_item("SMB/transport");
    if (!port) port = 445;
    
    # nb: 'version' may look like '0.9.8a'!
    if (
      version =~ "^[01]\." ||
      version =~ "^2\.0\.[0-6]($|[^0-9])"
    )
    {
      set_kb_item(name:"www/"+port+"/XSS", value:TRUE);
      if (report_verbosity > 0)
      {
        report =
          '\n  Path              : ' + path +
          '\n  Installed version : ' + version +
          '\n  Fixed version     : 2.0.7\n';
        security_warning(port:port, extra:report);
      }
      else security_warning(port);
      exit(0);
    }
    else audit(AUDIT_INST_PATH_NOT_VULN, "VLC", version, path);
    
  • NASL familyCGI abuses : XSS
    NASL idVLC_WEB_XML_SERVICES_XSS.NASL
    descriptionThe VLC media player install on the remote host is affected by a cross-site scripting vulnerability because it fails to sanitize input passed via XML services in the web interface. Note that the install is likely to be affected by additional vulnerabilities as well, although Nessus has not tested for these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id69018
    published2013-07-23
    reporterThis script is Copyright (C) 2013-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/69018
    titleVLC Web Interface XML Services XSS
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(69018);
      script_version("1.4");
      script_cvs_date("Date: 2018/11/15 20:50:20");
    
      script_cve_id("CVE-2013-3564");
      script_bugtraq_id(60705);
    
      script_name(english:"VLC Web Interface XML Services XSS");
      script_summary(english:"Attempts a non-persistent XSS");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote web server is affected by cross-site scripting
    vulnerability.");
      script_set_attribute(attribute:"description", value:
    "The VLC media player install on the remote host is affected by a
    cross-site scripting vulnerability because it fails to sanitize input
    passed via XML services in the web interface. 
    
    Note that the install is likely to be affected by additional
    vulnerabilities as well, although Nessus has not tested for these
    issues.");
      script_set_attribute(attribute:"see_also", value:"http://www.videolan.org/vlc/releases/2.0.7.html");
      script_set_attribute(attribute:"see_also", value:"https://www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2013-007/?fid=3876&dl=1");
      # http://blog.spiderlabs.com/2013/06/twsl2013-006-cross-site-scripting-vulnerability-in-coldbox.html
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?6f33883d");
      script_set_attribute(attribute:"solution", value:"Upgrade to VLC 2.0.7 or later.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N");
      script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
      script_set_attribute(attribute:"exploit_available", value:"false");
      script_cwe_id(20, 74, 79, 442, 629, 711, 712, 722, 725, 750, 751, 800, 801, 809, 811, 864, 900, 928, 931, 990);
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/06/10");
      script_set_attribute(attribute:"patch_publication_date", value:"2013/05/26");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/23");
    
      script_set_attribute(attribute:"cpe", value:"cpe:/a:videolan:vlc_media_player");
      script_set_attribute(attribute:"plugin_type", value:"remote");
    
      script_end_attributes();
    
      script_category(ACT_ATTACK);
      script_family(english:"CGI abuses : XSS");
    
      script_copyright(english:"This script is Copyright (C) 2013-2018 Tenable Network Security, Inc.");
    
      script_dependencies("vlc_web_detect.nasl");
      script_require_ports("Services/www", 8080);
      script_require_keys("www/VLC/installed");
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("http.inc");
    include("url_func.inc");
    
    port = get_http_port(default:8080);
    appname = "VLC media player";
    
    installed = get_kb_item("www/VLC/installed");
    if (isnull(installed)) audit(AUDIT_WEB_APP_NOT_INST, appname, port);
    
    install_url = build_url(port:port, qs:"/");
    acl = get_kb_item("www/VLC/" + port + "/acl");
    if (acl) audit(AUDIT_WEB_APP_NOT_AFFECTED, appname, install_url);
    
    xss_test = "'<a xmlns:nessus='http://www.w3.org/1999/xhtml'><nessus:body onload='alert(" + '"' + SCRIPT_NAME + '-' + unixtime() + '"' + ")'/></a>";
    exploit = test_cgi_xss(
      port  : port,
      dirs  : make_list(""),
      cgi   : '/requests/vlm_cmd.xml',
      qs    : 'command=' + SCRIPT_NAME + urlencode(str:xss_test),
      pass_str : xss_test,
      pass_re  : 'Incomplete command :'
    );
    if (!exploit) audit(AUDIT_WEB_APP_NOT_AFFECTED, appname, install_url);
    
    
  • NASL familyCGI abuses
    NASL idVLC_WEB_DIR_LISTING.NASL
    descriptionThe web interface for VLC media player listening on the remote host does not require authentication, which allows an unauthenticated remote attacker to issue XML service commands via the VLC Web Interface.
    last seen2020-06-01
    modified2020-06-02
    plugin id69017
    published2013-07-23
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/69017
    titleVLC Web Interface XML Services Remote Command Execution
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(69017);
      script_version("1.8");
      script_cvs_date("Date: 2019/11/27");
    
      script_cve_id("CVE-2013-3564");
      script_bugtraq_id(60705);
    
      script_name(english:"VLC Web Interface XML Services Remote Command Execution");
      script_summary(english:"Tries to send 'dir' command via web interface");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote web server is affected by a remote code execution
    vulnerability.");
      script_set_attribute(attribute:"description", value:
    "The web interface for VLC media player listening on the remote host
    does not require authentication, which allows an unauthenticated remote
    attacker to issue XML service commands via the VLC Web Interface.");
      script_set_attribute(attribute:"see_also", value:"http://www.videolan.org/vlc/releases/2.0.7.html");
      script_set_attribute(attribute:"see_also", value:"https://www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2013-007/?fid=3876&dl=1");
      # http://blog.spiderlabs.com/2013/06/twsl2013-006-cross-site-scripting-vulnerability-in-coldbox.html
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?6f33883d");
      script_set_attribute(attribute:"solution", value:
    "Upgrade to VLC 2.x if necessary and configure access control lists
    (ACLs) in the application to limit access to trusted hosts.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:N/A:N");
      script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/RC:C");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
      script_set_attribute(attribute:"exploit_available", value:"false");
      script_set_attribute(attribute:"exploited_by_nessus", value:"true");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/06/10");
      script_set_attribute(attribute:"patch_publication_date", value:"2013/05/26");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/23");
    
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:videolan:vlc_media_player");
      script_end_attributes();
    
      script_category(ACT_ATTACK);
      script_family(english:"CGI abuses");
    
      script_copyright(english:"This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("vlc_web_detect.nasl");
      script_require_keys("www/VLC/installed");
      script_require_ports("Services/www", 8080);
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("http.inc");
    include("webapp_func.inc");
    
    port = get_http_port(default:8080);
    appname = "VLC media player";
    
    installed = get_kb_item("www/VLC/installed");
    if (isnull(installed)) audit(AUDIT_WEB_APP_NOT_INST, appname, port);
    
    install_url = build_url(port:port, qs:"/");
    acl = get_kb_item("www/VLC/" + port + "/acl");
    if(acl) audit(AUDIT_WEB_APP_NOT_AFFECTED, appname, install_url);
    exploit = "/requests/browse.xml?dir=/";
    res = http_send_recv3(
        method       : "GET",
        item         : exploit,
        port         : port
    );
    res = res[2];
    
    if(
       '<?xml version="1.0"' >< res &&
       '<element' >< res &&
       '<root>' >< res &&
       'modification_time' >< res
    )
    {
      line_limit = 10;
      if (report_verbosity > 0)
      {
        header =
          'Nessus was able to exploit the issue using the following URL';
        trailer = '';
    
        if (report_verbosity > 1)
        {
          trailer =
            'Here are its contents (limited to ' + line_limit + ' lines) :\n' +
            '\n' +
            crap(data:"-", length:30) + " snip " + crap(data:"-", length:30) + '\n' +
            beginning_of_response(resp:res, max_lines:line_limit) +
            crap(data:"-", length:30) + " snip " + crap(data:"-", length:30);
        }
        report = get_vuln_report(items:exploit, port:port, header:header, trailer:trailer);
        security_warning(port:port, extra:data_protection::sanitize_user_paths(report_text:report));
      }
      else security_warning(port);
      exit(0);
    }
    else audit(AUDIT_WEB_APP_NOT_AFFECTED, appname, install_url);