Repository Public
1{2 "id": "QYV-SVC-063",3 "title": "The value ceiling of a coin plan excluded its 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+UTXOCoins.swift:704",11 "tool": "manual-review",12 "rule": "",13 "status": "fixed",14 "fix_commit": "13cbf5a",15 "regression_test": "QyvoraWalletTests.MainnetPolicyTests/coinLimitsHoldAtPrepareAndAtSignEvenWithAnAlteredPlan",16 "description": "Root cause: before signing, `validateCoinPlan` applied the ceiling of an unaudited build to every output except the one at `plan.changeIndex`, and nothing checked that this output pays a script of the wallet's change chain. A plan whose \"change\" pays someone else would move any amount under the ceiling: verified with a plan built inside the test module — it was signed and broadcast before the fix. Reachability: `BitcoinSendPlan` and `BitcoinTransactionPlan` have no public initializer and no mutable property, and the service builds the change script itself, so no public interface can produce such a plan; this is defence in depth for the limits (the control that bounds a mistake of the unaudited engine). No CVSS vector.",17 "recommendation": "Fixed: the output excluded as change must be a script of the account's change chain (searched up to the scan limit), else `stalePlan`. The Bitcoin path has the same shape: QYV-SVC-066.",18 "evidence": "",19 "fingerprint": "05ce5f86b55c",20 "reported": "2026-12-05",21 "owner": "review-utxo"22}23