Repository Public
1{2 "id": "QYV-SVC-066",3 "title": "Bitcoin path: the value ceiling excludes the plan's change output without checking that it returns to the wallet",4 "severity": "low",5 "cvss_vector": "",6 "cvss_score": null,7 "cwe": "CWE-345",8 "masvs": "MASVS-CODE-4",9 "area": "wallet",10 "location": "Sources/QyvoraWallet/WalletService+Bitcoin.swift:777",11 "tool": "manual-review",12 "rule": "",13 "status": "fixed",14 "fix_commit": "e1639d6",15 "regression_test": "QyvoraWalletTests.BitcoinWalletTests/aPlanWhoseChangePaysSomeoneElseIsNotSigned (fails on the sources before the fix: the altered plan was signed and broadcast)",16 "description": "Same shape as QYV-SVC-063 in `WalletService.validate(_:)` of the Bitcoin path (outside the area of the UTXO-coin review, whose fix is limited to the coins): the ceiling of an unaudited build is applied to every output except `changeIndex`, and the output at that index is not checked to be a script of the wallet's change chain. No public interface can build such a plan (no public initializer, no mutable property); defence in depth for the limits. No CVSS vector.",17 "recommendation": "Fixed by the lead of the multi-chain audit: `validate(_:)` requires the output at `changeIndex` to exist and to be a script of the account's change chain (searched up to the scan limit plus the gap limit), else `stalePlan`.",18 "evidence": "",19 "fingerprint": "dfb2d8815ed2",20 "reported": "2026-12-05",21 "owner": "review-utxo",22 "proposed_disposition": "Fix in the Bitcoin path by its owner (lead / integrator); not fixed here to keep the UTXO-coin changes inside their area."23}24