Symantec Messaging Gateway 9.5.x Multiple Vulnerabilities (SYM12-013) - Nessus

High   Plugin ID: 62010

This page contains detailed information about the Symantec Messaging Gateway 9.5.x Multiple Vulnerabilities (SYM12-013) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 62010
Name: Symantec Messaging Gateway 9.5.x Multiple Vulnerabilities (SYM12-013)
Filename: symantec_messaging_gateway_sym12-013.nasl
Vulnerability Published: 2012-08-27
This Plugin Published: 2012-09-07
Last Modification Time: 2021-01-19
Plugin Version: 1.21
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: symantec_messaging_gateway_detect.nasl
Required KB Items [?]: www/sym_msg_gateway

Vulnerability Information


Severity: High
Vulnerability Published: 2012-08-27
Patch Published: 2012-08-27
CVE [?]: CVE-2012-0307, CVE-2012-0308, CVE-2012-3579, CVE-2012-3580, CVE-2012-3581, CVE-2012-4347
CPE [?]: cpe:/a:symantec:messaging_gateway

Synopsis

A messaging security application running on the remote host has multiple vulnerabilities.

Description

According to its self-reported version number, the version of Symantec Messaging Gateway running on the remote host is 9.5.x and has the following vulnerabilities :

- Multiple XSS vulnerabilities exist. (CVE-2012-0307)

- Lack of password protection on sensitive functions as well as of CSRF protection could be abused through CSRF attacks, for example, to add a backdoor administrator account. (CVE-2012-0308)

- The 'support' account with SSH access is secured with the password 'symantec'. (CVE-2012-3579)

- An unspecified web application modification issue exists. (CVE-2012-3580)

- An unspecified flaw may allow a remote attacker to gain access to potentially sensitive component version information. (CVE-2012-3581)

- An authenticated user is able to download arbitrary files with the permissions of the Webserver user using specially crafted GET requests, such as using the 'logFile' parameter of 'brightmail/export', the 'localBackupFileSelection' parameter of 'brightmail/admin/restore/download.do', and possibly others. (CVE-2012-4347)

Solution

Upgrade to Symantec Messaging Gateway 10.0 or later.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, Core Impact, D2 Elliot)
Exploit Ease: No exploit is required

Here's the list of publicly known exploits and PoCs for verifying the Symantec Messaging Gateway 9.5.x Multiple Vulnerabilities (SYM12-013) vulnerability:

  1. Metasploit: exploit/linux/ssh/symantec_smg_ssh
    [Symantec Messaging Gateway 9.5 Default SSH Password Vulnerability]
  2. Metasploit: auxiliary/scanner/http/symantec_brightmail_logfile
    [Symantec Messaging Gateway 9.5 Log File Download Vulnerability]
  3. Exploit-DB: exploits/linux/remote/21136.rb
    [EDB-21136: Symantec Messaging Gateway 9.5/9.5.1 - SSH Default Password Security Bypass (Metasploit)]
  4. Exploit-DB: exploits/multiple/webapps/23109.txt
    [EDB-23109: Symantec Messaging Gateway 9.5.3-3 - Cross-Site Request Forgery]
  5. Exploit-DB: exploits/linux/webapps/23110.txt
    [EDB-23110: Symantec Messaging Gateway 9.5.3-3 - Arbitrary File Download]
  6. D2 Elliot: symantec_messaging_gateway_9.5.3_file_disclosure.html
    [Symantec Messaging Gateway 9.5.3 File Disclosure]

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-2012-3579
CVSS V2 Vector: AV:A/AC:M/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:7.9 (High)
Impact Subscore:10.0
Exploitability Subscore:5.5
CVSS Temporal Score:6.5 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.5 (Medium)

Go back to menu.

Plugin Source


This is the symantec_messaging_gateway_sym12-013.nasl nessus plugin source code. This script is Copyright (C) 2012-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(62010);
  script_version("1.21");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");

  script_cve_id(
    "CVE-2012-0307",
    "CVE-2012-0308",
    "CVE-2012-3579",
    "CVE-2012-3580",
    "CVE-2012-3581",
    "CVE-2012-4347"
  );
  script_bugtraq_id(
    55137,
    55138,
    55141,
    55142,
    55143,
    56789
  );
  script_xref(name:"EDB-ID", value:"21136");
  script_xref(name:"EDB-ID", value:"23109");
  script_xref(name:"EDB-ID", value:"23110");

  script_name(english:"Symantec Messaging Gateway 9.5.x Multiple Vulnerabilities (SYM12-013)");
  script_summary(english:"Checks SMG version number");

  script_set_attribute(attribute:"synopsis", value:
"A messaging security application running on the remote host has
multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"According to its self-reported version number, the version of Symantec
Messaging Gateway running on the remote host is 9.5.x and has the
following vulnerabilities :

  - Multiple XSS vulnerabilities exist. (CVE-2012-0307)

  - Lack of password protection on sensitive functions as
    well as of CSRF protection could be abused through CSRF
    attacks, for example, to add a backdoor administrator
    account. (CVE-2012-0308)

  - The 'support' account with SSH access is secured with
    the password 'symantec'. (CVE-2012-3579)

  - An unspecified web application modification issue 
    exists. (CVE-2012-3580)

  - An unspecified flaw may allow a remote attacker to gain
    access to potentially sensitive component version 
    information. (CVE-2012-3581)

  - An authenticated user is able to download arbitrary
    files with the permissions of the Webserver user using
    specially crafted GET requests, such as using the
    'logFile' parameter of 'brightmail/export', the
    'localBackupFileSelection' parameter of
    'brightmail/admin/restore/download.do', and possibly
    others. (CVE-2012-4347)");
  # https://www.sec-consult.com/files/20120828-0_Symantec_Mail_Gateway_Support_Backdoor_v04.txt
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?97079438");
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/524191/30/0/threaded");
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/524192/30/0/threaded");
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/524193/30/0/threaded");
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/524876/30/0/threaded");
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/524877/30/0/threaded");
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/524878/30/0/threaded");
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/524879/30/0/threaded");
  # https://support.symantec.com/en_US/article.SYMSA1257.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?9fb213da");
  script_set_attribute(attribute:"solution", value:
"Upgrade to Symantec Messaging Gateway 10.0 or later.");
  script_set_cvss_base_vector("CVSS2#AV:A/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2012-3579");

  script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploit_framework_core", value:"true");
  script_set_attribute(attribute:"d2_elliot_name", value:"Symantec Messaging Gateway 9.5.3 File Disclosure");
  script_set_attribute(attribute:"exploit_framework_d2_elliot", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Symantec Messaging Gateway 9.5 Default SSH Password Vulnerability');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  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:"2012/08/27");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/08/27");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/09/07");

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

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

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

  script_dependencies("symantec_messaging_gateway_detect.nasl");
  script_require_keys("www/sym_msg_gateway");

  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:443);
install = get_install_from_kb(appname:'sym_msg_gateway', port:port, exit_on_fail:TRUE);
base_url = build_url(qs:install['dir'], port:port);

if (install['ver'] == UNKNOWN_VER)
  audit(AUDIT_UNKNOWN_WEB_APP_VER, 'Symantec Messaging Gateway', base_url);
if (install['ver'] !~ "^9\.5(\.|$)")
  audit(AUDIT_WEB_APP_NOT_AFFECTED, 'Symantec Messaging Gateway', base_url, install['ver']);

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

if (report_verbosity > 0)
{
  report =
    '\n  URL               : ' + base_url +
    '\n  Installed version : ' + install['ver'] +
    '\n  Fixed version     : 10.0\n';
  security_hole(port:port, extra:report);
}
else security_hole(port);

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

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

Go back to menu.

How to Run


Here is how to run the Symantec Messaging Gateway 9.5.x Multiple Vulnerabilities (SYM12-013) 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 Messaging Gateway 9.5.x Multiple Vulnerabilities (SYM12-013) plugin ID 62010.
  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_messaging_gateway_sym12-013.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CWE | Common Weakness Enumeration:
  • CWE-20 (Weakness) Improper Input Validation
  • CWE-74 (Weakness) Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  • CWE-79 (Weakness) Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-442 (Category) DEPRECATED: Web Problems
  • CWE-629 (View) Weaknesses in OWASP Top Ten (2007)
  • CWE-711 (View) Weaknesses in OWASP Top Ten (2004)
  • CWE-712 (Category) OWASP Top Ten 2007 Category A1 - Cross Site Scripting (XSS)
  • CWE-722 (Category) OWASP Top Ten 2004 Category A1 - Unvalidated Input
  • CWE-725 (Category) OWASP Top Ten 2004 Category A4 - Cross-Site Scripting (XSS) Flaws
  • CWE-750 (View) Weaknesses in the 2009 CWE/SANS Top 25 Most Dangerous Programming Errors
  • CWE-751 (Category) 2009 Top 25 - Insecure Interaction Between Components
  • CWE-800 (View) Weaknesses in the 2010 CWE/SANS Top 25 Most Dangerous Programming Errors
  • CWE-801 (Category) 2010 Top 25 - Insecure Interaction Between Components
  • CWE-809 (View) Weaknesses in OWASP Top Ten (2010)
  • CWE-811 (Category) OWASP Top Ten 2010 Category A2 - Cross-Site Scripting (XSS)
  • CWE-864 (Category) 2011 Top 25 - Insecure Interaction Between Components
  • CWE-900 (View) Weaknesses in the 2011 CWE/SANS Top 25 Most Dangerous Software Errors
  • CWE-928 (View) Weaknesses in OWASP Top Ten (2013)
  • CWE-931 (Category) OWASP Top Ten 2013 Category A3 - Cross-Site Scripting (XSS)
  • CWE-990 (Category) SFP Secondary Cluster: Tainted Input to Command
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)
  • 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)
  • 80118 - Symantec Web Gateway < 5.2.2 Authenticated OS Command Injection (SYM14-016)
  • 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_messaging_gateway_sym12-013.nasl version 1.21. For more plugins, visit the Nessus Plugin Library.

Go back to menu.