TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

iOS 9 Time bug breaking two factor authentication

7 pointsby jpp123over 9 years ago
The iOS 9 clock issue previously discussed (see https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10262244) is a lot worse than originally indicated.<p>Our devops team are seeing users who can no longer authenticate using 2FA code generators because their phones are off by over 30 seconds. The offset seems fairly random - a quick poll in our office shows that it appears to only impact iOS9. Mine is off 3.7 seconds. The biggest offset I&#x27;ve seen is 41 seconds.<p>Reboots, setting manually and the n going back to auto etc don&#x27;t fid it.<p>You can check your offset at http:&#x2F;&#x2F;time.is or by downloading the free Emerald Time ntp app.<p>Any suggestions for a workaround greatly appriciated.

4 comments

Someone1234over 9 years ago
Sounds like you need to contact the vendor that supplies your 2FA since it is misconfigured&#x2F;incorrectly implemented.<p>I&#x27;ve seen this before with people who try to roll their own Google Authenticator&#x2F;TOTP implementation.<p>What they do is they read the standard, note the 30 second default step size, and entirely ignore the window. If you look at Google Authenticator while the steps are 30 seconds, the window is +1 or -1, so you can enter three different valid codes at any one time (for three different steps: 0, +30, -30).<p>But don&#x27;t take my word for it, Google has Authenicator source code available here:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;google-authenticator&#x2F;blob&#x2F;master&#x2F;libpam&#x2F;google-authenticator.c" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;google-authenticator&#x2F;blob&#x2F;master&#x2F;l...</a><p>Look at &quot;window&quot; or &quot;window_size&quot; options. To quote Google&#x27;s own comment:<p>&gt; By default, tokens are good for 30 seconds and in order to compensate for possible time-skew between the client and the server, we allow an extra token before and after the current time. If you experience problems with poor time synchronization, you can increase the window from its default size of 1:30min to about 4min. Do you want to do so<p>So as I said, your 2FA is incorrectly done.
评论 #10300325 未加载
评论 #10306925 未加载
jgeorgeover 9 years ago
My iPhone clock is 2 minutes fast. My project is with network timing, so I&#x27;m acutely aware of clocks being off, and its driving me crazy.
评论 #10307396 未加载
joezydecoover 9 years ago
My iOS9 device is now 30.5 seconds ahead of NTP and growing about 1.5 seconds per day.<p>Apple support seems to think this is my inability to turn on the &quot;automatic time setting&quot; feature. I wish this problem had more visibility.
jpp123over 9 years ago
9.0.2 fixes it
评论 #10307743 未加载