Lucene search
+L

NTP Monlist Feature Enabled

🗓️ 06 Jan 2014 00:00:00Reported by Copyright (C) 2014 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 111 Views

NTP Monlist feature allows traffic amplification, enabling denial-of-service attacks

Related
Refs
Code
ReporterTitlePublishedViews
Family
zdt
zdt
NTP ntpd monlist Query Reflection - Denial of Service
29 Apr 201400:00
zdt
ibm
IBM Security Bulletins
Security Bulletin: IBM BladeCenter Advanced Management Module Account Information Exposure (CVE-2013-5211)
14 Apr 202314:32
ibm
ibm
IBM Security Bulletins
Security Bulletin: Vyatta 5600 vRouter Software Patches - Release 1801-zb
11 Sep 201917:35
ibm
ibm
IBM Security Bulletins
Security Bulletin: Three potential vulnerabilities in IBM GCM16/GCM32 Global Console Managers (CVE-2014-3085, CVE-2014-3081, CVE-2014-3080)
31 Jan 201901:25
ibm
ibm
IBM Security Bulletins
Security Bulletin: IBM Flex System Manager (FSM) is affected by security vulnerabilities. (CVE-2013-5772, CVE-2013-5803, CVE-2013-5372, CVE-2013-5780, CVE-2013-5211)
31 Jan 201901:25
ibm
ibm
IBM Security Bulletins
Security Bulletin: IBM Flex System Manager (FSM) is affected by vulnerability (CVE-2013-5211)
31 Jan 201901:25
ibm
ibm
IBM Security Bulletins
Security Bulletin: Libxml2 vulnerabilities in Network Intrusion Prevention System (CVE-2014-0191, CVE-2013-2877, CVE-2014-3660, CVE-2013-5211)
23 Feb 202219:48
ibm
ibm
IBM Security Bulletins
Security Bulletin: The IBM Chassis Management Module (CMM) is affected by a vulnerability in NTP server (CVE-2013-5211)
31 Jan 201901:25
ibm
ibm
IBM Security Bulletins
Security Bulletin: NTP vulnerability in Network Intrusion Prevention System (CVE-2013-5211)
23 Feb 202219:48
ibm
ibm
IBM Security Bulletins
Security Bulletin: IBM Virtualization Engine TS7700 - The NTP monlist command is enabled (CVE-2013-5211)
18 Jun 201800:09
ibm
Rows per page
# SPDX-FileCopyrightText: 2014 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.103868");
  script_version("2023-07-14T16:09:26+0000");
  script_cve_id("CVE-2013-5211");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:P");
  script_tag(name:"last_modification", value:"2023-07-14 16:09:26 +0000 (Fri, 14 Jul 2023)");
  script_tag(name:"creation_date", value:"2014-01-06 14:14:08 +0100 (Mon, 06 Jan 2014)");
  script_name("NTP Monlist Feature Enabled");
  script_category(ACT_ATTACK);
  script_family("Denial of Service");
  script_copyright("Copyright (C) 2014 Greenbone AG");
  script_dependencies("ntp_open.nasl");
  script_require_udp_ports("Services/udp/ntp", 123);
  script_mandatory_keys("ntp/remote/detected");

  script_xref(name:"URL", value:"http://bugs.ntp.org/show_bug.cgi?id=1532");
  script_xref(name:"URL", value:"http://lists.ntp.org/pipermail/pool/2011-December/005616.html");

  script_tag(name:"impact", value:"Successfully exploiting this issue may allow an attacker to cause a denial
  of service.");

  script_tag(name:"vuldetect", value:"Send a NTP monlist request and check the response.");

  script_tag(name:"insight", value:"The monlist feature in ntp_request.c in ntpd in NTP before
  4.2.7p26 allows remote attackers to cause a denial of service (traffic amplification) via
  forged (1) REQ_MON_GETLIST or (2) REQ_MON_GETLIST_1 requests, as exploited in the wild in December 2013.");

  script_tag(name:"solution", value:"Update to NTP.org's ntpd 4.2.7p26 or newer or set 'disable monitor' in ntp.conf.");

  script_tag(name:"summary", value:"NTP.org's ntpd is prone to a remote denial-of-service vulnerability because it
  fails to properly handle certain incoming network packets.");

  script_tag(name:"affected", value:"NTP.org's ntpd versions before 4.2.7p26. Other implementations might be affected as well.");

  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"qod_type", value:"remote_vul");

  exit(0);
}

include("byte_func.inc");
include("misc_func.inc");
include("port_service_func.inc");

port = service_get_port(default:123, ipproto:"udp", proto:"ntp");

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

# http://lists.ntp.org/pipermail/pool/2011-December/005616.html
# By default, recent 4.2.7 ntpd defaults to ignoring all mode 7 requests,
# unless "enable mode7" is added to ntp.conf. In 4.2.7p26, the monlist
# support code in ntpd was removed due to amplification risk

req = raw_string(0x17,0x00,0x03,0x2a,0x00,0x00,0x00,0x00,mkpad(40)); # ntpdc -n -c monlist <ip>

send(socket:soc, data:req);
buf = recv(socket:soc, length:1024);
close(soc);

if(!buf || strlen(buf) < 8)
  exit(0);

implementation = ord(buf[2]);
request_code   = ord(buf[3]);
rcount         = getword(blob:buf, pos:4);
rsize          = getword(blob:buf, pos:6);

if(rsize == 0 || (implementation != 2 && implementation != 3) || (request_code != 42 || rsize != 72))
  exit(0);

step = 8;

for(i = 0; i < rcount; i++) {
  hosts += ord(buf[step+16]) + "." + ord(buf[step+17]) + "." + ord(buf[step+18]) + "." + ord(buf[step+19]) + '\n';
  step += rsize;
}

if(hosts)
  report = 'The Scanner was able to retrieve the following list of recent to this ntpd connected hosts:\n\n' + hosts + '\n';

security_message(port:port, proto:"udp", 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

14 Jul 2023 00:00Current
6.3Medium risk
Vulners AI Score6.3
CVSS 25
EPSS0.97549
111