# SPDX-FileCopyrightText: 2018 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.107341");
script_version("2024-02-08T14:36:53+0000");
script_tag(name:"last_modification", value:"2024-02-08 14:36:53 +0000 (Thu, 08 Feb 2024)");
script_tag(name:"creation_date", value:"2018-09-20 17:07:53 +0200 (Thu, 20 Sep 2018)");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
script_tag(name:"cvss_base", value:"0.0");
script_name("EPiServer CMS Detection (Windows SMB Login)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2018 Greenbone AG");
script_family("Product detection");
script_dependencies("smb_reg_service_pack.nasl");
script_mandatory_keys("SMB/WindowsVersion");
script_require_ports(139, 445);
script_tag(name:"summary", value:"This script detects the installed version
of EPiServer CMS.");
script_tag(name:"qod_type", value:"registry");
exit(0);
}
include("smb_nt.inc");
include("cpe.inc");
include("host_details.inc");
include("list_array_func.inc");
include("secpod_smb_func.inc");
foreach key(make_list_unique("CMS", registry_enum_keys(key:"SOFTWARE\Wow6432Node\EPiServer"))) {
key = "SOFTWARE\Wow6432Node\EPiServer\" + key;
if(!registry_key_exists(key:key)) continue;
appName = registry_get_sz(key:key, item:"ProductName");
if(appName !~ "EPiServer CMS") continue;
version = "unknown";
foreach key2(registry_enum_keys(key:key)) {
loc = registry_get_sz(key:key + "\" + key2, item:"InstallPath");
ver = registry_get_sz(key:key + "\" + key2, item:"VersionName");
if(loc && ver && ver =~ "[0-9.]+") break;
}
ver = eregmatch(string:ver, pattern:"^(Version )?([0-9.]+)");
if(ver[2]) version = ver[2];
set_kb_item(name:"EPiServer/EPiServer_CMS/Win/detected", value:TRUE);
set_kb_item(name:"EPiServer/EPiServer_CMS/Win/Ver", value:version);
register_and_report_cpe(app:"EPiServer CMS ", ver:version, concluded:ver[0],
base:"cpe:/a:episerver:episerver:", expr:"^([0-9.]+)", insloc:loc);
exit(0);
}
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