SPB Git

Repository Public

QYV-APP-021.json 4.6 KB 29 lines json

1{2  "id": "QYV-APP-021",3  "title": "Solana: the interface must show pending/expired states, the cross-cluster warning of a cold review and the weakness of a single endpoint",4  "severity": "low",5  "cvss_vector": "",6  "cvss_score": null,7  "cwe": "CWE-356",8  "masvs": "MASVS-NETWORK-1",9  "area": "app",10  "location": "Sources/QyvoraWallet/WalletService+Cold.swift:128",11  "tool": "manual-review",12  "rule": "",13  "status": "fixed",14  "fix_commit": "7b1e37e",15  "regression_test": "QyvoraWalletTests.MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; MultiChainSendTests.coldSigningOnSolanaAndTronTouchesNoNetwork and solanaPaymentSimulatedSignedTrackedAndNeverSignedTwice; static checks QYV-STA-021 and QYV-STA-022; screens read on the simulator (see verification).",16  "description": "Root cause: three protections of the service depend on what the interface does with them. (1) A sent Solana transaction stays executable until its blockhash expires; the service answers `.pending`, refuses the same payment (`transactionInFlight`) and answers `.expired` only on a unanimous verdict of the endpoints (QYV-SVC-021). An interface that offers \"send again\" on a pending payment, or that words `transactionInFlight` as a generic failure, invites the double payment the guard exists to prevent (see also QYV-SVC-025). (2) The review of a cold device on a test cluster carries the non-critical warning `solana.cross-cluster` (QYV-SVC-022): an offline device cannot check that the blockhash is not a mainnet one. (3) With one endpoint per cluster — the default on devnet and testnet, and whatever the user configures — one party decides the balance shown, whether a broadcast happened and whether a transaction is declared expired. Not yet verifiable: the screens are being rebuilt. No CVSS vector.",17  "recommendation": "Proposed fix (application): (1) show a pending Solana payment with its last valid block height, offer only \"check again\" until the status is final, and explain `transactionInFlight` with the identifier of the first payment; (2) show every line of `ColdTransactionReview.summary` and every warning, `solana.cross-cluster` included, before the signature on the cold device; (3) in the endpoint settings, say when a Solana cluster has a single endpoint that its answers are not cross-checked, and recommend a second one of another operator.",18  "evidence": "App/Sources/Wallet/SendResultView.swift:191; App/Sources/Wallet/SendFormView.swift:81; App/Sources/EndpointsEditorView.swift:644; Sources/QyvoraWallet/WalletService+Cold.swift:128",19  "fingerprint": "25dab9aa61da",20  "reported": "2026-12-05",21  "owner": "integrator",22  "resolution_note": "The three points: (1) a broadcast Solana payment is shown with its status and \"Can be included until block height\"; the result screen offers only \"Check the status\" until the chain has settled it, and the form explains `transactionInFlight` with the identifier of the first payment instead of preparing a second one; (2) the cold review shows every line of the summary and every warning; `solana.cross-cluster` is now critical, and an offline device of an unaudited build does not sign a test-cluster transaction at all (QYV-APP-040); (3) the endpoint editor says, for a Solana cluster with one endpoint, that its answers are not cross-checked and what it decides alone, and recommends a second one of another operator. (Commits 0fe8b74 and 7b1e37e.)",23  "residual_risk": "What a screen displays is checked by reading the code and by screenshots of the simulator, not by automated interface tests: the application target has no test bundle. The service rule and the static checks hold whatever the screens become. An acknowledgement proves a tap, not a reading. The same-payment guard itself is still limited for cold-signed token transfers and across a restart (QYV-SVC-025, open).",24  "verification": "Package tests of the whole root package on M5M36 (Swift 6.4, release, 895 tests in 23 runs, no failure) at commit f0ddca7; QyvoraWalletTests (212 tests) run five consecutive times on the laptop without failure after the last source change; application target compiled for iphoneos on M3U96a and for the simulator on the laptop; changed screens read on the simulator \"Qyvora iPhone B\" where the review record security/audit/review/multichain-app-screens.json says so; static checks and framework steps of the audit re-run. The final laptop run of the whole package and the quick audit were made after this register was written: their results are in the report of the work, not here.",25  "updated": "2026-12-05",26  "fixed": "2026-12-05",27  "previous_proposed_disposition": "Open until the rebuilt screens are checked."28}29
Files main
Menu

Theme