NTP BUG 2947: ntpq protocol vulnerable to replay attacks (original) (raw)
Last update: June 28, 2022 20:06 UTC (57417e17c)
Summary
Resolved | 4.2.8p6 | 19 Jan 2016 |
---|---|---|
References | Bug 2947 | CVE-2015-8140 |
Affects | All ntp-4 releases up to, but not including 4.2.8p6. | Resolved in 4.2.8p6. |
CVSS2 Score | MED 5.4 | AV:A/AC:M/Au:N/C:P/I:P/A:P |
CVSS3 Score | MED 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Description
The ntpq
protocol is vulnerable to replay attacks. The sequence number being included under the signature fails to prevent replay attacks for two reasons. Commands that don’t require authentication can be used to move the sequence number forward, and NTP doesn’t actually care what sequence number is used so a packet can be replayed at any time. If, for example, an attacker can intercept authenticated reconfiguration commands that would. for example, tell ntpd
to connect with a server that turns out to be malicious and a subsequent reconfiguration directive removed that malicious server, the attacker could replay the configuration command to re-establish an association to malicious server. Yes, this is an unlikely scenario, but it could still happen.
Mitigation
- Configure
ntpd
to get time from multiple sources. - Use restrict statments in your
ntp.conf
file to limit who is allowed to issuentpq
queries and remote configuration commands. - Monitor your
ntpd
instances.
Credit
This weakness was discovered by Matt Street of Cisco ASIG.
Timeline
- 2016 Jan 19: Public release
- 2016 Jan 17: Early Access Program Release: Premier and Partner Institutional Members
- 2015 Nov 5: Notification to Institutional Members
- 2016 Oct 16: Initial notification from Cisco