Yubico Forum
https://forum.yubico.com/

[S!] Yubikey "times out" sometimes when serial is queried
https://forum.yubico.com/viewtopic.php?f=16&t=1484
Page 1 of 1

Author:  whence [ Sat Oct 11, 2014 12:52 pm ]
Post subject:  [S!] Yubikey "times out" sometimes when serial is queried

My fresh new Yubikey times out sometimes when queried for its serial. I would
say this happens about 50% of the time or more:

whence@test:~$ for i in $(seq 1 10); do ykinfo -s; sleep 1; done
serial: 1234567
serial: 1234567
Yubikey core error: timeout
serial: 1234567
Yubikey core error: timeout
Yubikey core error: timeout
Yubikey core error: timeout
serial: 1234567
Yubikey core error: timeout
Yubikey core error: timeout

This is a big deal to me because it makes the HMAC challenge mode unusable: I
have to re-enter my password many times before getting logged in (in 2FA mode).

Yubikey fw version: 2.4.2
ykpersonalize version: 1.14.1

Interestingly, when I strace ykinfo, the bug disappears:

whence@test:~$ for i in $(seq 1 10); do strace ykinfo -s 2>/dev/null; sleep 1; done
serial: 1234567
serial: 1234567
serial: 1234567
serial: 1234567
serial: 1234567
serial: 1234567
serial: 1234567
serial: 1234567
serial: 1234567
serial: 1234567

Author:  Tom [ Mon Oct 13, 2014 2:18 pm ]
Post subject:  Re: [BUG] Yubikey "times out" sometimes when serial is queri

Hello,

Get the newer ykpersonalize > 1.14.2 wait more then 1 millisec between writes to the key

Tom.

Author:  whence [ Mon Oct 13, 2014 2:35 pm ]
Post subject:  Re: [BUG] Yubikey "times out" sometimes when serial is queri

Thanks Tom, I will try that out.


FYI I installed this ykpersonalize version through the Ubuntu package repository (it is the latest available version as of now). You may want to ask those responsible for those packages to update the version they are shipping.

Author:  whence [ Mon Oct 13, 2014 2:51 pm ]
Post subject:  Re: [S!] Yubikey "times out" sometimes when serial is querie

I confirm version 1.15 of libykpers solves the problem.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/