Kunzisoft / KeePassDX

Lightweight vault and password manager for Android, KeePassDX allows editing encrypted data in a single file in KeePass format and fill in the forms in a secure way.
https://www.keepassdx.com/
GNU General Public License v3.0
4.55k stars 269 forks source link

kdbx file with YubiKey challenge-response master key saved by KeePassDX can't be opened by keepassxc #1719

Closed andyli closed 1 month ago

andyli commented 9 months ago

Describe the bug

I have an existing kdbx file. Recently, I enabled YubiKey challenge-response on top of a password, using KeePassXC on Windows. The file can be opened and decrypted by KeePassXC on Windows and KeePassDX on Android, using the same master password and YubiKey. However, once I save it with KeePassDX on Android, even without any changes to the entries, the kdbx file can no longer be decrypted by KeePassXC on Windows, but still decryptable by KeePassDX on Android.

To Reproduce

Here is the kdbx file with all passwords removed: yubikey-sample-kdbx.zip

Steps to reproduce the behavior:

  1. Open "password-only.kdbx" in KeePassDX on Android, password is test
  2. Go to settings and change master key, input test as password, select Yubikey challenge-response.
  3. Save the file.
  4. Open the file with KeePassXC on Windows, try to decrypted, "invalid credencials" error message will be shown.

Expected behavior

kdbx files saved in KeePassDX on Android can be opened and decrypted by KeePassXC on Windows.

KeePass Database

KeePassDX:

Android:

Additional context

squishey123 commented 1 month ago

Running into a similar issue. Database made on windows can not be opened on mobile, database on mobile can not be opened on windows.

Using a ubikey 5 NFC Standard Keepass 2 v2.57 install on windows 11 Set length challenge-response programmed in yubikey personalization tool

J-Jamet commented 1 month ago

You are using KeePassDX Version: 4.0.5, upgrade at the latest version 4.0.8

J-Jamet commented 1 month ago

Same as https://github.com/Kunzisoft/KeePassDX/issues/1680