Symantec Web Gateway < 5.2.2 Authenticated OS Command Injection (SYM14-016) - Nessus

Medium   Plugin ID: 80118

This page contains detailed information about the Symantec Web Gateway < 5.2.2 Authenticated OS Command Injection (SYM14-016) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 80118
Name: Symantec Web Gateway < 5.2.2 Authenticated OS Command Injection (SYM14-016)
Filename: symantec_web_gateway_sym14-016.nasl
Vulnerability Published: 2014-12-16
This Plugin Published: 2014-12-19
Last Modification Time: 2021-01-19
Plugin Version: 1.14
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: symantec_web_gateway_detect.nasl
Required KB Items [?]: installed_sw/symantec_web_gateway

Vulnerability Information


Severity: Medium
Vulnerability Published: 2014-12-16
Patch Published: 2014-12-16
CVE [?]: CVE-2014-7285
CPE [?]: cpe:/a:symantec:web_gateway

Synopsis

A web security application hosted on the remote web server is affected by a OS command injection vulnerability.

Description

According to its self-reported version number, the remote web server is hosting a version of Symantec Web Gateway prior to version 5.2.2. It is, therefore, affected by a operating system (OS) command injection vulnerability in an unspecified PHP script which impacts the management console. A remote, authenticated user can exploit this issue to execute arbitrary OS commands subject to the privileges of the authenticated user.

Solution

Upgrade to Symantec Web Gateway 5.2.2 or later.

Public Exploits


Target Network Port(s): 443
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub)
Exploit Ease: No exploit is required

Here's the list of publicly known exploits and PoCs for verifying the Symantec Web Gateway < 5.2.2 Authenticated OS Command Injection (SYM14-016) vulnerability:

  1. Metasploit: exploit/linux/http/symantec_web_gateway_restore
    [Symantec Web Gateway 5 restore.php Post Authentication Command Injection]
  2. Exploit-DB: exploits/linux/remote/36263.rb
    [EDB-36263: Symantec Web Gateway 5 - 'restore.php' (Authenticated) Command Injection (Metasploit)]
  3. GitHub: https://github.com/pinkymm/inconsistency_detection
    [CVE-2014-7285]

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-7285
CVSS V2 Vector: AV:N/AC:L/Au:S/C:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score:6.5 (Medium)
Impact Subscore:6.4
Exploitability Subscore:8.0
CVSS Temporal Score:5.4 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:5.4 (Medium)

Go back to menu.

Plugin Source


This is the symantec_web_gateway_sym14-016.nasl nessus plugin source code. This script is Copyright (C) 2014-2021 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(80118);
  script_version("1.14");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");

  script_cve_id("CVE-2014-7285");
  script_bugtraq_id(71620);

  script_name(english:"Symantec Web Gateway < 5.2.2 Authenticated OS Command Injection (SYM14-016)");
  script_summary(english:"Checks the SWG version.");

  script_set_attribute(attribute:"synopsis", value:
"A web security application hosted on the remote web server is affected
by a OS command injection vulnerability.");
  script_set_attribute(attribute:"description", value:
"According to its self-reported version number, the remote web server
is hosting a version of Symantec Web Gateway prior to version 5.2.2.
It is, therefore, affected by a operating system (OS) command
injection vulnerability in an unspecified PHP script which impacts the
management console. A remote, authenticated user can exploit this
issue to execute arbitrary OS commands subject to the privileges of
the authenticated user.");
  script_set_attribute(attribute:"see_also", value:"http://karmainsecurity.com/KIS-2014-19");
  # https://support.symantec.com/en_US/article.SYMSA1306.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?ec931e05");
  script_set_attribute(attribute:"solution", value:
"Upgrade to Symantec Web Gateway 5.2.2 or later.");
  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:F/RL:OF/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2014-7285");

  script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Symantec Web Gateway 5 restore.php Post Authentication Command Injection');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2014/12/16");
  script_set_attribute(attribute:"patch_publication_date", value:"2014/12/16");
  script_set_attribute(attribute:"plugin_publication_date", value:"2014/12/19");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:symantec:web_gateway");
  script_end_attributes();

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

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

  script_dependencies("symantec_web_gateway_detect.nasl");
  script_require_keys("installed_sw/symantec_web_gateway");
  script_require_ports("Services/www", 443);

  exit(0);
}

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

port = get_http_port(default:443, php:TRUE);
app = 'Symantec Web Gateway';

install = get_single_install(
  app_name : 'symantec_web_gateway',
  port     : port,
  exit_if_unknown_ver : TRUE
);

dir = install['path'];
ver = install['version'];
url = build_url(port:port, qs:dir);

fix = '5.2.2';

if (ver_compare(ver:ver, fix:fix, strict:FALSE) < 0)
{
  if (report_verbosity > 0)
  {
    report =
      '\n  URL               : ' + url +
      '\n  Installed version : ' + ver +
      '\n  Fixed version     : ' + fix + '\n';
    security_warning(port:port, extra:report);
  }
  else security_warning(port);
}
else audit(AUDIT_WEB_APP_NOT_AFFECTED, app, url, ver);

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

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

Go back to menu.

How to Run


Here is how to run the Symantec Web Gateway < 5.2.2 Authenticated OS Command Injection (SYM14-016) 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 plugin family.
  6. On the right side table select Symantec Web Gateway < 5.2.2 Authenticated OS Command Injection (SYM14-016) plugin ID 80118.
  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 symantec_web_gateway_sym14-016.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 81549 - Symantec Data Center Security Server SQLi (SYM15-001)
  • 81551 - Symantec Data Center Security Server 'environment.jsp' Information Disclosure (SYM15-001)
  • 85351 - Symantec Endpoint Protection Manager < 12.1 RU6 MP1 Multiple Vulnerabilities (SYM15-007)
  • 53209 - Symantec LiveUpdate Administrator < 2.3 CSRF (SYM11-005)
  • 62010 - Symantec Messaging Gateway 9.5.x Multiple Vulnerabilities (SYM12-013)
  • 90919 - Symantec Messaging Gateway 10.x < 10.6.1 Management Console Multiple Vulnerabilities (SYM16-005)
  • 93653 - Symantec Messaging Gateway 10.x < 10.6.2 Multiple Vulnerabilities (SYM16-015) (SYM16-016)
  • 101158 - Symantec Messaging Gateway 10.x < 10.6.3-266 Multiple Vulnerabilities (SYM17-004)
  • 102528 - Symantec Messaging Gateway 10.x < 10.6.3-267 Multiple Vulnerabilities (SYM17-006)
  • 125357 - Symantec (Blue Coat) Reporter Denial of Service vulnerability (SYMSA1280)
  • 59208 - Symantec Web Gateway ipchange.php Shell Command Injection (SYM12-006) (intrusive check)
  • 61435 - Symantec Web Gateway Multiple Script Shell Command Execution (SYM12-011)
  • 61436 - Symantec Web Gateway search.php SQL Injection (SYM12-011)
  • 59209 - Symantec Web Gateway < 5.0.3 Multiple Vulnerabilities (SYM12-006) (version check)
  • 69179 - Symantec Web Gateway < 5.1.1 Multiple Vulnerabilities (SYM13-008)
  • 94052 - Symantec Web Gateway < 5.2.5 Management Console Command Injection (SYM16-017)
  • 59210 - Symantec Web Gateway upload_file() Remote Code Execution (SYM12-006) (intrusive check)

Version


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

Go back to menu.