Skip to content

Review finding: with #301, backupwallet before the first unlock copies plaintext PQC records #321

Closed

Description

@kiwidream

Summary

backupwallet taken before the first unlock silently copies the live plaintext PQC records.

Severity: low. Found in the 2026-11-04 review of the v1.0.1 change set (all 1.x.x merges since v1.0.0 plus the open PRs that target it), against the open PR's head; area: #301.

Observed

Confidence: confirmed (code path).

Impact

This is one of the three exposures #283 lists ("the records are copied into backups"), and it stays open until the first unlock. The release note says older backups contain the keys. It does not tell users to unlock before making a new backup, so a careful user who backs up right after upgrading creates another exposed copy operator guidance must match behavior).

Suggested fix

In BackupWallet, refuse, or return a warning, while an encrypted wallet has plaintext PQC records (GetPQCKeyValidationInfo().reencryption_required). At minimum, add "unlock the wallet before taking a new backup; a backup made before re-encryption contains the keys" to release-notes-283.md, p2mr-wallets.md and the backupwallet help.

Related: extends #283 (new: no warning at backup time, and the release note gives no guidance on new backups).

Activity

  1. added
    bug
    on Nov 4, 2026
  2. kiwidream commented on Nov 11, 2026

    @kiwidream
    MemberAuthor

    Fixed on 1.x.x by #301 (3a12925be1), which ships in v1.0.1: backupwallet and qbit-qt's backup now refuse (-13) while reencryption_required is true, unless backupwallet's new allow_unencrypted_pqc_keys argument is set.

    Closing by hand, because a merge into 1.x.x does not close issues automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions