Skip to content
DoS Advisory Advanced CVE-2016-1548

Network Time Protocol Forced Interleaved Time Spoofing Vulnerability

An off-path attacker can spoof a single NTP packet to force an ntpd client from basic client/server mode into interleaved symmetric mode, after which the client rejects all legitimate server responses. With ongoing access to the peer->dst timestamp, the attacker can also spoof time updates to change the client's clock.

Jonathan Gardner Follow

Originally disclosed on Cisco Talos

High 7.2 View original

It is possible to change the time of an ntpd client or deny service to an ntpd client by forcing it to change from basic client/server mode to interleaved symmetric mode. An attacker can spoof a packet from a legitimate ntpd server with an origin timestamp that matches the peer->dst timestamp recorded for that server.

Jonathan Gardner, 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

Likely the client accepts an origin timestamp matching peer->dst as a valid interleaved-mode packet and switches mode without being configured for it, then expects that value in future replies.

Impact

An attacker could deny time service to the client or, with ongoing access to peer->dst, change the client's clock; the report notes that combining the attacks may allow time spoofing by an off-path attacker without ntpq access.

What the attacker needed

Ability to spoof packets from the server's address; knowledge of peer->dst (e.g. via ntpq); ongoing access to peer->dst for time changes

The fix

The report states the only mitigation is to upgrade to ntp-4.2.8p, and suggests a basic-mode client should not switch to interleaved mode unless configured to do so and that peer->dst should be treated as sensitive.

How it was found

  1. Obtain the peer->dst timestamp for the target server, for example via ntpq or the NTP packet reftime field.
  2. Send a spoofed packet from the legitimate server's address with an origin timestamp equal to peer->dst.
  3. The client switches to interleaved mode and rejects all future legitimate server responses.
  4. To change time, send spoofed updates with peer->dst in the origin timestamp and suitable receive and transmit timestamps.
  5. After the clock steps and the peer resets, send one more spoofed packet to switch the client back to interleaved mode.

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 keep their clocks accurate by talking to time servers. Normally, a client checks that each reply matches a random value it sent in its request, which stops attackers from faking replies. This report shows that a fake reply with a different value can trick the client into a mode where it ignores the real server and can be fed false time.

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 Jonathan Gardner

View all

3 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.