Skip to content

Security: IJHack/QtPass

SECURITY.md

Security Policy

Supported Versions

QtPass is actively maintained and security updates are provided for the latest releases. Older versions are not supported.

Version Supported
1.8.x ✅
< 1.8 ❌

Reporting a Vulnerability

If you discover a security vulnerability in QtPass, please report it responsibly:

  1. Do NOT create a public GitHub issue for security vulnerabilities
  2. Do email the maintainer directly at: [email protected]
  3. Alternative: Open a private security advisory via GitHub
  4. Include in your report:
    • Description of the vulnerability
    • Steps to reproduce the issue
    • Potential impact assessment
    • Any suggested fixes (optional)

Response Timeline

  • Acknowledgment: Within 48 hours
  • Initial assessment: Within 7 days
  • Fix timeline: Depends on severity; critical issues are prioritized

Security Considerations

QtPass is a GUI for pass, the standard Unix password manager. Keep in mind:

  • QtPass does not encrypt passwords - encryption is handled by GPG
  • Passwords are stored in your local password store (typically ~/.password-store)
  • QtPass requires GPG to be installed and configured on your system
  • The clipboard is cleared after a configurable timeout (default: 45 seconds)

What QtPass does and does not protect against

  • A password store's .git directory is not inert data. With Git enabled, QtPass runs git in the store, and Git runs the hooks in .git/hooks with your rights. A plain git clone does not copy a remote's hooks, but a store received as an archive or an existing checkout, or one on storage others can write to, may carry them. Treat such a .git as you would treat a script.
  • Git stays in the store, as with pass. With "use a parent repository" off, QtPass keeps Git from a repository above the store (GIT_CEILING_DIRECTORIES, and the store's own GIT_DIR when the parent's path holds :, on Unix only for a store and .git the user owns or that safe.directory trusts, as Git's own check would require).
  • That ownership is judged each time Git runs, not once: a .git that appears or changes hands later is refused then. The check is not repeated on Windows, where Git checks owners by SID (#2089).
  • safe.directory counts only from system, global and command-line configuration, never the repository's own. A relative entry such as ., which Git resolves against its working directory, trusts nothing here.
  • With the pass backend, pass runs the Git steps itself; pass 1.7.4 sets only the ceiling, so a parent path holding : lets it climb.
  • A signed .gpg-id protects the recipient list against someone who can change the store but does not hold the signing key. QtPass verifies the signature over the exact bytes it then encrypts to, so a file swapped between the check and its use is not a way in.
  • A signature proves authentic, not current, and not placed. An older list, genuinely signed, that still names a member since removed can be put back by the same someone, or copied into a folder that never had a list of its own.
  • A revoked signing key vouches for nothing. A signature gpg reports as made by a revoked key does not verify, so revoking a leaked signing key stops it from signing lists QtPass accepts, also while it is still configured. A signature by an expired key still does.
  • The signature binds a list to its folder and to its store. One signing key may sign the lists of several stores, and an authentic list of another store, copied into this one at the same folder, would verify here too (#2050).
  • So a list QtPass writes also carries the store's ID, a random number given when the store's first signed list is written. Each device remembers the ID it first saw per store, in QtPass-gpgid-stores.json next to the generation record, and refuses a list that names another store, or a new list without the line.
  • The limits of that: the first ID a device sees for a store is the one it trusts, as for generations; a device that has never seen the store can be handed another store's list.
  • With one signing key for two stores, that first-sight limit also costs the other store: the ID taken over at first sight is signed into every list saved here afterwards, and such a list, copied into the other store, is accepted there as one of its own. A list this store refuses (a rollback or a conflict) lends the next saved list no ID; the store then gets one of its own.
  • A list this device accepted before it knew the store's ID keeps working, and lists written by pass (no header at all) carry no store binding. A separate signing key for each store whose recipients differ remains the stronger setup.
  • A list saved by a QtPass that writes no store line (2.0-rc3 and older) is refused on a device that knows the store's ID; a signing-key holder on a current QtPass saving the recipients once writes it.
  • If a store's ID itself has to change (two devices gave a new store an ID at the same moment, or it was set up again), removing QtPass-gpgid-stores.json forgets the IDs; an older QtPass using the same generation record leaves that file alone.
  • The profile settings warn when two profiles for different stores name the same signing-key fingerprint (a key named by its primary fingerprint in one and by a subkey's in the other is not recognised as one); the warning does not stop Settings from being saved.
  • A .gpg-id QtPass writes for a store with a signing key therefore starts with three comment lines the signature covers: # QtPass-GpgId-Generation: N, # QtPass-GpgId-Folder: <store-relative folder> and # QtPass-GpgId-Store: <store id>.
  • QtPass remembers, per list, the highest generation it has accepted or written on this device, with a SHA-256 of the exact bytes, and refuses a signed list with a lower generation, one of the same generation with other bytes, or one written for another folder.
  • Without a readable and writable record nothing is accepted or written; the record is one per user, and a second QtPass process waits for it or is refused.
  • A holder of the signing key saving the recipients from QtPass writes the next generation; that is the way back after a deliberate revert. The dialog preselects only a list that verifies (an older but authentic one with a warning; one that does not verify not at all), so what is ticked is never an unsigned edit.
  • The limits of that: it detects a rollback only on a device that has already accepted or written a higher generation; a device seeing the store for the first time, or one that was offline for the change, has nothing to compare against.
  • A folder moved or renamed carries a list bound to its old place; saving its recipients once binds it anew.
  • A sub-folder whose own list was removed or replaced by a link is refused, not encrypted to its parent folder's list instead: a list that was not a regular file, or one this device accepted before and that is now gone, has to be saved again from the Users dialog by a signing-key holder. Without a signing key the parent's list applies, as with pass.
  • The pass backend gets the same checks: before QtPass has pass insert, move or copy an entry, or save a folder's recipients (pass init, which re-encrypts what is under it), it verifies the lists pass will use (signature, generation, folder, a sub-folder's own list), and refuses as above.
  • For a folder moved or copied with the pass backend, that includes the lists inside it, used by an entry or not (a copy merging into a folder of the same name brings them to the entries there): they are checked where they lie before the move.
  • Moving or copying into an existing folder has pass re-encrypt all of that folder, so every list in it is checked too, also one no entry uses yet: a copy merges into a folder of the same name there. pass then reads each list again when it encrypts, so a list swapped in between has pass's own check only, the signature (a concurrent writer, see below).
  • The generation is monotonic per device, not a distributed sequence number: two devices can both produce the same next generation, and Git synchronisation resolves that.
  • The device that wrote or accepted one of two such lists then meets the other as the same generation with other bytes: a conflict, refused and not preselected, until a signing-key holder checks the recipients and saves, writing the next generation.
  • Compatibility: the lines are comments to pass 1.7.4 and later and to QtPass 1.8 and later; pass up to 1.7.3 and Android Password Store take a comment for a recipient, so a signed store's clients need to be current. Stores without a signing key get plain lists, as before.
  • A list written by pass (also through QtPass's pass backend) or by QtPass before 2.0 carries no generation and reads as 0: once a device has accepted a higher one, such a list is refused, and the Users dialog preselects nothing from it (without a folder line it may be any folder's old pair), until a signing-key holder selects and saves the recipients from QtPass.
  • At generation 0 nothing is pinned: pass writes a headerless list for every change (also through QtPass's pass backend), so different bytes there are the normal course of a store kept with pass, not a conflict. Freshness begins with the first list QtPass writes. That such a list was accepted is still noted, so that its removal is refused as above, like that of a list with a generation.
  • Re-encryption gives the entries it rewrites to the folder's recipients. Re-encrypting a folder (saving its recipients, "Re-encrypt all") decrypts each entry and encrypts it to the folder's list. Someone on one folder's list who can push could copy an entry from a folder they cannot read into theirs and wait for that.
  • With the native backend, an entry that would become readable by someone on the list who cannot read it now is left as it is and named, and QtPass asks before re-encrypting it. An entry left as it is keeps its current readers, a recipient you just removed included, until it is re-encrypted or removed; while a removed recipient may still read one, the automatic push waits.
  • Who can read an entry now is judged by the recipient IDs it carries, which gpg lists without anyone's secret key: a writer can add one for a person who could never open the entry, so an entry crafted that way passes as already theirs. The question stops a plain copy, not a crafted one.
  • Saving over an entry with the native backend asks first when its folder's list would add a reader, so a folder renamed past its own signed list (the refusal to fall back to a parent's list goes by the folder's path) does not hand the next edit to the parent's recipients unasked.
  • That check judges an entry's readers by its recipient IDs, which a pusher can write. So with signed lists QtPass also keeps, outside the store, the entry paths this device saved: an edit of an entry at a path never saved here, in a folder that takes a parent's list, is asked about whatever its IDs say. A store's entries count as saved the first time this device opens it with a signing key set.
  • Not covered: an edit when QtPass cannot read the folder's recipient list or cannot name a key its probe reaches (it does not ask then), a new entry in such a folder, an entry whose bytes a pusher swapped in under a path this device saved (the edit dialog then shows that other entry's content), and the pass backend.
  • The exception is whom you add in the Users dialog: they get every entry in the folder, as adding someone means. An entry copied in before you add them looks exactly like the folder's own, so the same someone can push copies of entries only you read into a folder and then ask to be added to it.
  • Look at what a pull brought into a folder before adding someone to it, or keep a separate store or signing key for each group of people whose access differs. With the pass backend, pass init, pass mv and pass cp re-encrypt every entry themselves, so QtPass checks before they run and asks once for the whole run; a yes lets pass re-encrypt them all.
  • A key ID or fingerprint in .gpg-id must name one key. gpg also matches it against subkeys, and anyone can bind another person's public key to their own as a subkey. QtPass refuses to encrypt to, or export, a line that more than one key holds and names both keys; delete the key that claims someone else's.
  • The Users dialog ticks the keys gpg encrypts to for a folder's list, not every key that looks like a recipient. It finds them with a test encryption, without looking keys up over the network, and keeps a line it cannot settle that way as written.
  • Only when gpg encrypts but does not say to whom, or names a key the dialog has no row for, does a keyring search tick rows, as before, and it can tick a look-alike: check those rows before saving.
  • A key update you import can still change whom a line encrypts to. Under trust-model always, gpg can resolve an address that several keys carry to a look-alike key made after the real one (GnuPG 2.5 does), and that key is then what the dialog ticks and every encryption reaches.
  • A line the dialog keeps as written stays what it was, an address included. Name recipients by fingerprint, replacing such address lines, and keep the default trust model.
  • Path checks catch mistakes, not a hostile local writer. Store-boundary checks (.., symlinks and junctions, absolute paths) run before a file operation, not atomically with it. Another process that can write to your store while QtPass runs can also replace what is in it; that is outside what QtPass can protect.
  • What QtPass does hold to when it adds, edits, copies or re-encrypts an entry is that gpg never opens a path in the store for output: it encrypts into a directory of QtPass's own outside the store, and the bytes go into the store through a file created next to the entry, written by its open handle, and the operating system's rename.
  • That rename replaces a file or a link under the name by then (a link planted since the check included) as an entry and follows nothing; a directory under the name cannot be replaced by a file, so the write fails and leaves it.
  • Afterwards the object under the name is opened without following and compared, by device and inode, with the file that was written: a file swapped under the temporary's name before the rename (a hard link to something of yours, which passes every check by name) is reported instead of taken for the entry.
  • What is under the name then is left as it is: removing it by name could take another writer's file that landed there since. Where the system cannot give both identities the write stands rather than reporting a swap it cannot prove: on FAT and exFAT a rename moves the file ID, and neither has hard links to swap in.
  • A .gpg-id (from the Users dialog, a new profile, or a new folder taking its parent's list) and its .gpg-id.sig are written the same way. On Windows a junction planted under one of these names makes the write fail rather than replace it.
  • gpg signs the bytes QtPass just wrote, fed on its standard input (not whatever is under the file's name by the time it would read it), and writes the signature into a directory of QtPass's own, from where it is placed next to the list.
  • It signs with --local-user, so a missing secret key fails the signing instead of gpg taking another key, and the new signature is verified as one by a configured signing key before it is placed.
  • Copying an entry reads the source as the regular file it is at the moment of the open (O_NOFOLLOW; on Windows the reparse point itself), not as whatever a link planted under the name since the check points to, and writes the copy the same staged way; a co-writer cannot have the bytes of a file only you can read copied into the store and committed.
  • The pass backend runs pass insert, which writes the entry's path directly; a store kept with pass has pass's semantics there.
  • A link inside the store is not part of it. A store is often shared (a team's Git repository, a synced folder), and Git carries symbolic links, so a co-writer can make git pull create Bank.gpg -> /elsewhere/secret.gpg on your machine. QtPass treats a symbolic link or NTFS junction found inside the store as neither an entry, a folder nor metadata.
  • Concretely: every walk skips links (re-encryption, search, staging); every operation on a link, or on anything behind one, is refused (show, edit, add, move, copy, re-key); a linked .gpg-id or .gpg-id.sig is not a recipient list; deleting a link removes the link.
  • The configured store root itself may be a link (~/.password-store pointing at a synced folder is a normal setup): that is your configuration, not something found inside the store.
  • Nothing is logged that is fed to gpg or pass on standard input (passwords, passphrases). With QT_LOGGING_RULES=qtpass.debug=true the commands and their arguments are logged; values of options such as --passphrase are redacted should they ever appear.

In-process OpenPGP (experimental, not in releases)

A build option (qmake6 CONFIG+=rnp, see #2005) adds OpenPGP through the RNP library, for a future mode that needs no gpg, git or pass program (Windows without Gpg4win, Android). Nothing uses it yet, and GnuPG stays the default and the recommended way. The trade-off, for when that mode exists:

  • With GnuPG, QtPass never holds your secret key. gpg-agent keeps it in a process of its own, pinentry asks for the passphrase, and a smartcard or YubiKey can hold the key so that it never reaches the computer at all.
  • Without GnuPG, QtPass holds it. The secret key is exported from GnuPG and imported into a keyring of QtPass's own. While an entry is decrypted, the unlocked key is in QtPass's memory, and so is the passphrase you type into QtPass's dialog instead of pinentry.
  • On disk, secret keys keep their own passphrase. The keyring is written to a folder of QtPass's own (owner-only; on Windows as private as the user profile it is in; never ~/.gnupg), each file replaced whole. A secret key without a passphrase is refused unless the user agrees to it explicitly, and one can be given a passphrase first. Keys stay locked until an operation needs them.
  • No smartcards or YubiKeys in that mode: RNP cannot decrypt on a card. (Sequoia can, through the openpgp-card crates; a later option, not this one.)
  • What it refuses, as GnuPG does: a message without integrity protection (CFB without MDC, the kind EFAIL abuses), and plaintext beyond 64 MiB, so a small compressed entry cannot fill memory.
  • Signed recipient lists: it signs and checks .gpg-id.sig as QtPass does with GnuPG, and never falls back to another secret key. A fingerprint names exactly one key, an email address only a key with that address, a revoked user ID none. A signature by a revoked key counts for nothing; one by a key that has since expired still counts.
  • Choosing that mode will therefore be a deliberate step, explained where it is offered (the first-run wizard and the settings), never a silent fallback when gpg is missing.

Dependencies

QtPass depends on:

  • Qt 6.8+ (use qmake6) - GUI framework; the 1.8.x releases also build with Qt 5.15
  • GPG (gpg2) - encryption
  • pass (optional) - password store CLI
  • Git (optional) - version control
  • RNP (optional, CONFIG+=rnp builds only) - in-process OpenPGP, see above

Ensure your system dependencies are kept up to date for security patches.

There aren't any published security advisories