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

address format matching from PSBT witness/redeem script instead of PSBT_XPUBs derivation paths

Public commit record

What the developer wrote

Authored by scgbckbone

50/100 · Thin
address format matching from PSBT witness/redeem script instead of PSBT_XPUBs derivation paths
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This change fixes how COLDCARD figures out the address format for multisig transactions. Previously it guessed based on the derivation path numbers in the PSBT's XPUB records, which can be misleading or attacker-controlled. Now it looks directly at the actual witness/redeem script in the transaction input, which is harder to fake. A wrong address format could make the wallet think it is signing one type of address while the transaction really pays to another, potentially tricking the user into approving a payment they did not intend.

Recommended action

Treat this as a security-hardening fix and include it in the next firmware release. Users signing multisig transactions, especially with non-standard or vendor-specific derivation paths, should upgrade. Review whether any existing wallet metadata created via the old path-based guessing needs re-validation.

Security signals we found

01

Removed derivation-path-based address-format inference that trusted PSBT_XPUB path data

02

Added script-based address-format inference from witness_script / redeem_script

03

Added N == len(self.xpubs) consistency check in multisig script parsing

04

Added skip for inputs with no subpaths during own-input search

05

Added tests for non-standard derivation paths and mixed-input PSBTs

Risk score

Why this scored 63/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 10/15
Affected reach 12/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.