SPB Git

Repository Public

QYV-APP-041.json 5.9 KB 29 lines json

1{2  "id": "QYV-APP-041",3  "title": "TRON: the interface must carry the service's refusals and notices (reference block, contract recipient, address forms, expiry, receipts)",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+Tron.swift:487",11  "tool": "manual-review",12  "rule": "",13  "status": "fixed",14  "fix_commit": "0fe8b74",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: several TRON protections end in a value the interface must show or act on; the screens are being rebuilt and were not reviewed. (1) Critical warnings: `tron.recipient-is-contract` (TRX or tokens sent to a contract that cannot handle them are lost) and `unaudited-mainnet` must require an explicit confirmation; `SendReview.hasCriticalWarning` exists for that. (2) Notes of the review: how many nodes vouched for the reference block (one node only = nothing was cross-checked), the expiry time, the activation fee of a new recipient, the fee limit of a token transfer. (3) Address entry: the service refuses the hexadecimal `41…` form, the EVM `0x…` form (`wrongFamily`), the zero address and the burn address with distinct sentences; an interface that 'helpfully' converts an EVM address to its TRON form would recreate the cross-family confusion the service refuses (the same twenty bytes are a valid account on both families, usually controlled by nobody on the other side). (4) Status: a token `transfer` that failed on chain (`OUT_OF_ENERGY`, `REVERT`) still burned its fee and moved nothing: `.failed` must not be worded as 'sent'; `.pending` after 'accepted' is not a confirmation; `.expired` means the payment can be made again. (5) Cold review: `blind-signing`, `tron.unlimited-approval`, `tron.non-owner-permission`, `tron.value-attached` and `tron.network-not-bound` must all be visible before the signature is offered. (6) History entries of TRC-20 transfers come from the index alone (`verified: false` for unknown tokens): they must not be presented as confirmed payments, and a forged 'sent' entry must not be what removes the first-payment notice in the user's mind (the service already keys that notice on its own record of payments and on the history).",17  "recommendation": "Proposed fix (application): block the confirm button on `hasCriticalWarning` until acknowledged; render every `SendReview.notes` and `warnings` entry; never transform an address between families; map `TransactionStatus` cases to distinct wording; show the cold-review warnings above the sign button; label index-only history as unverified.",18  "evidence": "App/Sources/Wallet/SendReviewView.swift:266; App/Sources/Wallet/SendResultView.swift:162; App/Sources/Activity/ActivityItem.swift:113; App/Sources/Security/SecColdSignView.swift:176",19  "fingerprint": "9977b289f6c2",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 six points: (1) `tron.recipient-is-contract` and `unaudited-mainnet` are acknowledged individually; (2) the notes of the review (nodes that vouched for the reference block, expiry) and the TRON details (bandwidth, energy, fee limit, activation of the recipient, validity) are shown; (3) the recipient goes through `checkAddress` and no screen converts an address between families (the watch-only form only strips the scheme of a scanned request); (4) the result screen words pending, confirmed, irreversible, failed (\"the fee was paid; nothing else moved\") and expired distinctly, and offers another payment only once the first is settled; (5) the cold review shows every warning (`blind-signing` with its separate consent, `tron.unlimited-approval`, `tron.non-owner-permission`, `tron.value-attached`, `tron.network-not-bound`) before the signature control, the critical ones with their acknowledgement; (6) a TRC-20 entry whose symbol and decimals are the index's word is labelled as not verified in the activity list and on its detail.",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.",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 against this list."28}29
Files main
Menu

Theme