Live data from Hacker News

Multiple vulnerabilities released in NTP

support.ntp.org

41–50 of 120 posts

Re: Multiple vulnerabilities released in NTP

#41
post #35
post #14

Earlier quoted context omitted.

There is also systemd-timesyncd and Chrony.

systemd-timesyncd is not much of an alternative. It is simply an sntp client, it does not serve time to other hosts nor can it use reference clocks.

Sure, but IMO enough many systems use NTP only in a sntp manner to mention it.

Re: Multiple vulnerabilities released in NTP

#42
post #32

Earlier quoted context omitted.

ntp network traffic can be authenticated with symetric keys or autokey currently, and with NTS in the future. Many national labs support authenticated time for free and even more provide authenticated ntp for a fee.[1] Moreover if you care about time you can use a cheap GPS+PPS[2] as a reference or splurge and get a CDMA card. Your "replace it with tlsdate" solution makes little sense; at some point you need NTP or P…

You need encrypted time sync when you don't have a local trusted source, and to reduce your susceptibility to to pseudo MITM attacks (though, having just said that, you're right - UTC isn't a secret, so an attacker could just use that. However, and I'm not sure the answer, the key may be in how much information is leaked to the NTP server on current clock drift state. That being said, I'm fairly sure Kerberos etc don…

You are confusing authentication and encryption. Authenticated time protects against MITM attacks. You can obtain authenticated time synch from many national labs, such as NIST[1] or CRC[2].

I do not understand the need for confidentiality.

[1]: http://www.nist.gov/pml/div688/grp40/auth-ntp.cfm

[2]: https://www.nrc-cnrc.gc.ca/eng/solutions/advisory/calibratio...

Re: Multiple vulnerabilities released in NTP

#43
post #33

Earlier quoted context omitted.

You could circumvent certificate revocations by replaying expired OCSP Staple responses that say a certificate is not revoked. You could also cause expired certificates to be accepted, which limits the utility of short-lived certs as a means of protecting against key compromise. And as hannob said, you can circumvent HSTS by setting the time in the future, causing all HSTS entries to be expired.

Pretty persistent attacker. It should take something like 100 days to push the clock off by one day.

Ubuntu accepts arbitrary time jumps, the attack was presented live at BH with an Ubuntu System.

Re: Multiple vulnerabilities released in NTP

#44
post #20

This is interesting timing, I was just in the freenode #linux channel yesterday asking about security issues with NTP. I got told it was a non-issue and that I was "tilting at windmills". I have been using chronyd in Alpine linux to good effect so far, but have really been wondering how bad it would be if I just turned it all off.

having a host clock that is out of sync can be incredibly troublesome, especially if you have more than one system.

Especially if your distributed database relies on clocks, as some do.

Re: Multiple vulnerabilities released in NTP

#45
post #32
post #27

The best solution is not to use ntp anyway. It's an unencrypted, unauthenticated protocol vulnerable to Man in the Middle attacks. There was a pretty neat attack presented at BH Europe circumventing HSTS with a MitM-attack on NTP. Better just replace it with tlsdate.

ntp network traffic can be authenticated with symetric keys or autokey currently, and with NTS in the future. Many national labs support authenticated time for free and even more provide authenticated ntp for a fee.[1] Moreover if you care about time you can use a cheap GPS+PPS[2] as a reference or splurge and get a CDMA card. Your "replace it with tlsdate" solution makes little sense; at some point you need NTP or P…

ntp authentication is broken: http://zero-entropy.de/autokey_analysis.pdf and it was the same guy who found the new vulnerabilities :-)

Re: Multiple vulnerabilities released in NTP

#46
post #18

A remote attacker can send a carefully crafted packet that can overflow a stack buffer and potentially allow malicious code to be executed with the privilege level of the ntpd process. Geez, in a time sync program? Nothing is safe anymore.

ntpd is a, uh, rather large time sync program.

Indeed. PHK noted that it's on the order of 100,000 lines of code. That's a staggering amount for something that queries a remote server and steers your clock.

Re: Multiple vulnerabilities released in NTP

#47
post #15
post #3

Might want to check out OpenBSD's OpenNTPD: http://www.openntpd.org/

I've talked to several developers about the state of NTP daemons and neither OpenNTPD nor DragonflyBSD's dntpd are suitable replacements. Neither of those support NTP Authentication nor do they have all of the required algorithms required for proper timekeeping.

>nor do they have all of the required algorithms required for proper timekeeping.

I hear something like that a lot, yet all my systems run openntpd and all of them are keeping proper time without issue. What exactly is so not proper about it, and which algorithm exactly does it need to be "proper"?

Re: Multiple vulnerabilities released in NTP

#49
post #44
post #20

Earlier quoted context omitted.

having a host clock that is out of sync can be incredibly troublesome, especially if you have more than one system.

Especially if your distributed database relies on clocks, as some do.

Which sane distributed database relies on UTC or similar wall clock?

When I did my distributed DB course way back when I was at uni it was all Lamport or vector clocks...

Post reply on HN