Repository Public
1{2 "id": "QYV-SVC-023",3 "title": "Figures of a Solana review came from the planner and were not checked against the bytes to be signed",4 "severity": "low",5 "cvss_vector": "",6 "cvss_score": null,7 "cwe": "CWE-345",8 "masvs": "MASVS-CODE-4",9 "area": "service",10 "location": "Sources/QyvoraWallet/WalletService+Solana.swift:489",11 "tool": "manual-review",12 "rule": "",13 "status": "fixed",14 "fix_commit": "04bb687",15 "regression_test": "QyvoraWalletTests.SolanaWalletAuditRegressionTests/aReviewThatDoesNotMatchItsBytesIsNeverSigned; QyvoraWalletTests.MainnetPolicyTests/aSolanaTransactionAboveTheCeilingIsNeverSignedWhateverThePlanSays",16 "description": "Root cause: `prepareSolanaSend` built the `SendReview` (recipient, amount, decimals, fee) from the fields of `SolanaSendPlan`, which the planner fills next to the transaction, and `signAndBroadcastSolana` signed `details.plan.transaction` without comparing it with what the review showed. The two could not diverge through the public interface (`SolanaSendPlan`, `SolanaSendDetails` and `SendReview` have no public initializer and only constant properties, and the limits were already computed from the decoded bytes), so no exploit is known; but the property \"what is shown is what is signed\" rested on the planner being right and on memory not being altered, not on a check. Design hardening: no CVSS vector, rated by impact and likelihood.",17 "recommendation": "Fixed: `requireSolanaPayment` decodes the transaction with the decoder a cold device uses and requires a legacy message signed and paid by the wallet account alone, made of the compute-unit limit, the compute-unit price, at most one CreateIdempotent of the recipient's own associated token account, exactly one transfer of the reviewed amount of the reviewed asset to the reviewed recipient (for a token: TransferChecked with the reviewed decimals between the two derived associated token accounts), at most one memo, and a fee equal to the fee shown. It runs when the review is made and again before signing. The regression test builds forged plans and reviews through the module-internal initializers (more than a caller of the library can do): another amount, another recipient, another fee, an added transfer, an added approval, an added unknown instruction are all refused.",18 "evidence": "",19 "fingerprint": "dbf3dfb811e8",20 "reported": "2026-12-05",21 "owner": "multichain-solana"22}23