Repository Public
1{2 "id": "QYV-SVC-022",3 "title": "A Solana transaction prepared for a test cluster could be made valid on mainnet-beta by the test endpoint (no cluster in the signed bytes)",4 "severity": "high",5 "cvss_vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N",6 "cvss_score": 5.3,7 "cwe": "CWE-294",8 "masvs": "MASVS-CRYPTO-1",9 "area": "service",10 "location": "Sources/QyvoraWallet/WalletService+Solana.swift:540",11 "tool": "manual-review",12 "rule": "",13 "status": "fixed",14 "fix_commit": "04bb687, 7ded8f8",15 "regression_test": "QyvoraWalletTests.SolanaWalletAuditRegressionTests/aTestClusterTransactionValidOnMainnetIsNeverSigned; QyvoraSolanaTests.SolanaAuditRegressionTests/recentBlockhashIsAskedFromEveryEndpoint",16 "description": "Root cause: a Solana message carries no cluster identifier; the only thing that ties it to a cluster is its recent blockhash, which the wallet takes from the endpoint of the cluster the user selected. The wallet account is the same Ed25519 key on mainnet-beta, devnet and testnet. A devnet or testnet endpoint (one is enough: there is a single default endpoint on each test cluster) that answers getLatestBlockhash with a recent mainnet-beta blockhash, answers the genesis-hash check and the simulation as expected, obtains a signature that mainnet-beta executes. Impact: real SOL or tokens of the same account move on mainnet-beta although the user believes the payment is a test; the mainnet gate (build flag and user switch) and the per-transaction limits of an unaudited build are not applied to test-cluster transactions, so the amount is bounded only by the mainnet balance. The attacker gains when it is, or colludes with, the recipient. Severity by the wallet-impact class of the policy (\"replay across chains\", limits bypassed, with a malicious endpoint as precondition), which is higher than the CVSS band.",17 "recommendation": "Fixed: before a test-cluster transaction is prepared, before it is signed, and before bytes signed by a cold device are handed to any endpoint (simulation included), the wallet asks every configured mainnet-beta endpoint `isBlockhashValid` (commitment processed) for the blockhash of the transaction and refuses with `wrongChain` when one knows it; when no mainnet-beta endpoint answers, nothing is prepared or signed. Only the blockhash is sent. The review of a cold device carries the warning `solana.cross-cluster` on a test cluster, because an offline device cannot make the check. Residual risks: (1) a mainnet-beta node that lags behind the cluster may not know a blockhash a few hundred milliseconds old at the instant of the check; the check is repeated at signature time, seconds later; (2) when every configured mainnet-beta endpoint lies or is the same operator as the test endpoint the check is void; (3) a cold device that receives its transaction from a compromised online device has only the warning; (4) test clusters are unusable while no mainnet-beta endpoint answers. The interface must show the cold warning: QYV-APP-021.",18 "evidence": "Before the fix the devnet payment of the regression test was signed and sent although the scripted mainnet-beta answered that it knew the blockhash.",19 "fingerprint": "0254a641596d",20 "reported": "2026-12-05",21 "owner": "multichain-solana"22}23