Nitrokey / nitrokey-app

Nitrokey's Application (Win, Linux, Mac)
https://www.nitrokey.com/
287 stars 55 forks source link

Applications hangs after key is connected #492

Open PureTryOut opened 1 year ago

PureTryOut commented 1 year ago

[Please fill in below details as much as possible and remove this line and other unneded data. Please provide more details for issues occurring less often.]

Expected behaviour

The application to function correctly and allow me to copy TOTP codes, etc.

Current behaviour

When the device is detected and I get the notification that it's connected, the application hangs and an error message starts appearing in the terminal.

Accepting response with CRC other than expected Command: 15 GET_USER_PASSWORD_RETRY_COUNT  Reported by response and expected: 1582915438!=4017010655

The key has recently fallen on the ground and the exterior is quite damaged (I had to reattach it, it has been weak for a while) and since then this started happening. I'm guessing this has to do with the issue? Strange it's still detected though.

Steps for reproduction

Preconditions

[Device reinserted, Application just started, Application used for almost 30 minutes etc.]

Steps

  1. Insert device with application running
  2. Wait for the "connected" notification to appear
  3. Try doing anything with the device for which you need the application

Logs

$ QT_QPA_PLATFORM=xcb nitrokey-app
[Tue Jan 24 09:46:27 2023][DEBUG_L2]    run
[Tue Jan 24 09:46:27 2023][DEBUG_L2]    Connection not established yet
[Tue Jan 24 09:46:27 2023][DEBUG_L2]    run
[Tue Jan 24 09:46:27 2023][DEBUG_L2]    Connection not established yet
[Tue Jan 24 09:46:27 2023][DEBUG_L2]    run
[Tue Jan 24 09:46:27 2023][DEBUG_L2]    Connection not established yet
[Tue Jan 24 09:46:27 2023][DEBUG_L2]    run
[Tue Jan 24 09:46:27 2023][DEBUG_L2]    Connection not established yet
[Tue Jan 24 09:48:00 2023][WARNING]     Accepting response with CRC other than expected Command ID: 15 GET_USER_PASSWORD_RETRY_COUNT  Reported by response and expected: 1582915438!=682131385
[Tue Jan 24 09:48:43 2023][WARNING]     Accepting response with CRC other than expected Command ID: 15 GET_USER_PASSWORD_RETRY_COUNT  Reported by response and expected: 1582915438!=4017010655
szszszsz commented 1 year ago

This hints a hardware problem, and seems like smart card connection is broken. Since you have access to the internals, can you check if it is inserted correctly into the SIM jacket?

PureTryOut commented 1 year ago

Since you have access to the internals, can you check if it is inserted correctly into the SIM jacket?

Seems like it is yes.

I was afraid of it being a hardware problem yes :cry: I did order a new key (Nitrokey 3 while I'm at it, although it still lacks OpenPGP support :cry:), but this key hosting my TOTP and that thus being unaccessible is an issue...