Network Time Protocol Skeleton Key: Symmetric Authentication Impersonation Vulnerability
The NTP daemon did not check that the symmetric key used to authenticate an incoming packet matched the key configured for that peer, so any trusted key could be used. An attacker with a trusted key could impersonate another server or peer and shift a client's clock.
Originally disclosed on Cisco Talos
Symmetric key encryption requires a single trusted key to be specified for each server configuration. A key specified only for one server should only work to authenticate that server, other trusted keys should be refused.
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 receive path authenticated packets using whatever keyid the packet carried, without comparing it to the keyid configured for the peer association.
Impact
An authenticated peer or server could impersonate another peer and shift a client's clock; a weak MD5 key in the trusted list could also be abused instead of stronger keys.
What the attacker needed
Shared trusted symmetric key; network position for ARP spoofing; multiple peers or servers configured
The fix
The report proposes an untested patch that rejects packets whose keyid differs from the peer's configured keyid before authentication.
How it was found
- Set up a server and two clients that share several symmetric keys.
- Configure each client to use a different keyid for its peer association.
- Use ARP spoofing to intercept traffic between a client and the server.
- Modify the timestamps in server replies and re-authenticate them with the other client's key.
- The client accepts the forged replies and steps its clock.
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. When two computers share a secret key, they use it to prove a time message really came from the other. Here the software accepted any key it trusted, not just the one meant for that particular partner, so someone who knew one key could pretend to be a different time server.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.