NTP server misuse and abuse
   HOME

TheInfoList



OR:

NTP server misuse and abuse covers a number of practices which cause damage or degradation to a Network Time Protocol (NTP) server, ranging from flooding it with traffic (effectively a
DDoS In computing, a denial-of-service attack (DoS attack) is a cyber-attack in which the perpetrator seeks to make a machine or network resource unavailable to its intended users by temporarily or indefinitely disrupting services of a host connec ...
attack) or violating the server's access policy or the NT
rules of engagement
One incident was branded NTP vandalism in an
open letter An open letter is a letter that is intended to be read by a wide audience, or a letter intended for an individual, but that is nonetheless widely distributed intentionally. Open letters usually take the form of a letter addressed to an indiv ...
from
Poul-Henning Kamp Poul-Henning Kamp (; born 1966) is a Danish computer software developer known for work on various projects including FreeBSD and Varnish. He currently resides in Slagelse, Denmark. Involvement in the FreeBSD project Poul-Henning Kamp has been c ...
to the router manufacturer
D-Link D-Link Corporation is a Taiwanese multinational networking equipment manufacturing corporation headquartered in Taipei, Taiwan. It was founded in March 1986 in Taipei as ''Datex Systems Inc.'' History D-Link Corporation changed its name fr ...
in 2006. This term has later been extended by others to retroactively include other incidents. There is, however, no evidence that any of these problems are deliberate vandalism. They are more usually caused by shortsighted or poorly chosen default configurations.
deliberate form of NTP server abuse
came to note at the end of 2013, when NTP servers were used as part of amplification denial-of-service attacks. Some NTP servers would respond to a single "monlist" UDP request packet, with packets describing up to 600 associations. By using a request with a spoofed IP address attackers could direct an amplified stream of packets at a network. This resulted in one of the largest distributed denial-of-service attacks known at the time.


Common NTP client problems

The most troublesome problems have involved NTP server addresses hardcoded in the firmware of consumer networking devices. As major manufacturers and OEMs have produced hundreds of thousands of devices using NTP coupled with customers almost never upgrading the firmware of these devices, NTP query storms problems will persist for as long as the devices are in service. One particularly common NTP software error is to generate query packets at short (less than five second) intervals until a response is received * When placed behind aggressive firewalls that block the server responses, this implementation leads to a never-ending stream of client requests to the variously blocked NTP servers. * Such over-eager clients (particularly those polling once per second) commonly make up more than 50% of the traffic of public NTP servers, despite being a minuscule fraction of the total clients. While it might be technically reasonable to send a few initial packets at short intervals, it is essential for the health of any network that client connection re-attempts are generated at logarithmically or exponentially decreasing rates to prevent
denial of service In computing, a denial-of-service attack (DoS attack) is a cyber-attack in which the perpetrator seeks to make a machine or network resource unavailable to its intended users by temporarily or indefinitely disrupting services of a host connec ...
. This ''in protocol'' exponential or logarithmic backdown applies to any connectionless protocol, and by extension many portions of connection-based protocols. Examples of this backing down method can be found in the TCP specification for connection establishment, zero-window probing, and keepalive transmissions.


Notable cases


Tardis and Trinity College, Dublin

In October 2002, one of the earliest known cases of time server misuse resulted in problems for a web server at Trinity College, Dublin. The traffic was ultimately traced to misbehaving copies of a program called Tardis with thousands of copies around the world contacting the web server and obtaining a timestamp via HTTP. Ultimately, the solution was to modify the web server configuration so as to deliver a customized version of the home page (greatly reduced in size) and to return a bogus time value, which caused most of the clients to choose a different time server. An updated version of Tardis was later released to correct for this problem.


Netgear and the University of Wisconsin–Madison

The first widely known case of NTP server problems began in May 2003, when Netgear's hardware products flooded the
University of Wisconsin–Madison A university () is an institution of higher (or tertiary) education and research which awards academic degrees in several academic disciplines. Universities typically offer both undergraduate and postgraduate programs. In the United Stat ...
's NTP server with requests. University personnel initially assumed this was a malicious
distributed denial of service In computing, a denial-of-service attack (DoS attack) is a cyber-attack in which the perpetrator seeks to make a machine or network resource unavailable to its intended users by temporarily or indefinitely disrupting services of a host conne ...
attack and took actions to block the flood at their network border. Rather than abating (as most DDOS attacks do) the flow increased, reaching 250,000 packets-per-second (150 megabits per second) by June. Subsequent investigation revealed that four models of Netgear routers were the source of the problem. It was found that the SNTP (Simple NTP) client in the routers has two serious flaws. First, it relies on a single NTP server (at the University of Wisconsin–Madison) whose IP address was hard-coded in the firmware. Second, it polls the server at one second intervals until it receives a response. A total of 707,147 products with the faulty client were produced. Netgear has released firmware updates for the affected products (DG814, HR314, MR814 and RP614) which query Netgear's own servers, poll only once every ten minutes, and give up after five failures. While this update fixes the flaws in the original SNTP client, it does not solve the larger problem. Most consumers will never update their router's firmware, particularly if the device seems to be operating properly. The University of Wisconsin–Madison NTP server continues to receive high levels of traffic from Netgear routers, with occasional floods of up to 100,000 packets-per-second. Netgear has donated $375,000 to the University of Wisconsin–Madison's Division of Information Technology for their help in identifying the flaw.


SMC and CSIRO

Also in 2003, another case forced the NTP servers of the Australian Commonwealth Scientific and Industrial Research Organisation's ( CSIRO) National Measurement Laboratory to close to the public. The traffic was shown to come from a bad NTP implementation in some SMC router models where the IP address of the CSIRO server was embedded in the firmware. SMC has released firmware updates for the products: the 7004VBR and 7004VWBR models are known to be affected.


D-Link and Poul-Henning Kamp

In 2005
Poul-Henning Kamp Poul-Henning Kamp (; born 1966) is a Danish computer software developer known for work on various projects including FreeBSD and Varnish. He currently resides in Slagelse, Denmark. Involvement in the FreeBSD project Poul-Henning Kamp has been c ...
, the manager of the only
Danish Danish may refer to: * Something of, from, or related to the country of Denmark People * A national or citizen of Denmark, also called a "Dane," see Demographics of Denmark * Culture of Denmark * Danish people or Danes, people with a Danish a ...
Stratum 1 NTP server available to the general public, observed a huge rise in traffic and discovered that between 75 and 90% was originating with D-Link's router products. Stratum 1 NTP servers receive their time signal from an accurate external source, such as a GPS receiver, radio clock, or a calibrated atomic clock. By convention, Stratum 1 time servers should only be used by applications requiring extremely precise time measurements, such as scientific applications or Stratum 2 servers with a large number of clients. A home networking router does not meet either of these criteria. In addition, Kamp's server's access policy explicitly limited it to servers directly connected to the Danish Internet Exchange (DIX). The direct use of this and other Stratum 1 servers by D-Link's routers resulted in a huge rise in traffic, increasing bandwidth costs and server load. In many countries, official timekeeping services are provided by a government agency (such as NIST in the U.S.). Since there is no Danish equivalent, Kamp provides his time service "'' pro bono publico''". In return, DIX agreed to provide a free connection for his time server under the assumption that the bandwidth involved would be relatively low, given the limited number of servers and potential clients. With the increased traffic caused by the D-Link routers, DIX requested he pay a yearly connection fee of (approximately or ). Kamp contacted D-Link in November 2005, hoping to get them to fix the problem and compensate him for the time and money he spent tracking down the problem and the bandwidth charges caused by D-Link products. The company denied any problem, accused him of extortion, and offered an amount in compensation which Kamp asserted did not cover his expenses. On 7 April 2006, Kamp posted the story on his website. The story was picked up by
Slashdot ''Slashdot'' (sometimes abbreviated as ''/.'') is a social news website that originally advertised itself as "News for Nerds. Stuff that Matters". It features news stories concerning science, technology, and politics that are submitted and eval ...
,
Reddit Reddit (; stylized in all lowercase as reddit) is an American social news aggregation, content rating, and discussion website. Registered users (commonly referred to as "Redditors") submit content to the site such as links, text posts, imag ...
and other news sites. After going public, Kamp realized that D-Link routers were directly querying other Stratum 1 time servers, violating the access policies of at least 43 of them in the process. On April 27, 2006, D-Link and Kamp announced that they had "amicably resolved" their dispute.


IT providers and swisstime.ethz.ch

For over 20 years ETH Zurich has provided open access to the time server swisstime.ethz.ch for operational time synchronization. Due to excessive bandwidth usage, averaging upwards of 20 GB / day, it has become necessary to direct external usage to public time server pools, such as ch. pool.ntp.org. Misuse, caused mostly by IT-providers synchronizing their client infrastructures, has made unusually high demands on network traffic, thereby causing ETH to take effective measures. , the availability of swisstime.ethz.ch has been changed to closed access. , access to the server is blocked entirely for the NTP protocol.


Snapchat on iOS

In December 2016, the operator community NTPPool.org noticed a significant increase in NTP traffic, starting December 13. Investigation showed that the Snapchat application running on
iOS iOS (formerly iPhone OS) is a mobile operating system created and developed by Apple Inc. exclusively for its hardware. It is the operating system that powers many of the company's mobile devices, including the iPhone; the term also include ...
was prone to querying ''all'' NTP servers that were hardcoded into a third party iOS NTP library, and that a request to a Snapchat-owned domain followed the NTP request flood. After Snap Inc. was contacted, their developers resolved the problem within 24 hours after notification with an update to their application. As an apology and to assist in dealing with the load they generated, Snap also contributed timeservers to the Australia and South America NTP pools. As a positive side effect, the NTP library used is open source, and the error-prone default settings were improved after feedback from the NTP community.


Connectivity testing on TP-Link Wi‑Fi extenders

Firmware for
TP-Link TP-Link Technologies Co., Ltd. (), is a global manufacturer of computer networking products based in Hong Kong and Shenzhen, China. History TP-Link was founded in 1996 by two brothers, Zhao Jianjun ( ''Zhào Jiànjūn'') and Zhao Jiaxing ( ...
Wi‑Fi extenders in 2016 and 2017 hardcoded five NTP servers, including
Fukuoka University Fukuoka University is a private research university located in Fukuoka, Japan. The university has nine faculties with a total of around 20,000 students, 800 of whom are foreign. Its two campuses are in Nanakuma and Kitakyushu. Fukuoka Universit ...
in Japan and the Australia and New Zealand NTP server pools, and would repeatedly issue one NTP request and five DNS requests every five seconds consuming 0.72 GB per month per device. The excessive requests were misused to power an Internet connectivity check that displayed the device's connectivity status in their web administration interface. The issue was acknowledged by TP-Link's branch in Japan who pushed the company to redesign the connectivity test and issue firmware updates addressing the issue for affected devices. The affected devices are unlikely to install the new firmware as WiFi extenders from TP-Link does not install firmware updates automatically, nor do they notify the owner about firmware update availability. TP-Link firmware update availability also varies by country, even though the issue affects all WiFi range extenders sold globally. The servers of Fukuoka University are reported as being shut down sometime between February and April 2018, and should be removed from the NTP Public Time Server Lists.


Technical solutions

After these incidents, it became clear that apart from stating a server's access policy, a technical means of enforcing a policy was needed. One such mechanism was provided by extending semantics of a ''Reference Identifier field'' in an NTP packet when a ''Stratum field'' is 0. In January 2006, RFC 4330 was published, updating details of the
SNTP The Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable- latency data networks. In operation since before 1985, NTP is one of the oldest Internet protocols in c ...
protocol, but also provisionally clarifying and extending the related NTP protocol in some areas. Sections 8 to 11 of RFC 4330 are of particular relevance to this topic (The Kiss-o'-Death Packet, On Being a Good Network Citizen, Best Practices, Security Considerations). Section 8 introduces Kiss-o'-Death packets: The new requirements of the NTP protocol do not work retroactively, and old clients and implementations of earlier version of the protocol do not recognize KoD and act on it. For the time being there are no good technical means to counteract misuse of NTP servers. In 2015, due to possible attacks to Network Time Protocol, a Network Time Security for NTP (
Internet Draft An Internet Draft (I-D) is a document published by the Internet Engineering Task Force (IETF) containing preliminary technical specifications, results of networking-related research, or other technical information. Often, Internet Drafts are int ...
draft-ietf-ntp-using-nts-for-ntp-19) was proposed using a
Transport Layer Security Transport Layer Security (TLS) is a cryptographic protocol designed to provide communications security over a computer network. The protocol is widely used in applications such as email, instant messaging, and voice over IP, but its use in securi ...
implementation. On June 21, 2019
Cloudflare Cloudflare, Inc. is an American content delivery network and DDoS mitigation company, founded in 2009. It primarily acts as a reverse proxy between a website's visitor and the Cloudflare customer's hosting provider. Its headquarters are in Sa ...
started a trial service around the world, based on a previous Internet Draft.


References

{{Reflist, 30em, refs= {{ cite IETF , title=Network Time Security for the Network Time Protocol , draft=draft-ietf-ntp-using-nts-for-ntp-18 , publisher=
IETF The Internet Engineering Task Force (IETF) is a standards organization for the Internet and is responsible for the technical standards that make up the Internet protocol suite (TCP/IP). It has no formal membership roster or requirements and a ...
, date=2019-04-17 , access-date=2019-06-23 , format=html , df = dmy-all , last1=Franke , first1=D. , last2=Sibold , first2=D. , last3=Teichel , first3=K. , last4=Dansarie , first4=M. , last5=Sundblad , first5=R. , archive-url=https://web.archive.org/web/20190615104346/https://tools.ietf.org/html/draft-ietf-ntp-using-nts-for-ntp-18 , archive-date =2019-06-15
{{ cite IETF , title=Network Time Security for the Network Time Protocol , draft=draft-ietf-ntp-using-nts-for-ntp-19 , date=2019-04-30 , publisher=
IETF The Internet Engineering Task Force (IETF) is a standards organization for the Internet and is responsible for the technical standards that make up the Internet protocol suite (TCP/IP). It has no formal membership roster or requirements and a ...
, access-date=2019-06-23 , format=html , df = dmy-all , last1=Franke , first1=D. , last2=Sibold , first2=D. , last3=Teichel , first3=K. , last4=Dansarie , first4=M. , last5=Sundblad , first5=R. , archive-url=https://web.archive.org/web/20190613070617/https://tools.ietf.org/html/draft-ietf-ntp-using-nts-for-ntp-19 , archive-date =2019-06-13
{{Cite web , last1=Malhotra , first1=Aanchal , last2=Cohen , first2=Isaac E. , last3=Brakke , first3=Erik , last4=Goldberg , first4=Sharon , date=2015-10-21 , title=Attacking the Network Time Protocol , url=https://www.cs.bu.edu/~goldbe/papers/NTPattack.pdf , url-status=live , archive-url=https://web.archive.org/web/20190502055717/https://www.cs.bu.edu/~goldbe/papers/NTPattack.pdf , archive-date=2019-05-02 , access-date=2019-06-23 , website=
Boston University Boston University (BU) is a Private university, private research university in Boston, Massachusetts. The university is nonsectarian, but has a historical affiliation with the United Methodist Church. It was founded in 1839 by Methodists with ...
, quote=We explore the risk that network attackers canexploit unauthenticated Network Time Protocol (NTP) traffic toalter the time on client systems
{{Cite web , last=Malhotra , first=Aanchal , date=2019-06-21 , title=Introducing time.cloudflare.com , url=https://blog.cloudflare.com/secure-time/ , archive-url=https://web.archive.org/web/20190621131645/https://blog.cloudflare.com/secure-time/ , archive-date=2019-06-21 , access-date=2019-06-23 , website= Cloudflare Blog , format=html , quote=We use our global network to provide an advantage in latency and accuracy. Our 180 locations around the world all use anycast to automatically route your packets to our closest server. All of our servers are synchronized with stratum 1 time service providers, and then offer NTP to the general public, similar to how other public NTP providers function.


External links


The Trinity College incident



Poul-Henning Kamp's open letter to D-Link
(changed on 27 April 2006)
Copy of Poul-Henning Kamp's Original letter to D-Link
(from 23 April 2006)
When Firmware Attacks! (DDoS by D-Link) by Richard Clayton

OSnews' article on "NTP vandalism"

Engadget on "NTP vandalism"

FortiGate bug: firewalls sending excessive requests to the NTP Pool

Timesyncd bug: doesn't limit rate of requests
Network time-related software Denial-of-service attacks