Skip to content
DoS Advisory Advanced CVE-2016-7427

Network Time Protocol Broadcast Mode Replay Prevention Denial of Service Vulnerability

ntpd's broadcast mode replay protection updated the saved transmit timestamp for a sender before the packet was authenticated, so an unauthenticated attacker could send a spoofed broadcast packet with a future timestamp and cause all later legitimate broadcast packets from that server to be rejected. This lets a remote attacker deny time synchronisation to victims relying on broadcast mode.

Matthew Van Gundy Follow

Originally disclosed on Cisco Talos

An exploitable denial of service vulnerability exists in the broadcast mode replay prevention functionality of ntpd. To prevent replay of broadcast mode packets, ntpd rejects broadcast mode packets with non-monotonically increasing transmit timestamps.

Matthew Van Gundy, on Cisco Talos

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

The saved broadcast transmit timestamp was updated before authentication and before the packet was accepted, so unauthenticated packets could poison the replay-protection state.

Impact

A remote unauthenticated attacker can cause ntpd to reject all broadcast mode packets from legitimate servers, denying time synchronisation; authentication and the notrust directive do not help because the vulnerable logic runs before authentication.

What the attacker needed

Network access to the victim; knowledge of the broadcast server address; one spoofed packet per poll period

The fix

The saved broadcast timestamp should only be updated after the packet authenticates correctly, which is what the supplied patch does.

How it was found

  1. Discover the IP address of the victim's broadcast server, for example from the refid field of a client mode reply.
  2. Every poll period, send the victim a spoofed broadcast mode packet from that server with a transmit timestamp in the future.
  3. The victim's saved timestamp moves forward, so legitimate broadcast packets are rejected by the non-monotonic timestamp check.

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 regularly sends the time to many clients, and clients ignore any packet whose timestamp is older than the last one they saw, to stop an attacker replaying old packets. Here the client saved the attacker's fake future timestamp before checking whether the packet was genuine, so every real packet afterwards looked old and was thrown away.

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.

More by Matthew Van Gundy

View all

8 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.