Commit Graph
5078 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
Manuel Alejandro Jiménez Torres f5346c7691 Update Qt 5 references in docs after the Qt 6 migration
INSTALL.md still listed Qt >= 5.12.0 and a Homebrew Qt@5 note, while
CMakeLists.txt now requires Qt 6.2.4 or newer.

The user guide linked to the Qt 5 documentation. Point the High DPI
variables to the Qt 6 environment variable reference, and the {TIME}
format link to QDateTime::toString, which is what Tools.cpp calls and
which also covers the date specifiers used by the default format.
2026-11-28 22:05:31 -05:00
Manuel Alejandro Jiménez Torres 6baa8dc962 Fix --best-match and document missing options in CLI man page
The man page listed the clip option as --best, but the parser only
accepts --best-match (src/cli/Clip.cpp). It also did not document
generate -c/--custom (src/cli/Generate.cpp) or attachment-import
-f/--force (src/cli/AttachmentImport.cpp).
2026-11-28 22:05:17 -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
Janek Bevendorff d4c3eb359a Add workflow to automatically label pending backports 2026-11-13 20:33:01 +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
Reilly Brogan b111337c25 Tests: Verify passkey signatures instead of comparing exact bytes
Botan 3.14 randomizes ECDSA signatures by default, even when RFC 6979
is available, so the exact signature bytes are no longer reproducible
and the EC passkey tests fail. Verify the signatures produced by
buildSignature() against the public key embedded in the signing key's
PEM instead, which validates both deterministic and randomized
signatures.
2026-11-04 18:03:57 -05: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
BilliamBaSH e091b3b53c Replace removed WITH_XC_* CMake flags in build scripts 2026-11-01 16:04:03 +01:00
Janek Bevendorff 07057acae0 FIx CodeQL and Copilot setup 2026-11-01 13:53:41 +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 BevendorffandJonathan White 2e884edf7b Fix macOS Qt plugin deployment (#13821)
Co-authored-by: Jonathan White <[email protected]>
2026-10-24 01:09:03 +02:00
Janek Bevendorff a6ba28f8b2 Reformat code with clang-format-20 2026-10-23 15:44:56 +02:00
Janek Bevendorff b3ba195757 Add CMake option to fix clang-format binary. 2026-10-23 15:44:56 +02:00
Janek Bevendorff 1e373cf036 Remove AppDir output and force qmake6 2026-10-23 15:44:56 +02:00
Janek Bevendorff d5e43b779d Update GitHub sponsors 2026-10-21 14:28:07 +02:00
Janek Bevendorff 42bc892cab Fix regression in finding vcpkg macdeployqt 2026-10-21 07:27:50 -04: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
Janek Bevendorff 9a58a0e128 Support cross-platform AppImage builds 2026-10-20 23:29:47 -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
Jonathan White b0454704e4 Remove legacy qt.conf deployment
* Fixes #13702
2026-10-20 11:06:53 +02:00
Jonathan White 9daea646d7 Fix deploying qtbase translations with Qt6 2026-10-20 11:06:53 +02:00