Skip to content
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

Saving Database fails with Yubikey 2FA Challenge-Response #531

Closed
stmllr opened this issue Apr 27, 2017 · 7 comments
Closed

Saving Database fails with Yubikey 2FA Challenge-Response #531

stmllr opened this issue Apr 27, 2017 · 7 comments

Comments

@stmllr
Copy link

stmllr commented Apr 27, 2017

I have a database with Yubikey 2FA Challenge-Response enabled.
If I remove the yubikey from the USB port and re-insert it, then saving the database fails with

Writing the database failed.
Unable to issue challenge-response.

This error also occurs, after the OS woke up from the suspend-to-ram state.

Expected Behavior

Database is always saved

Current Behavior

Database is only saved, when Yubikey has never been removed before.

Possible Solution

Scan for Yubikey before Saving Database

Steps to Reproduce (for bugs)

  1. Create a database and enable Challenge-Response with Yubikey inserted
  2. Add entry
  3. Save database --> success
  4. Remove Yubikey from USB port
  5. Add entry
  6. Re-Insert Yubikey to USB port
  7. Save database

Result: Error

Writing the database failed.
Unable to issue challenge-response.

Workaround

  1. ...
  2. ...
  3. ...
  4. ...
  5. ...
  6. Re-Insert Yubikey to USB port
  7. Open "Change master key" dialog
  8. Activate "Challenge Response" checkbox
  9. Cancel "Change master key" dialog
  10. Save database

Context

Build: -DWITH_XC_YUBIKEY=ON

Your Environment

Debian Linux Jessie
KeePassXC - Version 2.1.4
Revision: ad79162

Libraries:

  • Qt 5.3.2
  • libgcrypt 1.6.3

Enabled extensions:

  • KeePassHTTP
  • Auto-Type
  • YubiKey
@stmllr
Copy link
Author

stmllr commented Apr 27, 2017

The setting "Remember last key files and security dongles" is activated

@phoerious phoerious added the bug label May 7, 2017
@mritun
Copy link

mritun commented Sep 9, 2017

This is an extremely annoying problem while using YubiKey with KeepassXC (my prime reason for using XC in the first place). I shall take a look and see what can be done.

@droidmonkey
Copy link
Member

Its fixed in a PR already

@stmllr
Copy link
Author

stmllr commented Sep 11, 2017

PR #880 fixes this issue for me. Thanks @droidmonkey

@stmllr
Copy link
Author

stmllr commented Sep 11, 2017

didn't see the fix because there was no cross reference in the pull request into here.

@Tormen
Copy link

Tormen commented Oct 4, 2017

Hi,

I ran into this as well. Glad to see that there is already a solution for this in the making.

I just noticed the "MERGED" ... so perfect: The fix seems released since 3 days in version 2.2.1 :)

Thanks a lot!

Tormen

Also @stmllr : Thanks a lot for the described workaround! ... I had not yet succeeded in finding one ;)

@droidmonkey
Copy link
Member

Looks like this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants