Challange response mismatch compared with genuine yubikey #127
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I configured a pico-fido (rp2040-w, pico_fido_pico_w-6.4.uf2 nightly developer 23.3. ) for challenge response using the gui yubico authenticator. I did the same with a genuine Yubikey 5 NFC using the exact same secret. Unfortunately, the result does not seem to be the same. To investigate further, I tried the following:
ykman otp calculate 1 1122334455667788
The results for the pico-fido and the yubikey do not match.
I also tried to change the last character of the secret but the response of the above command did not change at all. Only when I changed the secret more rigorously, the response to the ever same challenge changed.
Am I missing something?
Any help is appreciated.
Please put the key you are using and the outputs of both boards for comparison. Also all the commands you use.
So I redid the tests and this is what I got. Each time I programmed slot 1 using the yubico authenticator on ubuntu hitting "challenge-response, Program a challenge-response credential" (Actually, I am not sure, how to get the same effect on the command line):
Secret:
b3cd9bc5afa573fc2ea2b7baa995af99fef9b2b4yubikey:
pico-fido:
So the both responses differ!?
Then, I changed the last letter of the secret from 4 to 5:
b3cd9bc5afa573fc2ea2b7baa995af99fef9b2b5yubikey:
pico-fido:
For the yubikey, this also changed the response completely. With the pico-fido, I get the same result as with the original secret.
Last experiment: secret shifted:
00b3cd9bc5afa573fc2ea2b7baa995af99fef9b2yubikey:
pico-fido:
Now the new secret has an effect on both responses, yet, they do not match.
Hope this helps. I'm still not sure, whether I am using it right. Especially if the secret is sensible.
Yes, it’s really helpful, thanks. How do you change the secret? Do you overwrite the slot directly or first you reset the board?
I just had it overwrite the slot. So I repeated step 1 and 2 from above like this:
same result as above.
I pushed a fix in
751fcf0.Could test TOTP and HOTP with your Yubikey and Pico Fido to see whether both return same results? Use the new development firmware published tonight.
Ha, I managed to build your very cool project!
And challenge response now works as expected. I tried all three above secrets and always got the same result as from the original yubikey. Also tested unlocking my keepass with pico-fido: works like a charm.
Thank you very much for your fast response. This was fun, working together so quickly.