Lucene search
+L

NETGEAR ProSAFE Devices Detection (SNMP)

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

NETGEAR ProSAFE Devices Detection (SNMP) script performs SNMP-based detection of NETGEAR ProSAFE devices. It identifies the model, firmware version, and build of the devices

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.108163");
  script_version("2023-12-05T05:06:18+0000");
  script_tag(name:"last_modification", value:"2023-12-05 05:06:18 +0000 (Tue, 05 Dec 2023)");
  script_tag(name:"creation_date", value:"2017-05-18 10:24:16 +0200 (Thu, 18 May 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_name("NETGEAR ProSAFE Devices Detection (SNMP)");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2017 Greenbone AG");
  script_family("Product detection");
  script_dependencies("gb_snmp_info_collect.nasl");
  script_require_udp_ports("Services/udp/snmp", 161);
  script_mandatory_keys("SNMP/sysdescr/available");

  script_tag(name:"summary", value:"This script performs SNMP based detection of NETGEAR ProSAFE devices.");

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

  exit(0);
}

include("host_details.inc");
include("snmp_func.inc");

port    = snmp_get_port( default:161 );
sysdesc = snmp_get_sysdescr( port:port );
if( ! sysdesc || ( "ProSafe" >!< sysdesc && "ProSAFE" >!< sysdesc ) ) exit( 0 );

set_kb_item( name:"netgear/prosafe/detected", value:TRUE );
set_kb_item( name:"netgear/prosafe/snmp/detected", value:TRUE );
set_kb_item( name:"netgear/prosafe/snmp/port", value:port );

model      = "unknown";
fw_version = "unknown";
fw_build   = "unknown";

# Netgear ProSafe VPN Firewall FVS318v3
# ProSafe 802.11b/g Wireless Access Point -WG102 V5.2.8
# M4300-24X24F ProSAFE 24-port 10GBASE-T and 24-port 10G SFP+, 12.0.2.17, 1.0.0.8
# GS748Tv5 ProSafe 48-port Gigabit Ethernet Smart Switch, 6.3.1.11, B1.0.0.4
# M4100-26G ProSafe 24-port Gigabit L2+ Intelligent Edge Managed Switch, 10.0.1.16, B1.0.0.9
# GSM7224V2 - ProSafe 24G
if( "Netgear ProSafe VPN Firewall" >< sysdesc ) {
  pattern = "^Netgear ProSafe VPN Firewall ([0-9a-zA-Z\-]+)";
} else if ("ProSafe 802.11b/g Wireless Access Point" >< sysdesc ) {
  pattern = "^ProSafe 802.11b/g Wireless Access Point -([0-9a-zA-Z\-]+) V([0-9.]+)";
} else {
  pattern = "^([0-9a-zA-Z\-]+) [- ]+?ProSafe[^,]+(, ([0-9.]+), B?([0-9.]+))?";
  offset = 1;
}
concluded = "  Concluded from SNMP sysDescr OID: " + sysdesc + '\n';

model_fw_nd_build = eregmatch( pattern:pattern, string:sysdesc, icase:TRUE );
if( ! isnull( model_fw_nd_build[1] ) ) model = model_fw_nd_build[1];
if( ! isnull( model_fw_nd_build[2] ) ) fw_version = model_fw_nd_build[2+offset];
if( ! isnull( model_fw_nd_build[3] ) ) fw_build = model_fw_nd_build[3+offset];

# nb: At least 'GSM7224V2 - ProSafe 24G' does not expose version via sysdesc
if ( fw_version == "unknown" ) {
  vers_oid = "1.3.6.1.2.1.47.1.1.1.1.10.1";
  vers = snmp_get(port: port, oid: vers_oid);
  if (vers) {
    fw_version = vers;
    concluded += "  Version: " + fw_version + " concluded from OID: " + vers_oid  + '\n';
  }
}

set_kb_item( name:"netgear/prosafe/snmp/" + port + "/model", value:model );
set_kb_item( name:"netgear/prosafe/snmp/" + port + "/fw_version", value:fw_version );
set_kb_item( name:"netgear/prosafe/snmp/" + port + "/fw_build", value:fw_build );
set_kb_item( name:"netgear/prosafe/snmp/" + port + "/concluded", value:concluded );

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