SPB Git

Repository Public

QYV-APP-020.json 5.4 KB 29 lines json

1{2  "id": "QYV-APP-020",3  "title": "Solana recipients have no checksum: the review screen must make the user compare the address and must block on critical warnings",4  "severity": "medium",5  "cvss_vector": "",6  "cvss_score": null,7  "cwe": "CWE-356",8  "masvs": "MASVS-PLATFORM-3",9  "area": "app",10  "location": "Sources/QyvoraWallet/WalletService+Solana.swift:447",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: a Solana address is 32 bytes in base58 without any checksum; a mistyped or substituted character gives, almost always, another valid address, and an address that is not a curve point (a program-derived address: a token account, program state) is syntactically valid too. The engine does what it can without the network and with it: `checkAddress` refuses programs, sysvars and the wrapped-SOL mint and returns the notes \"no checksum\" and \"not a wallet key\"; the planner refuses a recipient that exists and is not owned by the System program (a token account or a mint pasted by mistake) and warns `recipientOffCurve` (critical), `recipientIsNew` and, for the first payment to an address from this device, `first-payment`. None of this protects the user unless the interface shows it and makes it count: a control enforced only by the interface, not yet verifiable because the screens are being rebuilt. Rated by the policy class \"a control enforced only by the interface\"; no CVSS vector.",17  "recommendation": "Proposed fix (application): on the Solana send screen (1) show `AddressCheck.notes` as soon as the address is entered; (2) on the review, print the full recipient in groups of four characters and require an explicit confirmation when `first-payment` is present (address-book entry or a \"compare with the source\" step); (3) refuse to enable the signature button while `SendReview.hasCriticalWarning` is true until each critical warning (`solana.off-curve`, `unaudited-mainnet`) has been acknowledged individually; (4) never shorten a Solana address in the middle on the review; (5) offer the paste of an address only through the validated path (`checkAddress`), so that a foreign-family address is named as such. Add a UI test for each.",18  "evidence": "Sources/QyvoraWallet/WalletService+Solana.swift:468; App/Sources/Wallet/SendFormView.swift:148; App/Sources/Wallet/SendReviewView.swift:165; App/Sources/Wallet/SendReviewView.swift:238; Sources/QyvoraWallet/WalletService+Send.swift:666",19  "fingerprint": "31ce892a467b",20  "reported": "2026-12-05",21  "owner": "integrator",22  "resolution_note": "The acknowledgement is now a rule of the service, not only of the screen: `signAndBroadcast(_:acknowledged:)` and `signColdTransaction(…acknowledged:)` refuse unless every critical warning of the review is named in the set the screen collected, and the forms without that set are no longer public (static check QYV-STA-021). The send review and the cold review show every warning with the service's sentence and one control per critical warning, off until the user turns it on (static check QYV-STA-022). The five points: (1) the notes of `AddressCheck` are shown under the recipient field as soon as the address validates (SendFormView.recipientNotes); (2) the review prints the recipient in full, in groups of four, and the first payment to a Solana address is now a CRITICAL warning of the service (a Solana address has no checksum), so it needs its own acknowledgement; (3) each critical warning (`solana.off-curve`, `first-payment`, `unaudited-mainnet`) is acknowledged individually and the service refuses otherwise; (4) addresses on the review use `ReviewRow(.address)`, never a middle truncation; (5) a typed, pasted or scanned recipient goes through `checkAddress`, whose refusal names another family as such. (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. There is no address book: \"compare with the source\" is a sentence and an acknowledgement, not a stored trusted entry.",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 send and review screens are checked against the five points."28}29
Files main
Menu

Theme