Lucene search
+L

Ipswitch IMail Server Detection

🗓️ 26 Jul 2017 00:00:00Reported by Copyright (C) 2017 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 15 Views

Detection of installed version of Ipswitch IMail Server. This script checks the presence of Ipswitch IMail Server from the banner

Code
# SPDX-FileCopyrightText: 2017 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

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.811256");
  script_version("2023-10-31T05:06:37+0000");
  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:"last_modification", value:"2023-10-31 05:06:37 +0000 (Tue, 31 Oct 2023)");
  script_tag(name:"creation_date", value:"2017-07-26 16:06:50 +0530 (Wed, 26 Jul 2017)");
  script_name("Ipswitch IMail Server Detection");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2017 Greenbone AG");
  script_family("Product detection");
  script_dependencies("smtpserver_detect.nasl", "check_smtp_helo.nasl", "popserver_detect.nasl", "imap4_banner.nasl", "httpver.nasl", "global_settings.nasl");
  script_require_ports("Services/smtp", 25, 465, 587, "Services/pop3", 110, 995, "Services/imap", 143, 993, "Services/www", 80);

  script_tag(name:"summary", value:"Detection of installed version
  of Ipswitch IMail Server.

  This script check the presence of Ipswitch IMail Server from the
  banner.");

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

  exit(0);
}

include("cpe.inc");
include("host_details.inc");
include("http_func.inc");
include("port_service_func.inc");
include("smtp_func.inc");
include("pop3_func.inc");
include("imap_func.inc");
include("misc_func.inc");

function get_version(banner, port, service) {

  set_kb_item(name:"Ipswitch/IMail/detected", value:TRUE);
  version = "unknown";
  install = port + "/tcp";

  mailVer = eregmatch(pattern:"Server: Ipswitch-IMail/([0-9.]+)", string:banner);
  if(!mailVer)
    mailVer = eregmatch(pattern:"IMail ([0-9.]+)", string:banner);

  if(mailVer[1])
    version = mailVer[1];

  cpe = build_cpe(value:version, exp:"^([0-9.]+)", base:"cpe:/a:ipswitch:imail_server:");
  if(!cpe)
    cpe = "cpe:/a:ipswitch:imail_server";

  register_product(cpe:cpe, location:install, port:port, service:service);

  log_message(data:build_detection_report(app:"Ipswitch IMail Server",
                                          version:version,
                                          install:install,
                                          cpe:cpe,
                                          concluded:mailVer[0]),
                                          port:port);
}

ports = pop3_get_ports();
foreach port(ports){
  if(banner = pop3_get_banner(port:port)) {
    if("POP3 Server" >< banner && "(IMail" >< banner) {
      get_version(banner:banner, port:port, service:"pop3");
    }
  }
}

ports = smtp_get_ports();
foreach port(ports){
  if(banner = smtp_get_banner(port:port)) {
    if("ESMTP Server" >< banner && "(IMail" >< banner) {
      get_version(banner:banner, port:port, service:"smtp");
    }
  }
}

ports = imap_get_ports();
foreach port(ports){
  if(banner = imap_get_banner(port:port)) {
    if("IMAP4 Server" >< banner && "(IMail" >< banner) {
      get_version(banner:banner, port:port, service:"imap");
    }
  }
}

if(http_is_cgi_scan_disabled())
  exit(0);

port = http_get_port(default:80);
if(banner = http_get_remote_headers(port:port)) {
  if("Server: Ipswitch-IMail" >< banner) {
    get_version(banner:banner, port:port, service:"www");
  }
}

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