Commit Graph
3710 Commits
Author SHA1 Message Date
Litschi21andJonathan White c8a1b8c281 Add checkbox to exclude expired entries in HIBP report (#13726)
---------

Co-authored-by: Jonathan White <[email protected]>
2026-11-30 06:32:15 -05:00
50e2a47df3 Remote sync: show script error output in the failure message (#13779)
- Append the script's stderr (fallback stdout, capped at 500 chars) to
  download/upload error messages so the actual failure reason is visible
  (e.g. 'NAS share not connected: /Volumes/...').
- Sync error messages now stay visible until closed instead of
  auto-hiding, so the detail can actually be read.
- Do not attempt an upload after a failed download (previously an upload
  with an empty temp path was attempted, masking the real download error).
- Tests: MockRemoteProcess gains configurable exit code/error output;
  new TestGui::testRemoteSyncErrorDetail.

---------

Co-authored-by: moritzthecat <[email protected]>
Co-authored-by: droidmonkey <[email protected]>
2026-11-30 06:31:42 -05:00
Oleksii Khomchenko 4c366eed10 Fix Protect checkbox clicks in macOS Classic theme (#13800)
Remove the margins that misalign the visible checkbox square and its
clickable area.
2026-11-30 06:31:07 -05:00
Litschi21 1abf760fc9 Skip expired autoopen items (#13922)
When an entry in the autoopen folder is marked expired, no longer execute autoopen.
2026-11-30 06:30:47 -05:00
Litschi21 e9dc281454 Set StartupNotify=true in Desktop file (#13958) 2026-11-29 22:07:41 -05:00
Sven Strickrothanddroidmonkey 6b90357ac2 Resolve placeholders as done e.g. in PasskeyImportDialog (#14054)
---------

Signed-off-by: Sven Strickroth <[email protected]>
Co-authored-by: droidmonkey <[email protected]>
2026-11-29 22:07:19 -05:00
ZainnQureshiiandClaude Opus 5.5 f1c134ab14 Show stored times in local time in reports, preview and health check
Database Reports and keepassxc-cli db-info printed the root group's
creation time in UTC while Last saved is shown in local time. The group
expiry in the preview panel and the Health Check expiry text had the
same problem. Convert to local time at these display sites, as the
entry model and properties widget already do.

Fixes #12017

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-29 22:06:24 -05:00
HomesGH 312b3fbe0b Fix field name to allow for "tags:" 2026-11-29 22:04:48 -05:00
underclockeddev 98c810334d Keep handling SIGTERM and SIGINT after a refused quit
Application::quitBySignal() disabled its socket notifier before emitting
quitSignalReceived() and never enabled it again. When the quit is refused,
for example while a reload's unlock dialog is pending and the database
cannot be locked, every later SIGTERM or SIGINT was ignored for the rest of
the process's life, so a session manager or systemd stop could only end in
SIGKILL.
2026-11-28 22:06:51 -05:00
Arthur Zamarin d274186d50 Fix Polkit Quick Unlock when built without FdoSecrets
CheckAuthorization passes "details" (a{ss}) as a top-level D-Bus
argument, which requires QMap<QString, QString> to be registered with
QtDBus. It was only registered by the FdoSecrets code, so when built
with KPXC_FEATURE_FDOSECRETS=OFF, Quick Unlock fails with:

    Polkit returned an error: Marshalling failed: Unregistered type
    QMap<QString,QString> passed in arguments

Signed-off-by: Arthur Zamarin <[email protected]>
2026-11-28 22:06:20 -05:00
varjolintu 3b77ca4db7 Browser: Do not use direct Entry pointers in confirm dialog 2026-11-28 22:05:52 -05:00
oasaleh 1725c8215f Fail db-edit when the new database key cannot be transformed
keepassxc-cli db-edit ignored the result of Database::setKey(). On a
KDBX 4 database whose key includes a challenge-response component, the
new key keeps that component, so db-edit challenged the hardware key
twice: once to transform the new key and again when saving. If the
first challenge failed, for example because the key was not touched in
time, but the second one succeeded, the database kept its old key. The
command then saved the database with the old credentials and printed
"Successfully edited the database.", although the requested password
or key file change had not been applied.

Report the failure, with the reason given by the key, and exit without
saving instead.

Challenge-response keys can now set their error, so that the mock key
used by the tests reports why a challenge failed.
2026-11-28 22:05:00 -05:00
Litschi21 1eee1e4ea0 Add warning for leading/trailing spaces in password 2026-11-28 22:04:24 -05:00
oasaleh 469ab761ee Reject AES-KDF seeds that are not 32 bytes long
The seed of AES-KDF is the AES-256 key, but seeds of 8 to 31 bytes were
accepted from the KDF parameters of a KDBX 4 database. Botan then
rejected the key and the error was ignored, so the database key was
derived without any AES rounds, while the database settings still showed
the configured number of rounds. Saving the database kept the short
seed.

Require seeds of exactly 32 bytes, as the KDBX format specifies, and
fail the key derivation when the AES transformation fails. Mark
SymmetricCipher::aesKdf() Q_REQUIRED_RESULT, so that its result can't be
ignored again unnoticed.

KeeShare ignored a failure to set the key of an export. Now that the key
derivation can fail, for example when memory runs out, a signed export
that needs KDBX 4 would then be written with an empty key instead of the
share password. Abort the export instead.
2026-11-28 22:02:25 -05:00
alcroito 68fb7e3360 macOS: Return focus to the requesting app after Touch ID unlock
After a browser request unlocked the database with Touch ID, focus stayed
on KeePassXC instead of returning to the app that made the request.

The last active application is tracked from
NSWorkspaceDidDeactivateApplicationNotification. The Touch ID prompt is
shown by the coreautha agent, so when it closed it replaced the
requesting app, and raiseLastActiveWindow() then activated coreautha,
which has no window.

Only track regular applications, which skips background agents like
coreautha and UserNotificationCenter.

Fixes: #14168
2026-11-28 22:02:05 -05:00
Jessy2027 cd42236540 Fix UI freeze when downloading favicons with slow DNS
IconDownloader::setUrl resolved the entry's host name with the blocking QHostInfo::fromName on the GUI thread, only to find out whether the host is an IP address. When the DNS servers are slow or unreachable, the whole window stopped responding until the lookup timed out.

Check the host with UrlTools::isIpAddress instead, which parses the literal address without any network access. Also add IPv6 literal cases to the icon downloader tests.

Fixes #13989
2026-11-17 08:46:04 -05:00
Jonathan White 387fc781a2 Fix horizontal progress bars after Qt6 migration
* Fixes #13825
2026-11-15 12:21:14 +01:00
varjolintu 6f97143a0b Browser: Add port to title if found when creating new credentials 2026-11-13 19:52:22 +01:00
Sami VänttinenandJanek Bevendorff f33f01bf3a Browser: Fix domain matching with subdomains and wildcards (#14045)
---------

Co-authored-by: Janek Bevendorff <[email protected]>
2026-11-13 14:53:01 +01:00
Sami Vänttinen 300f0801a8 Passkeys: Fix use-after-free with passkey register/auth dialogs (#14011)
* Passkeys: Fix use-after-free with passkey register/auth dialogs
* Add one GUI test for testing the dialog rejection
2026-11-12 23:51:58 +01:00
tikisan_ b1715d81c1 Fix KDBX minor version mismatch warning after reading header
- Keep the KDBX version from the file header when setKdf() runs during open.
- Add testMinorVersionMismatchAfterSetKdf to prevent regressions.
2026-11-12 23:12:52 +01:00
Janek Bevendorff 6bcb901aef Fix out-of-bounds write due to integer wrap in KeeShare import
Thanks @tntrock for reporting
2026-11-05 08:15:26 +01:00
Janek Bevendorff a276a44b9a Bound allocation size in OpData01 reader
Thanks @smaeljaish771 for reporting
2026-11-05 08:15:26 +01:00
Janek Bevendorff 2082084690 Store only one UUID per entry in KDB reader.
Fixes use-after-free for crafted KeePass1 files with duplicate UUID fields.

Fixes GHSA-3524-mf44-vjr9 (thanks @tntrock)
2026-11-05 08:15:26 +01:00
Janek Bevendorff 13f56db73e Reject KeeShare references without <Group>
Reject KeeShare references without a UUID and prevent synchronous reentry during import. A missing UUID previously got assigned a random UUID on each parse, causing equality checks to evaluate to false. During the merge, group removal signals could then trigger a nested import, leading to recursive destruction and use-after-free.

References without a <Group> are now rejected, nested imports are blocked by reentrance guards, and regression tests are added.

Additionally fixes file change updates arriving during a running import being silently dropped. These updates are now queue for later execution.
2026-11-04 15:58:29 +01:00
Janek Bevendorff c263a116d9 Fix window geometry restoration bug
Sometimes KeePassXC did not restore the window geometry properly. This change moves the geometry restoration to before showing the window. That should fix issues especially when the window is moved to another monitor on Wayland, but it may also resolve other strange quirks that can happen when the window starts in the tray.
2026-11-02 18:00:31 +01:00
varjolintu ba7473c0bb macOS: Force showing icons and shortcuts in menus 2026-11-02 09:55:44 +01:00
Janek Bevendorff f218280c07 Fix update version check
Handle -1 revisions correctly in the updater check version comparison and allow suffixes in the release-tool.
2026-11-01 18:25:56 +01:00
Janek Bevendorff da0b07117d Fix translation file updates
release-tool.py i18n lupdate checked for an "lupdate version 5.x" substring, which no longer matches for Qt6. The check is unnecessary, and was removed.

Further, Qt 6.11 no longer skips empty source strings, so they make their way into keepassxc_en.ts. This is unnecessary, and it creates a mismatch between a local update and the CI still running Qt 6.4. Replaced empty tr("") strings with plain "".
2026-11-01 13:53:41 +01:00
Janek Bevendorff 70e439eb5f Fix potential integer overflows in importers
This is a fixup to #13682 (thanks @tikipiya).

I also found potential overflows in the OPVault importer, which are now fixed. These overflows are mostly relevant on 32-bit systems only, where Qt's decision to use signed ints for all size types comes to bite you.

Small API change: The size parameter of KeePass2RandomStream::randomBytes was widened from int to qsizetype, which is the more appropriate type anyway.
2026-11-01 13:53:41 +01:00
Toni Spets 0491ec6f06 Fix Ed25519 key size shown as 32 bits in SSH key generation dialog
Fixes #13871
2026-10-27 22:58:49 -04:00
Janek Bevendorff 09e34ba86c Ensure Qt's TLS plugins are deployed on macOS
For whatever reason, macdeployqt does not deploy the TLS plugins on its own. We need to find them manually.

Fixes #13855
2026-10-24 01:13:43 +02:00
Janek Bevendorff a6ba28f8b2 Reformat code with clang-format-20 2026-10-23 15:44:56 +02:00
Janek Bevendorff d5e43b779d Update GitHub sponsors 2026-10-21 14:28:07 +02:00
egglessness e0e3b844e9 Add support for configuration overrides via GPOs in Windows
This is a Windows only feature that uses policies set in the registry to control settings in KeePassXC. Overrides are set in HKLM\Software\Policies\KeePassXC and uses the same structure as the ini settings file. Overridden settings are disabled in the user interface and their values are not written to the user's own settings file.
2026-10-21 00:03:57 -04:00
Christian 9b4632a8da Restore wl-copy clipboard clearing on Wayland
Fixes #13809
2026-10-20 17:49:51 +02:00
Jonathan White 6c686af438 Improve cross-compiling ARM64 on Windows
* Fix using the specified QT_HOST_PATH for executables
* Fix setting the Visual Studio environment for cross-compiling
2026-10-20 11:06:53 +02:00
underclockeddev 0ae1b94093 Do not query the X root window without a display
Under QT_QPA_PLATFORM=offscreen the X11 native interface exists but has no
display, and DefaultRootWindow() dereferenced the null pointer at startup.
The global shortcut code already checks for a null display.
2026-10-18 16:24:31 +02:00
underclockeddevandClaude Opus 5.5 596ae49d60 Clear m_attemptingLock when a lock's autosave triggers a reload
DatabaseWidget::lock() returned early when its autosave failed and a reload
began, without clearing m_attemptingLock. Every later lock() then returned at
the m_attemptingLock check, so the database could not be locked again until
KeePassXC was restarted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-18 16:13:58 +02:00
Toni Spets d608efc1b8 Fix portal availability checks racing with D-Bus service activation
QDBusAbstractInterface::isValid() can latch an empty service owner
cached while xdg-desktop-portal is still activating, permanently
disabling auto-type and the global shortcut. Use the interfaces'
version() property reads instead: real blocking calls that trigger
activation if needed and return 0 only on failure.
2026-10-18 14:37:32 +02:00
varjolintu b05b0dd2e8 Use selected database when creaeting a new group when creating a passkey 2026-10-17 06:06:37 -04:00
Jonathan White b5523be1a1 Additional fixes for macOS and modern Qt6
* Replace Q_OS_MAC with Q_OS_MACOS
* Remove deleted macro QTEST_DISABLE_KEYPAD_NAVIGATION
2026-10-15 14:18:47 -04:00
Jonathan White 50738ec006 Fix warnings with COMPAT signal after Qt6 upgrade
* Fixes a specific warning that spams the console due to a deprecated signal that was used to indicate checkboxes state changed.
* Converted all QCheckBox::stateChanged(int) to QCheckBox::toggled(bool). All functionality still works as intended.
2026-10-15 14:18:47 -04:00
ryain11andJanek Bevendorff 21bdc8248f Fixed a Secret Service Integration connection dereferencing a nullptr in some cases (#13655)
* Fix Secret Service message being null in some cases when unlocking a database

* Update changelog

---------

Co-authored-by: Janek Bevendorff <[email protected]>
2026-09-22 21:46:56 +02:00
varjolintu 80e68bb4e8 Fix out-of-bounds writing to browser messages 2026-09-22 21:46:36 +02:00
varjolintu dfdd561fc5 Passkeys: Fix parsing punycode domains 2026-09-21 22:26:59 -04:00
Janek Bevendorff a69ff5b9ec Update About credits 2026-09-20 21:46:58 -04:00
2b58033398 Add native Windows Arm64 support on Qt-vcpkg builds (#13678)
* Add minimal native Windows Arm64 support

Extend the Qt-via-vcpkg work from #13473 with only the source changes required for Windows Arm64 triplet selection, deployqt resolution, ordered runtime dependency deployment, and architecture-correct MSI metadata.

Co-authored-by: Janek Bevendorff <[email protected]>
Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Gordon Lam (SH) (from Dev Box) <[email protected]>
Co-authored-by: Janek Bevendorff <[email protected]>
Co-authored-by: Copilot <[email protected]>
2026-09-20 23:59:34 +02:00
ryain11 f2003b4087 Fix password font size not changing
* Move font size application to showEvent instead of constructor to enable dynamic font size application if changed in app settings.
2026-09-20 20:40:18 +02:00
SimonandCopilot Autofix powered by AI 126f508e6a Add list storing key of all custom attributes in database
Add completer when adding/renaming custom attribute

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-09-19 19:26:55 -04:00