Network Time Protocol Authenticated Preemptable Modes Denial-of-Service Vulnerability
An off-path attacker can send broadcast NTP packets with bad authentication to a broadcast client, and the client tears down its association with the real server after just one bad packet. By repeating this, the attacker can stop the client from ever synchronising with the legitimate broadcast server, denying NTP service even in authenticated mode.
Originally disclosed on Cisco Talos
The protocol should prevent against off-path Denial of Service attacks in authenticated broadcast and other modes which create preemptable associations, such as: multicast client, manycast client, pool client modes, and associations configured with the “preempt” option.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the client discards its association and clears state on any improperly authenticated packet, and broadcast packets carry no origin timestamp check to tie them to the real server.
Impact
An off-path attacker could deny NTP service to a broadcast client even when authentication is enabled, and the same was confirmed against multicast, manycast, pool and preempt associations.
What the attacker needed
Network access to the broadcast subnet; client in broadcast or preempt mode; no valid key needed
The fix
Improperly authenticated packets should be discarded without changing any state, and an origin timestamp check should be added for broadcast packets.
How it was found
- Set up a broadcast server with a trusted key and a broadcast client configured only as a broadcast client.
- Have an off-path attacker send broadcast packets to the subnet using an incorrect key.
- Observe that the client tears down its association with the real server after one bad packet.
- Keep sending bad authenticated packets frequently so the client never collects enough good samples to sync.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
NTP is the protocol computers use to set their clocks. In broadcast mode, a server sends time updates to many clients at once, and clients can be told to trust only updates signed with a shared secret key. Here, a client throws away its link to the real server as soon as it sees one update with a wrong signature, so anyone on the network can keep sending bad updates and stop the clock from ever being set correctly.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.