Zimbra Collaboration Server 8.7.x < 8.7.11p10 XML External Entity injection (XXE) vulnerability - Nessus

Critical   Plugin ID: 127133

This page contains detailed information about the Zimbra Collaboration Server 8.7.x < 8.7.11p10 XML External Entity injection (XXE) vulnerability Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 127133
Name: Zimbra Collaboration Server 8.7.x < 8.7.11p10 XML External Entity injection (XXE) vulnerability
Filename: zimbra_8_7_11p10.nasl
Vulnerability Published: 2019-05-29
This Plugin Published: 2019-08-12
Last Modification Time: 2022-02-25
Plugin Version: 1.6
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: zimbra_web_detect.nbin
Required KB Items [?]: Settings/ParanoidReport, www/zimbra_zcs

Vulnerability Information


Severity: Critical
Vulnerability Published: 2019-05-29
Patch Published: 2019-05-28
CVE [?]: CVE-2019-9670
CPE [?]: cpe:/a:zimbra:collaboration_suite

Synopsis

The remote web server contains a web application that is affected by an XXE vulnerability.

Description

Mailboxd component in Synacor Zimbra Collaboration Suite 8.7.x before 8.7.11p10 has an XML External Entity injection (XXE) vulnerability.

Note that Nessus does not identify patch level or components versions for the Synacor Zimbra Collaboration Suite. You will need to verify if the patch has been applied by executing the command 'zmcontrol -v' from the command line as the 'zimbra' user.

Solution

Upgrade to version 7.7.11p10 or later.

Public Exploits


Target Network Port(s): 80, 443, 7071
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Zimbra Collaboration Server 8.7.x < 8.7.11p10 XML External Entity injection (XXE) vulnerability vulnerability:

  1. Metasploit: exploit/linux/http/zimbra_xxe_rce
    [Zimbra Collaboration Autodiscover Servlet XXE and ProxyServlet SSRF]
  2. Exploit-DB: exploits/linux/remote/46693.rb
    [EDB-46693: Zimbra Collaboration - Autodiscover Servlet XXE and ProxyServlet SSRF (Metasploit)]
  3. GitHub: https://github.com/3gstudent/Homework-of-Python
    [CVE-2019-9670]
  4. GitHub: https://github.com/SexyBeast233/SecBooks
    [CVE-2019-9670]
  5. GitHub: https://github.com/fengjixuchui/RedTeamer
    [CVE-2019-9670]
  6. GitHub: https://github.com/ugur-ercan/exploit-collection
    [CVE-2019-9670]
  7. GitHub: https://github.com/attackgithub/Zimbra-RCE
    [CVE-2019-9670: Zimbra RCE CVE-2019-9670]
  8. GitHub: https://github.com/rek7/Zimbra-RCE
    [CVE-2019-9670: Zimbra RCE PoC - CVE-2019-9670 XXE/SSRF]

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-2019-9670
CVSS V2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:H/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.5 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.5 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C
CVSS Base Score:9.8 (Critical)
Impact Subscore:5.9
Exploitability Subscore:3.9
CVSS Temporal Score:9.4 (Critical)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.4 (Critical)
STIG Severity [?]: I
STIG Risk Rating: High

Go back to menu.

Plugin Source


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

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

include('compat.inc');

if (description)
{
  script_id(127133);
  script_version("1.6");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/02/25");

  script_cve_id("CVE-2019-9670");
  script_xref(name:"IAVA", value:"2019-A-0276");
  script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2022/07/10");
  script_xref(name:"EDB-ID", value:"46693");
  script_xref(name:"CISA-NCAS", value:"AA22-011A");

  script_name(english:"Zimbra Collaboration Server 8.7.x < 8.7.11p10 XML External Entity injection (XXE) vulnerability");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a web application that is affected by an XXE vulnerability.");
  script_set_attribute(attribute:"description", value:
"Mailboxd component in Synacor Zimbra Collaboration Suite 8.7.x before 8.7.11p10
has an XML External Entity injection (XXE) vulnerability.

Note that Nessus does not identify patch level or components versions for the Synacor Zimbra Collaboration Suite.
You will need to verify if the patch has been applied by executing the command 'zmcontrol -v' from
the command line as the 'zimbra' user.");
  # https://wiki.zimbra.com/wiki/Zimbra_Releases/8.7.11/P10
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?803cb0df");
  # https://bugzilla.zimbra.com/show_bug.cgi?id=109129
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?6ff4b6a4");
  script_set_attribute(attribute:"see_also", value:"https://www.exploit-db.com/exploits/46693");
  script_set_attribute(attribute:"solution", value:
"Upgrade to version 7.7.11p10 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  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:N/UI:N/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-9670");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Zimbra Collaboration Autodiscover Servlet XXE and ProxyServlet SSRF');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2019/05/29");
  script_set_attribute(attribute:"patch_publication_date", value:"2019/05/28");
  script_set_attribute(attribute:"plugin_publication_date", value:"2019/08/12");

  script_set_attribute(attribute:"potential_vulnerability", value:"true");
  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:zimbra:collaboration_suite");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_end_attributes();

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

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

  script_dependencies("zimbra_web_detect.nbin");
  script_require_keys("www/zimbra_zcs", "Settings/ParanoidReport");
  script_require_ports("Services/www", 80, 443, 7071);

  exit(0);
}

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

if (report_paranoia < 2) audit(AUDIT_PARANOID);
port = get_http_port(default:443);

install = get_install_from_kb(
  appname      : 'zimbra_zcs',
  port         : port,
  exit_on_fail : TRUE
);

app = 'Zimbra Collaboration Server';
dir = install['dir'];
version = install['ver'];
install_url = build_url(port:port, qs:dir);

if (version == UNKNOWN_VER) audit(AUDIT_UNKNOWN_WEB_APP_VER, app, install_url);

# Versions 8.7.x <= 8.7.11.x, detected version is in the following format: 8.7.11_GA_xxxx
if (version !~ '8\\.7\\.([0-9]|10|11)') audit(AUDIT_WEB_APP_NOT_AFFECTED, app, install_url, version);

report =
  '\n  URL               : ' + install_url +
  '\n  Installed version : ' + version +
  '\n  Fixed version     : 8.7.11 Patch 10\n';

security_report_v4(port:port, extra:report, severity:SECURITY_HOLE);

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

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

Go back to menu.

How to Run


Here is how to run the Zimbra Collaboration Server 8.7.x < 8.7.11p10 XML External Entity injection (XXE) vulnerability 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 Zimbra Collaboration Server 8.7.x < 8.7.11p10 XML External Entity injection (XXE) vulnerability plugin ID 127133.
  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 zimbra_8_7_11p10.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


IAVA | Information Assurance Vulnerability Alert:
  • 2019-A-0276
See also: Similar and related Nessus plugins:
  • 72585 - Zimbra Collaboration Server skin Parameter Traversal Local File Inclusion
  • 44937 - Multiple Adobe Products XML External Entity (XXE) Injection (APSB10-05)
  • 93245 - Adobe ColdFusion XML External Entity (XXE) Injection Information Disclosure (APSB16-30)
  • 73373 - EMC Cloud Tiering Appliance XML External Entity (XXE) Arbitrary File Disclosure
  • 62571 - FreeBSD : Zend Framework -- Multiple vulnerabilities via XXE injection (ec34d0c2-1799-11e2-b4ab-000c29033c32)
  • 84194 - HP WebInspect XXE Unauthorized Information Disclosure
  • 83350 - Magento XML-RPC XXE Arbitrary File Disclosure
  • 152033 - Oracle JDeveloper XXE (July 2021 CPU)
  • 69171 - Sybase EAServer XML External Entity (XXE) Arbitrary File Disclosure
  • 140791 - IBM WebSphere Application Server 7.0.0.x through 7.0.0.45 / 8.0.0.x through 8.0.0.15 / 8.5.x through to 8.5.5.17 / 9.0.x through to 9.0.5.5 XXE (CVE-2020-4643)
  • 145535 - IBM WebSphere Application Server 7.0.0.x <= 7.0.0.45 / 8.0.0.x <= 8.0.0.15 / 8.5.x <= 8.5.5.18 / 9.0.x <= 9.0.5.6 XXE (6408244)
  • 146860 - IBM WebSphere Application Server 7.0.0.x <= 7.0.0.45 / 8.0.0.x <= 8.0.0.15 / 8.5.x <= 8.5.5.19 / 9.0.x <= 9.0.5.6 XXE (6413709)
  • 148850 - IBM WebSphere Application Server 8.0.0.0 <= 8.0.0.15 / 8.5.0.0 <= 8.5.5.19 / 9.0.0.0 <= 9.0.5.7 XXE (CVE-2021-20453)

Version


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

Go back to menu.