Lucene search
K

SNMP Protocol Version Detection

🗓️ 06 Jan 2009 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 110 Views

SNMP Protocol Version Detection. Reports negotiated SNMP version

Refs
Code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if(description)
{
 script_id(35296);
 script_version ("1.12");

 script_name(english:"SNMP Protocol Version Detection");
 script_summary(english:"Reports negotiated SNMP version from KB");

 script_set_attribute(attribute:'synopsis',value:
"This plugin reports the protocol version negotiated with the remote
SNMP agent." );
 script_set_attribute(attribute:'description',value:
"By sending an SNMP 'get-next-request', it is possible to determine the
protocol version of the remote SNMP agent." );
 script_set_attribute(
  attribute:"see_also", 
  value:"https://en.wikipedia.org/wiki/Simple_Network_Management_Protocol"
 );
 script_set_attribute(attribute:"solution", value:
"Disable the SNMP service on the remote host if you do not use it, or
filter incoming UDP packets going to this port." );
 script_set_attribute(attribute:"risk_factor", value:"None");
 script_set_attribute(attribute:"plugin_publication_date", value: "2009/01/06");
 script_cvs_date("Date: 2019/11/22");
 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_set_attribute(attribute:"asset_inventory", value:"True");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);

 script_copyright(english:"This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
 script_family(english:"SNMP");

 script_dependencies("snmp_settings.nasl");
 script_require_keys("SNMP/community", "SNMP/version");
 exit(0);
}

include ("snmp_func.inc");

port = get_kb_item("SNMP/port");

if(!port)port = 161;
if (! get_udp_port_state(port)) exit(0, "UDP port "+port+" is not open.");
soc = open_sock_udp(port);
if (!soc)
  exit (0);


community = get_kb_item("SNMP/community");
if(!community)exit(0);

version = get_kb_item("SNMP/version");
if (isnull(version) || version == 0) version = "SNMPv1"; # For SNMPv1 version is either set to 0 or NULL.
else if (version == 1)	version = "SNMPv2c";
else if (version == 3)	version = "SNMPv3";

if (version)
{
  report = string('\n', "Nessus has negotiated SNMP communications at ", version, ".", '\n');
  security_note(port:port, extra:report, proto:"udp");
}

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

22 Nov 2019 00:00Current
5.5Medium risk
Vulners AI Score5.5
110