Vulnerabilities > CVE-2015-2702 - Cross-site Scripting vulnerability in Websense products

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN

Summary

Cross-site scripting (XSS) vulnerability in the Message Log in the Email Security Gateway in Websense TRITON AP-EMAIL before 8.0.0 and V-Series 7.7 appliances allows remote attackers to inject arbitrary web script or HTML via the sender address in an email.

Vulnerable Configurations

Part Description Count
Application
Websense
4

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Embedding Scripts in Non-Script Elements
    This attack is a form of Cross-Site Scripting (XSS) where malicious scripts are embedded in elements that are not expected to host scripts such as image tags (<img>), comments in XML documents (< !-CDATA->), etc. These tags may not be subject to the same input validation, output validation, and other content filtering and checking routines, so this can create an opportunity for an attacker to tunnel through the application's elements and launch a XSS attack through other elements. As with all remote attacks, it is important to differentiate the ability to launch an attack (such as probing an internal network for unpatched servers) and the ability of the remote attacker to collect and interpret the output of said attack.
  • Embedding Scripts within Scripts
    An attack of this type exploits a programs' vulnerabilities that are brought on by allowing remote hosts to execute scripts. The attacker leverages this capability to execute scripts to execute his/her own script by embedding it within other scripts that the target software is likely to execute. The attacker must have the ability to inject script into script that is likely to be executed. If this is done, then the attacker can potentially launch a variety of probes and attacks against the web server's local environment, in many cases the so-called DMZ, back end resources the web server can communicate with, and other hosts. With the proliferation of intermediaries, such as Web App Firewalls, network devices, and even printers having JVMs and Web servers, there are many locales where an attacker can inject malicious scripts. Since this attack pattern defines scripts within scripts, there are likely privileges to execute said attack on the host. Of course, these attacks are not solely limited to the server side, client side scripts like Ajax and client side JavaScript can contain malicious scripts as well. In general all that is required is for there to be sufficient privileges to execute a script, but not protected against writing.
  • Cross-Site Scripting in Error Pages
    An attacker distributes a link (or possibly some other query structure) with a request to a third party web server that is malformed and also contains a block of exploit code in order to have the exploit become live code in the resulting error page. When the third party web server receives the crafted request and notes the error it then creates an error message that echoes the malformed message, including the exploit. Doing this converts the exploit portion of the message into to valid language elements that are executed by the viewing browser. When a victim executes the query provided by the attacker the infected error message error message is returned including the exploit code which then runs in the victim's browser. XSS can result in execution of code as well as data leakage (e.g. session cookies can be sent to the attacker). This type of attack is especially dangerous since the exploit appears to come from the third party web server, who the victim may trust and hence be more vulnerable to deception.
  • Cross-Site Scripting Using Alternate Syntax
    The attacker uses alternate forms of keywords or commands that result in the same action as the primary form but which may not be caught by filters. For example, many keywords are processed in a case insensitive manner. If the site's web filtering algorithm does not convert all tags into a consistent case before the comparison with forbidden keywords it is possible to bypass filters (e.g., incomplete black lists) by using an alternate case structure. For example, the "script" tag using the alternate forms of "Script" or "ScRiPt" may bypass filters where "script" is the only form tested. Other variants using different syntax representations are also possible as well as using pollution meta-characters or entities that are eventually ignored by the rendering engine. The attack can result in the execution of otherwise prohibited functionality.

Nessus

NASL familyWindows
NASL idWEBSENSE_TRITON_USC_8.NASL
descriptionThe remote host is running Websense TRITON version 7.8.2 through 7.8.4. It is, therefore, potentially affected by multiple vulnerabilities : - Multiple cross-site scripting vulnerabilities exist in the Investigative Reports due to a failure to properly validate the input to the
last seen2020-06-01
modified2020-06-02
plugin id83739
published2015-05-21
reporterThis script is Copyright (C) 2015-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/83739
titleWebsense TRITON 7.8 Multiple Vulnerabilities
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(83739);
  script_version("1.3");
  script_cvs_date("Date: 2018/08/06 14:03:16");

  script_cve_id(
    "CVE-2014-9711",
    "CVE-2015-2702",
    "CVE-2015-2703",
    "CVE-2015-2746",
    "CVE-2015-2748"
  );
  script_bugtraq_id(
    73233,
    73236,
    73240,
    73241,
    73242,
    73243,
    73345
  );

  script_name(english:"Websense TRITON 7.8 Multiple Vulnerabilities");
  script_summary(english:"Do a paranoid version check for Websense TRITON.");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server hosts an information security application with
multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The remote host is running Websense TRITON version 7.8.2 through
7.8.4. It is, therefore, potentially affected by multiple 
vulnerabilities :

  - Multiple cross-site scripting vulnerabilities exist in
    the Investigative Reports due to a failure to properly
    validate the input to the 'ReportName' parameter to the
    Explorer report scheduler and the input to the 'col'
    parameter to the Names and Anonymous summary report
    pages. A remote attacker can exploit these
    vulnerabilities to inject arbitrary script or HTML in
    the user's browser session. (CVE-2014-9711)

  - A stored cross-site scripting flaw exists due to a
    failure to validate input to the sender address field
    from an email when viewing audit log details. Websense
    TRITON is affected only if the Email Security component
    is installed. (CVE-2015-2702)

  - Multiple cross-site scripting vulnerabilities exist due
    to a failure to validate the input to the 'ws-encdata'
    parameter of the 'moreBlockInfo.cgi' script in the Data
    Security block page and the input to the 'admin_msg'
    parameter to the 'client-cert-import_wsoem.html' in the
    Content Gateway. A remote attacker can exploit these
    vulnerabilities to inject arbitrary script or HTML in
    the user's browser session. Websense TRITON is affected
    only if the Web Security component is installed.
    (CVE-2015-2703)

  - A command injection flaw exists due to a failure to
    validate the 'Destination' parameter of the
    CommandLineServlet of the Appliance Manager interface.
    An authenticated attacker can submit a specially crafted
    request to the servlet resulting in arbitrary commands
    being run as the root user on any V-Series appliances
    being managed by Websense TRITON. Note that the commands
    are executed on the appliance only and not the server
    that Websense TRITON is running on. (CVE-2015-2746)

  - Websense TRITON does not properly restrict access to
    files in the 'explorer_wse/' path. A remote attacker, by
    using a direct request to a Web Security incident report
    or the Explorer configuration (websense.ini) file, can
    thereby gain access to sensitive information. Websense
    TRITON is affected only if the Web Security component is
    installed. (CVE-2015-2748)");
  # https://www.securify.nl/advisory/SFY20140914/multiple_cross_site_scripting_vulnerabilities_in_websense_reporting.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?3bff864f");
  # https://www.securify.nl/advisory/SFY20140906/command_injection_vulnerability_in_network_diagnostics_tool_of_websense_appliance_manager.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?1605810b");
  # https://www.securify.nl/advisory/SFY20140916/error_messages_of_websense_content_gateway_are_vulnerable_to_cross_site_scripting.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?f5915409");
  # https://www.securify.nl/advisory/SFY20140910/cross_site_scripting_vulnerability_in_websense_data_security_block_page.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b4f2a526");
  # https://www.securify.nl/advisory/SFY20140911/cross_site_scripting_vulnerability_in_websense_explorer_report_scheduler.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?35904cd7");
  # https://www.securify.nl/advisory/SFY20140905/websense_email_security_vulnerable_to_persistent_cross_site_scripting_in_audit_log_details_view.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?d81ea8fc");
  # http://www.websense.com/support/article/kbarticle/Vulnerabilities-resolved-in-TRITON-APX-Version-8-0
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?c46d757d");
  script_set_attribute(attribute:"solution", value:
"Some hotfixes have been released to address individual issues;
however, only updating to 8.0 resolves all the issues listed.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:POC/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:"vuln_publication_date", value:"2014/09/01");
  script_set_attribute(attribute:"patch_publication_date", value:"2015/04/08");
  script_set_attribute(attribute:"plugin_publication_date", value:"2015/05/21");

  script_set_attribute(attribute:"potential_vulnerability", value:"true");
  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:websense:triton_ap_data");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:websense:triton_ap_email");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:websense:triton_ap_web");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:websense:triton_unified_security_center");
  script_end_attributes();

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

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

  script_dependencies("websense_triton_usc_installed.nbin");
  script_require_keys("installed_sw/Websense TRITON", "Settings/ParanoidReport");

  exit(0);
}

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

app     = "Websense TRITON";
install = get_single_install(app_name:app, port:port, exit_if_unknown_ver:TRUE);
version = install['version'];
path    = install['path'];

if(report_paranoia < 2)
  audit(AUDIT_PARANOID);

# Can only confirm 7.8.2 - 7.8.4 are affected by this set
if(ver_compare(ver:version, fix:"7.8.2", strict:FALSE) <= -1 ||
   ver_compare(ver:version, fix:"7.8.4", strict:FALSE) >=  1)
  audit(AUDIT_INST_PATH_NOT_VULN,app,version,path);

port = get_kb_item("SMB/transport");
if (!port) port = 445;

set_kb_item(name:'www/'+port+'/XSS', value:TRUE);

if(report_verbosity > 0)
{
  report = '\n  Path    : '+path+
           '\n  Version : '+version+
           '\n  Fixed   : 8.0.0'+
           '\n';
  security_warning(port:port, extra:report);
}
else security_warning(port);