EMC RSA Authentication Manager < 8.4 Patch 8 XSS (DSA-2019-168)

2019-12-12T00:00:00
ID EMC_RSA_AM_8_4_P8.NASL
Type nessus
Reporter This script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
Modified 2020-04-02T00:00:00

Description

The version of EMC RSA Authentication Manager running on the remote host is prior to 8.4 Patch 8 (8.4.0.8). It is, therefore affected by a stored cross-site scripting vulnerability in the Security Console. A malicious, authenticated, remote Security Console administrator can exploit this vulnerability to store arbitrary HTML or JavaScript code through the web interface, which can then be included in a report. When other Security Console administrators open an affected report, injected scripts could be executed in their browser.

Note that Nessus has not tested for this issue but has instead relied only on the application

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

include('compat.inc');

if (description)
{
  script_id(132018);
  script_version("1.2");
  script_cvs_date("Date: 2019/12/16");

  script_cve_id("CVE-2019-18574");
  script_xref(name:"IAVB", value:"2019-B-0090");

  script_name(english:"EMC RSA Authentication Manager < 8.4 Patch 8 XSS (DSA-2019-168)");

  script_set_attribute(attribute:"synopsis", value:
"An application running on the remote host is affected by multiple
vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The version of EMC RSA Authentication Manager running on the remote host is prior to 8.4 Patch 8 (8.4.0.8). It is,
therefore affected by a stored cross-site scripting vulnerability in the Security Console. A malicious, authenticated,
remote Security Console administrator can exploit this vulnerability to store arbitrary HTML or JavaScript code through
the web interface, which can then be included in a report. When other Security Console administrators open an affected
report, injected scripts could be executed in their browser.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
  # https://www.dell.com/support/security/en-us/details/DOC-109297/DSA-2019-168-RSA%C2%AE-Authentication-Manager-Software-Stored-Cross-Site-Scripting-Vulnerability
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?f7c87fb4");
  script_set_attribute(attribute:"solution", value:
"Upgrade to EMC RSA Authentication Manager version 8.4 Patch 8 (8.4.0.8) or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:S/C:N/I:P/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-18574");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");

  script_set_attribute(attribute:"vuln_publication_date", value:"2019/11/25");
  script_set_attribute(attribute:"patch_publication_date", value:"2019/11/25");
  script_set_attribute(attribute:"plugin_publication_date", value:"2019/12/12");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:emc:rsa_authentication_manager");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:rsa:authentication_manager");
  script_set_attribute(attribute:"stig_severity", value:"II");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("emc_rsa_am_detect.nbin");
  script_require_keys("www/emc_rsa_am");
  script_require_ports("Services/www", 7004);

  exit(0);
}

include('audit.inc');
include('global_settings.inc');
include('http.inc');
include('misc_func.inc');

get_kb_item_or_exit('www/emc_rsa_am');

app_name = 'EMC RSA Authentication Manager';
port = get_http_port(default:7004);
kb_prefix = 'www/'+port+'/emc_rsa_am/';

report_url = get_kb_item_or_exit(kb_prefix + 'url');
version = get_kb_item_or_exit(kb_prefix + 'version');
version_display = get_kb_item_or_exit(kb_prefix + 'version_display');

fix = '8.4.0.8';
fix_display = '8.4 Patch 8';

if (version =~ "^[0-8]\." && ver_compare(ver:version, fix:fix, strict:FALSE) < 0)
{
  report =
    '\n  URL               : ' + report_url +
    '\n  Installed version : ' + version_display +
    '\n  Fixed version     : ' + fix_display +
    '\n';
  security_report_v4(port:port, extra:report, severity:SECURITY_NOTE, xss:TRUE);
  exit(0);
}
else audit(AUDIT_WEB_APP_NOT_AFFECTED, app_name, report_url);