# 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.140329");
script_version("2026-04-24T06:23:04+0000");
script_tag(name:"last_modification", value:"2026-04-24 06:23:04 +0000 (Fri, 24 Apr 2026)");
script_tag(name:"creation_date", value:"2017-08-28 14:59:29 +0700 (Mon, 28 Aug 2017)");
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("IceWarp Mail Server Detection (HTTP)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2017 Greenbone AG");
script_family("Product detection");
script_dependencies("find_service.nasl", "httpver.nasl", "global_settings.nasl");
script_require_ports("Services/www", 80);
script_exclude_keys("Settings/disable_cgi_scanning");
script_tag(name:"summary", value:"HTTP based detection of IceWarp Mail Server.");
exit(0);
}
include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
port = http_get_port( default: 80 );
url1 = "/webmail/";
url2 = "/webmail/?interface=basic";
banner = http_get_remote_headers( port: port );
res1 = http_get_cache( port: port, item: url1 );
res2 = http_get_cache( port: port, item: url2 );
# Server: IceWarp/10.1.2
# Server: IceWarp/10.4.5
# Server: IceWarp/13.0.1.1 RHEL7 x64
# Server: IceWarp/14.1.0.19 RHEL9 x64
if( concl = egrep( string: banner, pattern: "^Server\s*:\s*IceWarp", icase: TRUE ) ) {
found = TRUE;
concl = chomp( concl );
concl = ereg_replace( string: concl, pattern: "^(\s+)", replace: "" );
concluded += " " + concl;
}
# <title>IceWarp Web klient</title>
# <title>IceWarp WebClient</title>
# nb: Seems the title can be changed
#
# no na <a href="http://www.icewarp.cz">IceWarp Server</a> ©2021</span></div>
# <div id="foot_title"><span class="copyright"><a href="http://www.icewarp.com">IceWarp Server</a> ©2021</span></div>
# >Powered by <a href="http://www.icewarp.com">IceWarp Server</a> © 1999-2021</span>
#
# nb: The following is quite special to IceWarp Server and should catch the remaining cases which
# are matching the examples above:
#
# <base href="https://176.88.202.43/-.._._.--.._1620211914/webmail/" target="_blank">
if( concl = egrep( string: res1, pattern: "(^\s*<title>IceWarp Web[^<]+</title>|>IceWarp Server</a> ©|<base href=.+/-\.\._\._\.--\.\._[0-9]+/webmail/)", icase: FALSE ) ) {
found = TRUE;
if( concluded )
concluded += '\n';
concl = chomp( concl );
concl = ereg_replace( string: concl, pattern: "^(\s+)", replace: "" );
concluded += " " + concl;
conclUrl = " " + http_report_vuln_url( port: port, url: url1, url_only: TRUE );
}
if( concl = egrep( string: res2, pattern: "(^\s*<title>IceWarp Web[^<]+</title>|>IceWarp Server</a> ©|<base href=.+/-\.\._\._\.--\.\._[0-9]+/webmail/)", icase: FALSE ) ) {
found = TRUE;
if( concluded )
concluded += '\n';
concl = chomp( concl );
concl = ereg_replace( string: concl, pattern: "^(\s+)", replace: "" );
concluded += " " + concl;
if( conclUrl )
conclUrl += '\n';
conclUrl += " " + http_report_vuln_url( port: port, url: url2, url_only: TRUE );
}
if( found ) {
version = "unknown";
set_kb_item( name: "icewarp/mailserver/detected", value: TRUE );
set_kb_item( name: "icewarp/mailserver/http/detected", value: TRUE );
set_kb_item( name: "icewarp/mailserver/http/port", value: port );
set_kb_item( name: "icewarp/mailserver/http/" + port + "/concluded", value: concluded );
if( conclUrl )
set_kb_item( name: "icewarp/mailserver/http/" + port + "/concludedUrl", value: conclUrl );
# nb: See examples on top
vers = eregmatch( pattern: "Server\s*:\s*IceWarp/([0-9.]+)", string: banner, icase: TRUE );
if( ! isnull( vers[1] ) )
version = vers[1];
if( version == "unknown" ) {
# <div id="foot_copy" title="11.0.1.0 (2014-04-23)">
# <div id="foot_copy" title="11.2.1.1 RHEL6 x64">
vers = eregmatch( pattern: '<div id="foot_copy" title="([0-9.]{3,})', string: res1, icase: TRUE );
if( ! isnull( vers[1] ) )
version = vers[1];
}
if( version == "unknown" ) {
vers = eregmatch( pattern: '<div id="foot_copy" title="([0-9.]{3,})', string: res2, icase: TRUE );
if( ! isnull( vers[1] ) )
version = vers[1];
}
set_kb_item( name: "icewarp/mailserver/http/" + port + "/version", value: version );
}
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