Provider refusals
write_verifier: Provider declined the request because of a cybersecurity restriction. Experiments remain incomplete; static verification can continue.
2 major findings · 7 minor findings · 3 suggestions
Earlier concerns neither republished nor resolved: 1 minor finding · 12 suggestions. See the Run archive for their assessments.
Findings
[major] · Wallet backup can replace a loaded wallet's live wallet.dat
On POSIX, explicitly approving a backup over another loaded wallet's wallet.dat can replace its database and lose its unique keys; this unusual destination choice was not reproduced at runtime.
Location: qml/models/backuppolicyio.cpp:149 (head).
Details and suggested fix
The backup dialog accepts .dat files and asks only “Replace backup?”. backup::Inspect preserves that extension, and ReadTarget accepts an ordinary database file. The production service calls Core's backupWallet on a staged path, then backup::Write installs it with RenameOver. An idle destination wallet can pass the content-digest recheck. Base passed the final path directly to Core, so SQLite's exclusive lock on the loaded destination made the backup fail instead. After replacement, wallet B's path contains wallet A's backup; closing and reopening B can lose access to keys or metadata that existed only in B unless another backup exists. Preserve Core's in-place backup behavior for existing destinations, or reject destinations equivalent to loaded wallet databases before installation. Add a two-open-wallet regression that reopens the destination wallet afterward. Windows behavior was not verified.
[major] · Pre-creating /tmp/qml-intent-<uid> can prevent GUI startup
On POSIX with shared sticky /tmp, another local account can pre-create /tmp/qml-intent-<uid> and prevent subsequent GUI launches until the entry is removed, because payment-delivery initialization is a fatal startup prerequisite.
Location: qml/desktopintenttransport.cpp:364 (head).
Details and suggested fix
Native::initialize uses the fixed /tmp/qml-intent-<uid> path and rejects it if it is a symlink, a non-directory, foreign-owned or accessible to group/others. Another local account can create such an entry before the victim first creates the private directory, and the victim cannot remove the attacker's entry from sticky /tmp. probeExisting propagates the rejection to a fatal startup result; without the probe, startup preparation still starts the transport and treats its rejection as failure. Changing the datadir does not change this directory. Put the endpoint beneath a protected per-user location, such as the user's private datadir, rather than making startup depend on an attacker-creatable shared-directory entry. Windows was not assessed.
[minor] · Open PSBT rejects files above 4 MiB that the app can export
The normal file-import path now rejects PSBTs above 4 MiB, although base accepted 100 MB and export still allows 100 MiB, preventing larger saved PSBTs from being reopened.
Location: qml/paymentimport.cpp:65 (head).
Details and suggested fix
The file dialog calls imports.chooseFile, which ultimately uses paymentimport::ReadSource. That reader rejects files above MAX_FILE, currently 4 MiB, before attempting PSBT decoding; local-file drops use the same reader. Base's LoadPsbtFromFile used MAX_FILE_SIZE_PSBT. Large PSBTs are possible because Core attaches complete previous transactions as non_witness_utxo and retains them for legacy and SegWit-v0 inputs. A consolidation can therefore produce an export that this UI cannot reopen, disrupting offline or co-signer round trips; RPC remains a workaround. No PSBT above 4 MiB was produced in this review. Use a shared PSBT file-admission limit aligned with export, retaining the smaller bound for payment text.
[minor] · A definite fee-bump refusal leaves Speed Up stuck in Uncertain
A final precondition refusal from commitBumpTransaction becomes permanent Uncertain, disabling later Speed Up attempts until the wallet model is recreated; the triggering race is narrow and no production occurrence was identified.
Location: qml/walletbump.cpp:210 (head).
Details and suggested fix
If the original confirms or gains a descendant between the application's last checks and Core's final precondition check, commitBumpTransaction returns false. In the pinned implementation, every non-OK return precedes wallet.CommitTransaction, so that return establishes that nothing was committed. walletbump::Execute nevertheless produces Error::Commit, which publishCommit maps to Uncertain. That state refuses new preparations and reviews for other transactions, survives reset(), and remains unchanged by “Check transaction status”. Base used Failed for the same refusal. Map a false return to Failed or NeedsRevalidation, while preserving uncertainty for exceptions that cannot establish whether commitment occurred.
[minor] · The additive cluster check blocks otherwise acceptable replacements
For an unconfirmed cluster at its limit, checkChainLimits can block a replacement that exact admission accepts, disabling PSBT broadcast; no production occurrence was identified.
Location: qml/psbtpolicy.cpp:121 (head).
Details and suggested fix
ReadNode obtains facts.chain_limits from chain->checkChainLimits(transaction). Pinned Core implements that check by staging the transaction's addition without removing its conflicts. Actual replacement admission stages conflict removal before checking cluster limits. If the original has unconfirmed ancestors in a cluster at the count or size limit, the additive check can fail even though replacing the original fits. Evaluate returns Blocked before considering Admission::Allowed, which clears can_broadcast and also refuses the broadcast action. The bump path uses the same decision. Base broadcast imported PSBTs without this additional check. Do not let the additive cluster check override successful exact testmempoolaccept admission.
[minor] · PSBT readiness omits the fee caps enforced by node submission
For imported signed PSBTs submitted through the node path, readiness disables the fee-rate cap while broadcast retains absolute and rate caps, so review can report acceptance for a transaction that submission deterministically rejects.
Location: qml/psbtpolicy.cpp:34 (head).
Details and suggested fix
ReadAdmission passes 0 for testmempoolaccept's maxfeerate, deliberately disabling that client cap. Evaluate can then report “The node currently accepts this exact transaction”. However, NodeBroadcast supplies DEFAULT_MAX_RAW_TX_FEE_RATE as both an absolute-fee value and a fee-rate limit. Pinned Core rejects fees above 0.1 BTC or rates above 0.1 BTC/kvB on that submission path. An otherwise acceptable, fully signed imported PSBT above either cap therefore receives an acceptance message and then an explicit broadcast failure. Base had the same submission caps but not this readiness claim. Compare the authenticated fee and transaction vsize against both caps of the selected submission path before reporting readiness; checking only the RPC rate cap would miss the absolute limit.
[minor] · Receive keeps a refused address type hidden after descriptor import
After Core refuses an address type, importing an active descriptor for that type does not restore it to Receive until the wallet is unloaded and reloaded.
Location: qml/walletopening.cpp:405 (head).
Details and suggested fix
Session::markReceiveTypeUnavailable inserts the type into m_unavailable_receive_types, but nothing removes it. preferredReceiveType skips cached types, and metadata refresh republishes the same set into WalletQmlModel, whose type list hides them. Core's LoadActiveScriptPubKeyMan, reached when an imported descriptor becomes active, emits NotifyCanGetAddressesChanged. The subscription only calls ingress(0), so it refreshes the stale negative cache rather than invalidating it. Clear or re-probe that cache when the can-get-addresses notification arrives, and test refusal followed by importing an active descriptor for the same type.
[minor] · Closing Address details during loading silently drops a typed note
If a user types a note while Address details is still loading and then closes it, the editor drops that pending input without the unsaved-edit question.
Location: qml/pages/wallet/AddressDetails.qml:106 (head).
Details and suggested fix
AddressDetails.qml makes the note read-only only when the editor is unavailable, but available() remains true in Loading. State::edit stores such edits in pending_input without publishing a dirty draft. If Close arrives before the asynchronous initial read completes, requestClose() closes the reducer immediately because its phase is Loading; AddressList then closes the popup on closed. Base saved changed notes on editingFinished. Wallet-lock contention can extend this interval, but no interactive reproduction was performed. Keep the field read-only until the initial read completes, and add a regression that holds that read while attempting to edit and close.
[minor] · Cancelled clipboard checks accumulate as child QObjects
With nonempty clipboard text, recipient edits replace the active clipboard check but retain each cancelled PaymentImportOperation as a child, so memory grows with edits until the Send page is destroyed.
Location: qml/models/sendimportmodel.cpp:231 (head).
Details and suggested fix
WalletImportTarget emits recipientEdited for address, amount, label, message and payment-request changes. SendImportModel::checkClipboard() disconnects and cancels the previous check, then requests another operation with this as its parent. BitcoinUriModel::createImport allocates that projection with new, while PaymentImportOperation::cancel() retires the backend actor and clears snapshots without deleting the projection. The registry's completion callback also erases only the actor. Thus successful checks accumulate small child objects rather than tracking only active work; cancelImport() and cancelAll() have the same discard pattern. Schedule discarded operations for deletion after cancellation, and test that the child count stays bounded across repeated recipient edits.
Optional improvements
[suggestion] · External-signer verification accepts SIGHASH_NONE and SIGHASH_SINGLE
The external-signer check accepts valid SIGHASH_NONE/SINGLE signatures without requiring commitment to every reviewed output; this is a pre-existing hardening gap, not a regression.
Location: qml/walletsend.cpp:98 (head).
Details and suggested fix
VerifiedExternalTransaction reconstructs a PSBT from the final scripts and witnesses and requires PSBTInputSignedAndVerified for each input. Neither that helper nor the bump caller restricts the actual signature sighash. A signer can return unchanged reviewed terms with SIGHASH_NONE signatures on every input: verification succeeds, but those signatures also authorize different outputs after broadcast. SIGHASH_SINGLE likewise leaves outputs outside the signed indices uncommitted. The assertions in signatureCommitmentsDoNotReplaceImmutableReview document this distinction; they were not executed in this review. Until the upstream signer hardening is adopted, require output-committing SIGHASH_ALL or Taproot DEFAULT signatures from the wallet's own external signer on send and bump paths, with mock-signer negative tests. Leave imported third-party PSBTs unchanged, since the existing test deliberately permits their other sighash types.
[suggestion] · Captured passphrases retain uncleansed UTF-16 storage
The queued passphrase capture retains an ordinary UTF-16 QString that normal destruction does not cleanse, despite cleansing the temporary UTF-8 buffer; protecting this storage would not erase other QML/JS copies.
Location: qml/secretinput.cpp:11 (head).
Details and suggested fix
Capture retains an Input containing const QString m_text. materialize() converts it to UTF-8, copies it into a SecureString, and cleanses the temporary UTF-8 allocation, but normal retirement never cleanses the retained UTF-16 allocation. When the capture becomes its last owner, that buffer is freed with its contents intact. Make the retained string non-const and cleanse its buffer before destruction when it is uniquely owned, taking care not to detach and scrub only a new copy. This protects the app-controlled capture without promising erasure of shared buffers or other QML/JS copies.
[suggestion] · New-passphrase normalization makes the same clipboard fail at unlock
For clipboard text containing CR/LF, new-passphrase fields strip those characters while unlock fields retain them, so pasting the same text later fails despite being accepted at wallet creation.
Location: qml/controls/PasswordTextField.qml:20 (head).
Details and suggested fix
dropsLineEndings is enabled for Add wallet's password and confirmation and for the new-password fields in Settings. It remains disabled in WalletPassphrasePopup and the current-password field so wallets previously encrypted with line endings still open. Consequently, creating a wallet from a clipboard containing a trailing newline stores one passphrase, while later pasting that same clipboard submits a different one and reports an incorrect password. Previously the two pastes matched, although typing the visible text failed. Preserve exact matching for existing wallets, but warn in unlock and current-password fields when pasted text contains CR/LF, explaining that new-passphrase fields remove those characters.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: The settings editor's admission policy is replaced later in the series (earlier report)
- [suggestion]: The decimal-parse commit also carries the paste lifecycle API (earlier report)
- [suggestion]: The #1063 fix is attributed to a helper-only commit (earlier report)
- [suggestion]: macOS artifact instructions omit preparation of the new helper (earlier report)
- [suggestion]: The startup rewrite removes error routing that a later commit restores (earlier report)
- [suggestion]: The signer-substitution commit adds a helper but no production enforcement (earlier report)
- [suggestion]: The settings extraction presents a superseded admission contract (earlier report)
- [suggestion]: Private descriptor imports remain outside console redaction (earlier report)
- [suggestion]: The review guide omits 19 post-rename commits (earlier report)
- [suggestion]: Late repairs leave already-fixed regressions in the area commits (earlier report)
- [suggestion]: Payment and PSBT import errors bypass translation (earlier report)
- [minor]: Refused request deletion gives no feedback in the modal (earlier report)
- [suggestion]: QR-wait fix commit actually deletes the RequestPayment suite (earlier report)
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Unresolved disagreements
The inspected historical record does not establish one universally accepted migration strategy for synchronous GUI code. In #10504, promag argued for running blocking code in another thread and against nested event loops; ryanofsky preferred ordinary asynchronous requests generally but defended nested loops when they could improve responsiveness without rewriting existing GUI control flow. laanwj added a warning about unexpected lifetime interactions involving nested loops.
The owned-operation refactor makes a substantial control-flow and lifetime rewrite. This historical disagreement identifies the competing maintenance-cost and reentrancy considerations behind that choice; it should not be read as historical endorsement or rejection of this particular architecture.