Lucene search
+L

Symantec Encryption Server Detection (LDAP)

🗓️ 24 Feb 2016 00:00:00Reported by Copyright (C) 2016 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 10 Views

Symantec Encryption Server Detection (LDAP) for remote service

Code
# SPDX-FileCopyrightText: 2016 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.105559");
  script_version("2023-07-12T05:05:04+0000");
  script_tag(name:"last_modification", value:"2023-07-12 05:05:04 +0000 (Wed, 12 Jul 2023)");
  script_tag(name:"creation_date", value:"2016-02-24 13:49:24 +0100 (Wed, 24 Feb 2016)");
  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_name("Symantec Encryption Server Detection (LDAP)");
  script_category(ACT_GATHER_INFO);
  script_family("Service detection");
  script_copyright("Copyright (C) 2016 Greenbone AG");
  script_dependencies("ldap_detect.nasl");
  script_require_ports("Services/ldap", 389);
  script_mandatory_keys("ldap/detected");

  script_tag(name:"summary", value:"LDAP based detection of Symantec Encryption Server.");

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

  exit(0);
}

include("misc_func.inc");
include("port_service_func.inc");
include("dump.inc");
include("ldap.inc");

port = ldap_get_port( default:389 );

soc = open_sock_tcp( port );
if( ! soc )
  exit( 0 );

# ldapsearch -h xxx.xxx.xxx.xxx -x -b "cn=pgpServerInfo" pgpSoftware pgpVersion
req = raw_string(0x30, 0x4e, 0x02, 0x01, 0x02, 0x63, 0x49, 0x04, 0x10, 0x63, 0x6e, 0x3d, 0x70, 0x67, 0x70, 0x53,
                 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x0a, 0x01, 0x02, 0x0a, 0x01, 0x00, 0x02,
                 0x01, 0x00, 0x02, 0x01, 0x00, 0x01, 0x01, 0x00, 0x87, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74,
                 0x63, 0x6c, 0x61, 0x73, 0x73, 0x30, 0x19, 0x04, 0x0b, 0x70, 0x67, 0x70, 0x53, 0x6f, 0x66, 0x74,
                 0x77, 0x61, 0x72, 0x65, 0x04, 0x0a, 0x70, 0x67, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e);
send( socket:soc, data:req );

recv = recv( socket:soc, length:512 );
close( soc );

if( "pgpVersion" >!< recv || "PGPServerInfo" >!< recv || "PGP Universal Server" >!< recv )
  exit( 0 );

set_kb_item( name:"symantec_encryption_server/installed", value:TRUE );
cpe = "cpe:/a:symantec:encryption_management_server";

resp = bin2string( ddata:recv, noprint_replacement:' ' );

version = eregmatch( pattern:"pgpVersion[^ ]*[ ]+([0-9.]+) \(", string:resp );
if( ! isnull( version[1] ) ) {
  vers = version[1];
  set_kb_item( name:"symantec_encryption_server/ldap/version", value:vers );
  cpe += ':' + vers;
}

_build = eregmatch( pattern:"pgpVersion[^ ]*[ ]+[0-9.]+ \(Build ([0-9]+)\)", string:resp );
if( ! isnull( _build[1] ) ) {
  build = _build[1];
  set_kb_item( name:"symantec_encryption_server/ldap/build", value:build );
}

report = 'Detected Symantec Encryption Server\n';

if( vers ) report += 'Version: ' + vers + '\n';
if( build ) report += 'Build  : ' + build + '\n';

report += 'CPE: ' + cpe + '\n';

log_message( port:port, 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 Jul 2023 00:00Current
7.1High risk
Vulners AI Score7.1
10