Nessus Web UI Scanned Content Stored XSS - Nessus

Medium   Plugin ID: 88965

This page contains detailed information about the Nessus Web UI Scanned Content Stored XSS Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 88965
Name: Nessus Web UI Scanned Content Stored XSS
Filename: nessus_web_ui_stored_xss.nasl
Vulnerability Published: 2014-10-07
This Plugin Published: 2016-02-25
Last Modification Time: 2022-04-11
Plugin Version: 1.10
Plugin Type: remote
Plugin Family: CGI abuses : XSS
Dependencies: nessus_detect.nasl
Required KB Items [?]: installed_sw/nessus

Vulnerability Information


Severity: Medium
Vulnerability Published: 2014-10-07
Patch Published: 2014-06-13
CVE [?]: CVE-2014-7280
CPE [?]: cpe:/a:tenable:nessus

Synopsis

A web server running on the remote host is affected by a cross-site scripting vulnerability.

Description

According to its self-reported version number, the Nessus web server running on the remote host is affected by a cross-site scripting vulnerability in the web-based user interface (Web UI) due to improper validation of input passed from plugins before returning it users. A remote attacker can exploit this, via a specially crafted request, to execute arbitrary script code in a user's browser session.

Solution

Upgrade the plugin feed using 'nessus-update-plugins', restart the web server, and verify Nessus Web UI version 2.3.4 (#85) or later is running. The Web UI version can be viewed by logging in and clicking the 'About' button.

Public Exploits


Target Network Port(s): 8834
Target Asset(s): Services/www
Exploit Available: True (Exploit-DB)
Exploit Ease: No exploit is required

Here's the list of publicly known exploits and PoCs for verifying the Nessus Web UI Scanned Content Stored XSS vulnerability:

  1. Exploit-DB: exploits/multiple/webapps/34929.txt
    [EDB-34929: Nessus Web UI 2.3.3 - Persistent Cross-Site Scripting]

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 Score Source [?]: CVE-2014-7280
CVSS V2 Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N/E:H/RL:OF/RC:C
CVSS Base Score:4.3 (Medium)
Impact Subscore:2.9
Exploitability Subscore:8.6
CVSS Temporal Score:3.7 (Low)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:3.7 (Low)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:N/E:H/RL:O/RC:C
CVSS Base Score:4.1 (Medium)
Impact Subscore:1.4
Exploitability Subscore:2.3
CVSS Temporal Score:3.9 (Low)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:3.9 (Low)

Go back to menu.

Plugin Source


This is the nessus_web_ui_stored_xss.nasl nessus plugin source code. This script is Copyright (C) 2016-2022 and is owned by Tenable, Inc. or an Affiliate thereof.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(88965);
  script_version("1.10");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_cve_id("CVE-2014-7280");
  script_bugtraq_id(70274);
  script_xref(name:"EDB-ID", value:"34929");

  script_name(english:"Nessus Web UI Scanned Content Stored XSS");

  script_set_attribute(attribute:"synopsis", value:
"A web server running on the remote host is affected by a cross-site
scripting vulnerability.");
  script_set_attribute(attribute:"description", value:
"According to its self-reported version number, the Nessus web server
running on the remote host is affected by a cross-site scripting
vulnerability in the web-based user interface (Web UI) due to improper
validation of input passed from plugins before returning it users. A
remote attacker can exploit this, via a specially crafted request, to
execute arbitrary script code in a user's browser session.");
  script_set_attribute(attribute:"see_also", value:"https://www.tenable.com/security/tns-2014-08");
  script_set_attribute(attribute:"see_also", value:"https://www.thesecurityfactory.be/permalink/nessus-stored-xss.html");
  script_set_attribute(attribute:"solution", value:
"Upgrade the plugin feed using 'nessus-update-plugins', restart the web
server, and verify Nessus Web UI version 2.3.4 (#85) or later is
running. The Web UI version can be viewed by logging in and clicking
the 'About' button.");
  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_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:N");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2014-7280");

  script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2014/10/07");
  script_set_attribute(attribute:"patch_publication_date", value:"2014/06/13");
  script_set_attribute(attribute:"plugin_publication_date", value:"2016/02/25");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:tenable:nessus");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_end_attributes();

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

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

  script_dependencies("nessus_detect.nasl");
  script_require_keys("installed_sw/nessus");
  script_require_ports("Services/www", 8834);

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("http.inc");
include("misc_func.inc");
include("install_func.inc");

get_install_count(app_name:"nessus", exit_if_zero:TRUE);

port = get_http_port(default:8834);

install = get_single_install(app_name:"nessus", port:port, exit_if_unknown_ver:TRUE);
path = install['path'];
install_loc = build_url(port:port, qs:path);

version = install['version'];

# Only 5.x is affected
if (version !~ "^5\.")
  audit(AUDIT_WEB_APP_NOT_AFFECTED, "Nessus", install_loc, version);

# Only web UI 2.3.3 is affected
web_ui_version = install['Web UI Version'];
if (empty_or_null(web_ui_version)) web_ui_version = install['Nessus UI Version'];
if (empty_or_null(web_ui_version)) web_ui_version = UNKNOWN_VER;
if (web_ui_version =~ "^2.3.3($| )")
{
  set_kb_item(name:'www/'+port+'/XSS', value:TRUE);

  if (report_verbosity > 0)
  {
    report = '\n  Installed web UI version : ' + web_ui_version +
             '\n  Fixed web UI version     : 2.3.4\n';
    security_warning(port:port, extra:report);
  }
  else security_warning(port);
}
else audit(AUDIT_WEB_APP_NOT_AFFECTED, "Nessus", install_loc, version + " with web UI " + web_ui_version);

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

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

Go back to menu.

How to Run


Here is how to run the Nessus Web UI Scanned Content Stored XSS 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 CGI abuses : XSS plugin family.
  6. On the right side table select Nessus Web UI Scanned Content Stored XSS plugin ID 88965.
  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 nessus_web_ui_stored_xss.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 97192 - Tenable Nessus 6.x < 6.9 Multiple Vulnerabilities (TNS-2016-16) (SWEET32)
  • 97193 - Tenable Nessus 6.8.x and 6.9.x < 6.9.1 Stored XSS (TNS-2016-17)
  • 25799 - Nessus Windows < 3.0.6.1 ScanCtrl ActiveX Multiple Method File Manipulation
  • 86949 - Nessus 5.x < 5.2.12 / 6.x < 6.4 Multiple OpenSSL Vulnerabilities
  • 118398 - Tenable Nessus < 8.0.0 Multiple Vulnerabilities (TNS-2018-14)
  • 120197 - Tenable Nessus < 8.1.1 Multiple Vulnerabilities (TNS-2018-16)
  • 120198 - Tenable Nessus < 7.1.4 Multiple Vulnerabilities (TNS-2018-17)
  • 121620 - Tenable Nessus < 8.2.2 Stored XSS Vulnerability (TNS-2019-01)
  • 123462 - Tenable Nessus < 8.3.0 Multiple Vulnerabilities (TNS-2019-02)
  • 148297 - Tenable Nessus 8.9.0 < 8.13.2 Multiple Vulnerabilities (TNS-2021-05)
  • 150798 - Tenable Nessus 8.x.x < 8.15.0 Multiple Vulnerabilities (TNS-2021-11)
  • 157339 - Tenable Nessus 10.x < 10.1.0 / 8.x < 8.15.3 Third-Party Vulnerability (TNS-2022-04)
  • 157425 - Tenable Nessus 10.x < 10.1.1 / 8.x < 8.15.3 Third-Party Vulnerabilities (TNS-2022-05)
  • 159376 - Tenable Nessus 10.x < 10.1.2 / 8.x < 8.15.4 Third-Party Vulnerability (TNS-2022-06)
  • 147729 - Nessus Network Monitor < 5.13.0 Multiple Vulnerabilities (TNS-2021-02)
  • 149403 - Nessus Network Monitor < 5.13.1 Multiple Vulnerabilities (TNS-2021-09)
  • 125882 - Tenable Nessus Agent < 7.4.0 Third Party Vulnerability (OpenSSL) (TNS-2019-03)
  • 137757 - Tenable Nessus Agent < 7.6.3 Third Party Vulnerability (OpenSSL) (TNS-2020-03)
  • 147895 - Tenable Nessus Agent < 8.2.3 Multiple Vulnerabilities (TNS-2021-04)
  • 148392 - Tenable Nessus Agent < 8.2.4 Multiple Vulnerabilities (TNS-2021-08)
  • 153159 - Tenable Nessus Agent < 8.3.1 Multiple Vulnerabilities (TNS-2021-15)
  • 159378 - Tenable Nessus Agent < 8.3.3 / 10.x < 10.1.3 Third-Party Vulnerability (TNS-2022-07)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file nessus_web_ui_stored_xss.nasl version 1.10. For more plugins, visit the Nessus Plugin Library.

Go back to menu.