AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Moderate 59 Bitcoin

Merge pull request #672 from Foundation-Devices/fix/validate-local-multisig-xpub

Public commit record

What the developer wrote

Authored by Jacksper13

58/100 · Thin
Merge pull request #672 from Foundation-Devices/fix/validate-local-multisig-xpub

Validate complete local multisig xpubs
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
The short version

What changed, and why it matters

This update fixes a validation gap when importing multisig wallets into the Passport hardware wallet. Previously, the device only checked that the public key matched; now it also checks the chain code. Without this check, a tampered extended public key (xpub) could have been accepted as belonging to the wallet, potentially allowing an attacker to silently change the wallet's receiving addresses or make future transactions look valid when they are not. The fix is accompanied by a new test that confirms mismatched chain codes are rejected.

Recommended action

Treat this as a security fix and include it in the next firmware release. Review whether any other xpub validation paths (single-sig, cosigner import, QR/airgap imports) perform similar partial validation and apply the same complete-xpub check. Run the new unit test in CI and consider adding an integration test for multisig import with a corrupted xpub.

Security signals we found

01

Incomplete cryptographic input validation (public key only, not full xpub)

02

Potential acceptance of tampered extended public keys in multisig wallet import

03

Fix adds chain_code equality check alongside existing public_key equality check

04

New unit test specifically exercises rejection of substituted chain code

Risk score

Why this scored 59/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 8/15
Affected reach 10/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.