Skip to content
Access control Advisory Advanced CVE-2015-7871

NAK to the Future: NTP Symmetric Association Authentication Bypass Vulnerability

A logic error in ntpd's handling of crypto-NAK packets allows an unauthenticated off-path attacker to create an ephemeral peer association with a victim ntpd. By sending symmetric active crypto-NAK packets, attackers can become peers and, if they outnumber legitimate servers, win the clock selection algorithm and change the victim's system time.

Matthew Van Gundy Follow

Originally disclosed on Cisco Talos

Unauthenticated off-path attackers can force ntpd processes to peer with malicious time sources of the attacker’s choosing allowing the attacker to make arbitrary changes to system time. This attack leverages a logic error in ntpd’s handling of certain crypto-NAK packets.

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

Likely a logic error in the authentication check for symmetric active packets: crypto-NAK packets set the authentication state to AUTH_CRYPTO, which bypasses both early termination conditions and causes an ephemeral association to be created with keyid 0 (no authentication required).

Impact

An attacker could change the victim's system time, which may allow authentication via expired passwords, cause TLS clients to accept expired or revoked certificates, circumvent security mitigations like certificate pinning and HSTS, deny service to time-dependent authentication systems, flush DNS and CDN caches, and damage real-time and cyber-physical systems.

What the attacker needed

Attacker can send packets to ntpd; attacker can receive responses; multiple attacking nodes; attackers outnumber legitimate servers

The fix

Upgrade to ntp-4.2.8p4 or apply vendor security updates; until then, use firewall rules to block incoming symmetric active crypto-NAK packets and enable the 'notrust' restriction.

How it was found

  1. Send symmetric active crypto-NAK packets from multiple attacking nodes to the victim ntpd.
  2. The victim creates ephemeral peer associations with the attackers, bypassing authentication.
  3. The attackers consistently advertise a time offset (e.g., 5 minutes behind true time).
  4. Because the attackers outnumber legitimate servers and provide consistent time, ntpd declares the legitimate servers falsetickers and selects an attacker as the chosen peer.
  5. The victim steps its clock to match the attacker-provided time and resets its associations.
  6. The attackers maintain the offset or make further changes.

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. Normally, a server only trusts time from sources it has been configured to use, and it checks that those sources prove their identity with a cryptographic key. This report shows that a specially crafted packet can trick the server into trusting an attacker as a time source without any key, letting the attacker change the computer's clock.

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

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.