Lucene search
+L

Zimbra Detection Consolidation

🗓️ 17 Aug 2022 00:00:00Reported by Copyright (C) 2022 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 19 Views

Zimbra Detection Consolidation. Consolidation of Zimbra detections

Refs
Code
SourceLink
zimbrawww.zimbra.com/
# SPDX-FileCopyrightText: 2022 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

include("plugin_feed_info.inc");

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.148606");
  script_version("2026-01-12T05:50:06+0000");
  script_tag(name:"last_modification", value:"2026-01-12 05:50:06 +0000 (Mon, 12 Jan 2026)");
  script_tag(name:"creation_date", value:"2022-08-17 03:49:33 +0000 (Wed, 17 Aug 2022)");
  script_tag(name:"cvss_base", value:"0.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");

  script_tag(name:"qod_type", value:"remote_banner");

  script_name("Zimbra Detection Consolidation");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2022 Greenbone AG");
  script_family("Product detection");
  script_dependencies("gb_zimbra_admin_http_detect.nasl");
  if(FEED_NAME == "GSF" || FEED_NAME == "GEF" || FEED_NAME == "SCM")
    script_dependencies("gsf/gb_zimbra_http_detect.nasl",
                        "gsf/gb_zimbra_imap_detect.nasl",
                        "gsf/gb_zimbra_pop3_detect.nasl");
  script_mandatory_keys("zimbra/detected");

  script_tag(name:"summary", value:"Consolidation of Zimbra detections.");

  script_xref(name:"URL", value:"https://www.zimbra.com/");

  exit(0);
}

if (!get_kb_item("zimbra/detected"))
  exit(0);

include("cpe.inc");
include("host_details.inc");
include("os_func.inc");

detected_version = "unknown";
location = "/";

foreach source (make_list("imap", "web_client/http", "admin_console/http", "pop3")) {
  version_list = get_kb_list("zimbra/" + source + "/*/version");
  foreach version (version_list) {
    if (version != "unknown" && detected_version == "unknown") {
      detected_version = version;
      break;
    }
  }
}

cpe1 = build_cpe(value: detected_version, exp: "^([0-9.]+)", base: "cpe:/a:zimbra:collaboration:");
cpe2 = build_cpe(value: detected_version, exp: "^([0-9.]+)", base: "cpe:/a:synacor:zimbra_collaboration_suite:");
if (!cpe1) {
  cpe1 = "cpe:/a:zimbra:collaboration";
  cpe2 = "cpe:/a:synacor:zimbra_collaboration_suite";
}

os_register_and_report(os: "Linux", cpe: "cpe:/o:linux:kernel", desc: "Zimbra Detection Consolidation",
                       runs_key: "unixoide");

if (http_web_client_ports = get_kb_list("zimbra/web_client/http/port")) {
  foreach port (http_web_client_ports) {
    extra += 'Web Client over HTTP(s) on port: ' + port + '/tcp\n';

    concluded = get_kb_item("zimbra/web_client/http/" + port + "/concluded");
    if (concluded)
      extra += '  Concluded from version/product identification result: ' + concluded + '\n';

    conclUrl = get_kb_item("zimbra/web_client/http/" + port + "/concludedUrl");
    if (conclUrl)
      extra += '  Concluded from version/product identification location: ' + conclUrl + '\n';

    # nb: Service can be used if active checks are only targeting the web client interface
    register_product(cpe: cpe1, location: location, port: port, service: "www-web-client");
    register_product(cpe: cpe2, location: location, port: port, service: "www-web-client");
    # nb: Register this as well as a www service for active checks targeting both interfaces
    register_product(cpe: cpe1, location: location, port: port, service: "www");
    register_product(cpe: cpe2, location: location, port: port, service: "www");
  }
}

if (http_admin_console_ports = get_kb_list("zimbra/admin_console/http/port")) {
  foreach port (http_admin_console_ports) {
    extra += 'Admin Console over HTTP(s) on port: ' + port + '/tcp\n';

    concluded = get_kb_item("zimbra/admin_console/http/" + port + "/concluded");
    if (concluded)
      extra += '  Concluded from version/product identification result: ' + concluded + '\n';

    conclUrl = get_kb_item("zimbra/admin_console/http/" + port + "/concludedUrl");
    if (conclUrl)
      extra += '  Concluded from version/product identification location: ' + conclUrl + '\n';

    loc = get_kb_item("zimbra/admin_console/http/" + port + "/location");
    if (!loc)
      loc = "/";

    # nb: Service can be used if active checks are only targeting the admin console interface
    register_product(cpe: cpe1, location: loc, port: port, service: "www-admin-console");
    register_product(cpe: cpe2, location: loc, port: port, service: "www-admin-console");
    # nb: Register this as well as a www service for active checks targeting both interfaces
    register_product(cpe: cpe1, location: loc, port: port, service: "www");
    register_product(cpe: cpe2, location: loc, port: port, service: "www");
  }
}

if (pop3_ports = get_kb_list("zimbra/pop3/port")) {
  foreach port (pop3_ports) {
    extra += 'POP3 on port ' + port + '/tcp\n';

    concluded = get_kb_item("zimbra/pop3/" + port + "/concluded");
    if (concluded)
      extra += '  POP3 Banner: ' + concluded + '\n';

    register_product(cpe: cpe1, location: location, port: port, service: "pop3");
    register_product(cpe: cpe2, location: location, port: port, service: "pop3");
  }
}

if (imap_ports = get_kb_list("zimbra/imap/port")) {
  foreach port (imap_ports) {
    extra += 'IMAP on port ' + port + '/tcp\n';

    concluded = get_kb_item("zimbra/imap/" + port + "/concluded");
    if (concluded)
      extra += '  IMAP Banner: ' + concluded + '\n';

    register_product(cpe: cpe1, location: location, port: port, service: "imap");
    register_product(cpe: cpe2, location: location, port: port, service: "imap");
  }
}

report = build_detection_report(app: "Zimbra", version: detected_version, install: location, cpe: cpe1);

if (extra) {
  report += '\n\nDetection methods:\n';
  report += '\n' + chomp(extra);
}

log_message(port: 0, data: report);

exit(0);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

12 Jan 2026 00:00Current
7High risk
Vulners AI Score7
19