Skip to content
Access control Advisory Intermediate CVE-2016-1551

Network Time Protocol ntpd Reference Clock Impersonation Vulnerability

ntpd treats packets from reference clock IP addresses as trusted peers, so an attacker who can send spoofed packets with such a source address could control the system time. This is possible on systems that lack martian packet filtering.

Matt Street Follow

Originally disclosed on Cisco Talos

ntpd relies on the underlying operating system to protect it from requests that impersonate reference clocks. Because reference clocks are treated like other peers and stored in the same structure, any packet with a source ip address of a reference clock (127.127.1.1 for example) that reaches the receive() function…

Matt Street, 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, ntpd stores reference clocks in the same peer structure as regular network peers and does not verify that packets from reference clock addresses actually originate from the local system, relying instead on the operating system to filter such packets.

Impact

An attacker could control the system time on systems that lack martian packet filtering, but modern operating systems already mitigate this vulnerability.

What the attacker needed

Ntpd configured with a reference clock driver; OS lacks martian packet filtering; attacker can send spoofed packets

The fix

ntpd should filter IPv4 packets with source addresses in the 127.127.x.x range to provide proactive protection for systems that fail to implement martian packet filtering.

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.

The Network Time Protocol (NTP) keeps computer clocks accurate by talking to time sources. Some of these sources are 'reference clocks' that are identified by special IP addresses like 127.127.1.1. The report says that if an attacker can send a fake message that appears to come from such an address, the time service will trust it and change the system time. This only works if the operating system does not block packets with those special addresses.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Matt Street

View all

1 more disclosed report, 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.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.