-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WRONG_PASSWORD after accessing Nitrokey with scdrand #81
Comments
Thank you for the detailed report! Connected: #54 nitrokey-pro-firmware/src/ccid/CcidLocalAccess.c Lines 1037 to 1073 in 5c31441
|
Moving this ticket to Nitrokey Pro firmware project. |
Thanks for looking into this! I think this is a different issue than the GnuPG problem because:
Also, |
I agree, this is not exactly the same - let me elaborate on my understanding of the cause. Perhaps it would be best to workaround it by signalizing to host the smart card ejection before running any local access, then restoring it back afterwards. This should clear the cache on the host as well. It would be nice to finish the current CCID host-sourced tasks first before doing so, so the exclusion would not be forced. That should fix the current issues, but may introduce some side-effects. The PIN length being a factor is not exactly fitting in my theory though. The 14-bytes difference should not make the call divided into multiple parts. Let me know what you think. |
Makes sense, thanks for the explanation! |
By the way, even a 19-character passphrase did not trigger the issue. |
This starts to sound like a buffer overflow or missing a |
@robinkrahl do attempt counters change after executing the test? |
According to the initial bug report, no. I haven’t checked that myself. |
I do not see anything in the firmware regarding the PIN validation so far. To check with the actual debugging. |
First reported by @bircoph against nitrocli, see d-e-s-o/nitrocli#175.
Steps to reproduce:
This could not be reproduced with the default passphrase
123456
. Instead of calling nitrocli, the issue could also be reproduced by executing this minimal example:Log for step 4:
Log for step 5:
Device information:
The text was updated successfully, but these errors were encountered: