this post was submitted on 16 Aug 2023
64 points (100.0% liked)

Sysadmin

7640 readers
1 users here now

A community dedicated to the profession of IT Systems Administration

No generic Lemmy issue posts please! Posts about Lemmy belong in one of these communities:
!lemmy@lemmy.ml
!lemmyworld@lemmy.world
!lemmy_support@lemmy.ml
!support@lemmy.world

founded 1 year ago
MODERATORS
top 11 comments
sorted by: hot top controversial new old
[–] mo_ztt@lemmy.world 38 points 1 year ago (1 children)

Informative article but it meanders about for way too long.

  • In some circumstances, Windows resets its clock based on the ServerUnixTime field of incoming TLS handshakes, for reasons that are not completely clear
  • OpenSSL puts random numbers in ServerUnixTime
  • Problem!
  • Disable via HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\SecureTimeLimits

See? That didn't take long.

[–] flambonkscious@sh.itjust.works 2 points 1 year ago (1 children)

So does that mean one needs to run NTP as well as the domain-based time sync, for when the donation based one fails?

Seems weird. I wonder why they're so cagey about it

[–] mo_ztt@lemmy.world 2 points 1 year ago

Their official advice is to disable STS when using NTP.

As for the explanation, I think it was just an example of bad decisions compounding on themselves.

  • Oh no, it's difficult to sync time because the secure communication layer doesn't work when our time is already out of sync. That's okay, we'll use a totally other dubious mechanism instead of fixing that.
  • Oh no, the dubious mechanism is giving us bad results sometimes. That's okay, we'll introduce weird heuristics to attempt the impossible problem of determining whether the dubious mechanism's output is trustworthy.
  • Oh no, the heuristic fails sometimes. That's okay, "We agree that the overall direction of technology with the adaption of TLS v1.3 and other developments in this area could make Secure Time Seeding decreasingly effective over time, but we are not aware of any bugs arising from their use. This technology direction also makes heuristic calculation of time using SSL/TLS far less attractive when compared to deterministic, secure time synchronization."
[–] MossyFeathers@pawb.social 16 points 1 year ago (2 children)

Right. Instead of setting up their own secure date and time server or ensuring devices can establish a secure channel to a time server regardless of the circumstances, they decided to use SSL certificates to securely get the date and time? Which is an issue because the unix time stamp can have anything in it. Not only that, but it's enabled by default, meaning that most server hosts won't think to disable it until it starts causing problems. Right. And no one thought that this would be an issue?

I'm not a professional, but if I were to take a guess as to why the bug is becoming more common, it'd be that it's probably self-perpetuating. One server gets the wrong unix time and flips out. Then, while IT is trying to fix the server, another server just kinda yoinks the SSL certificate from the bugged server to check the unix time. That server now has the wrong time too. However, this server doesn't have anything time-sensitive on it (or at least nothing urgently affected by the time bug), and the error corrects itself by the time anyone notices. In the meantime, another server has borrowed that server's SSL certificate, again, to check the time, and gets the wrong time as a result. Throw in the fact that there may be some people who, either out of maliciousness or for some niche application, have their systems intentionally misreporting the unix time, and voila!

[–] ApathyTree@lemmy.dbzer0.com 9 points 1 year ago

My favorite bit of the article is this (also not a professional)

“The engineer then tapped a third party specializing in Microsoft cloud security to act as an intermediary. The intermediary relayed a response from Microsoft recommending STS be turned off when the server receives reliable timekeeping through the Network Time Protocol.”

Microsoft is bad enough that they know it’s an issue and basically said “we aren’t going to fix it, and we won’t tell you directly or make the issue known to avoid problems, but just turn it off”

Honestly should be their official motto. They did the same thing with a vulnerability installaware addressed for them last year.

If windows doesn’t work the way it should, just turn it off (forever, and install Linux).

[–] joyjoy@lemm.ee 2 points 1 year ago (1 children)

They already have that. time.windows.com

[–] SheeEttin@lemmy.world 2 points 1 year ago

If it ain't broke, fix it until it is, I guess.

[–] SheeEttin@lemmy.world 8 points 1 year ago

If you have a critical system, don't run it on Windows. Maybe one of these days they might ship it with sane defaults instead of weird shit like this, or security settings violating their own best practice documents.

[–] Chickenstalker@lemmy.world 2 points 1 year ago

Nuh uh. Microsoft is so advanced thar their Quantum™ based technology allows servers to time travel.

[–] secret301@sh.itjust.works -2 points 1 year ago (1 children)

2023 and businesses still be using windows server??

[–] JickleMithers@kbin.social 4 points 1 year ago

They are very common. You're not thinking of small businesses and their needs. Sure, a linux server works wonders for a large corporation where it's doing a lot of back end stuff but you'll be hard pressed to find a business that flies solely on linux.