Repository Public
1{2 "id": "QYV-APP-040",3 "title": "A cold device cannot tell which TRON network a transaction is for: a payload labelled as a test network can be valid on mainnet, past the gate and the limits",4 "severity": "medium",5 "cvss_vector": "",6 "cvss_score": null,7 "cwe": "CWE-294",8 "masvs": "MASVS-CRYPTO-1",9 "area": "app",10 "location": "Sources/QyvoraWallet/WalletService+Cold.swift:176",11 "tool": "manual-review",12 "rule": "",13 "status": "fixed",14 "fix_commit": "0fe8b74",15 "regression_test": "QyvoraWalletTests.MultiChainSendTests.coldSigningOnSolanaAndTronTouchesNoNetwork (offline refusal on both chains, online signature after the main-network check, acknowledgement required), TronAuditRegressionTests.aColdDeviceDoesNotSignATransactionValidForMoreThanAnHour and theColdReviewOfATestNetworkTransactionSaysItIsNotBoundToItsNetwork.",16 "description": "Root cause: same as QYV-SVC-040 — nothing in the signed bytes names the network, and the account key is the same everywhere — but on a device that is offline by design. The cold envelope `qyvtx1|u|<chain>|<raw_data hex>` states the chain in its label only. A cold device reviews and signs a payload labelled `tron-nile` without any mainnet rule: the mainnet switch is not consulted (a test network is always allowed) and the limits of an unaudited build — under which main-network TRON payments cannot be cold-signed at all, for want of a fresh price — do not apply. If the payload's reference block is a main-network block, the signature moves real funds. The cold device cannot look the block up. What stands in the way: the online companion makes the check when it prepares the payment (QYV-SVC-040), the cold review shows recipient and amount faithfully and now carries the notice `tron.network-not-bound`, and the validity is bounded to about an hour (QYV-SVC-041). What does not: a compromised companion — the very adversary cold mode exists for — builds the payload itself. Rated medium as the weakening of a protection (gate and limits) that leaves the user's review of recipient and amount standing; if the owner's threat model for cold mode treats 'the user believes it is test money' as defeating that review, the impact class is high. This rating is for the owner to confirm.",17 "recommendation": "Proposed fix (engine and application, design decision): derive the test-network account from another path (SLIP-44 coin type 1, m/44'/1'/0'/0/0), so that no signature made for a test network can ever spend from the main-network address — the same change closes the Solana equivalent; it changes the test-network address, the profile, the recovery sheet and the watch-only package. Alternative without a format change: on a cold device, apply the main-network rules to every TRON payload whatever its label (in an unaudited build: refuse), i.e. give up cold signing of TRON on test networks. In both cases the interface must show `tron.network-not-bound` prominently until then.",18 "evidence": "Sources/QyvoraWallet/WalletService+Cold.swift:257; Sources/QyvoraWallet/WalletService+Cold.swift:355; App/Sources/Security/SecColdSignView.swift:153; App/Sources/Security/ColdModeView.swift:132",19 "fingerprint": "7e66cfd3d530",20 "reported": "2026-12-05",21 "owner": "integrator",22 "resolution_note": "Fixed with the alternative of the recommendation that changes no format: while the build is unaudited, an OFFLINE device refuses to sign a TRON transaction labelled as a test network — and, for the same reason, a Solana one (the cold counterpart of QYV-SVC-022). Nothing in the bytes names the network, so such a label is the companion's word; offline it cannot be checked, and a signature would be valid on the main network past the switch and the limits. `reviewColdTransaction` still decodes and shows the transaction, with the statement as a critical warning and `ColdTransactionReview.signingRefusal`; `signColdTransaction` refuses with the same sentence (`unauditedLimitUnverifiable`); the screen replaces the signature control by the refusal. A device that is online signs the same payload only after asking the main-network nodes (`requireNotValidOnMainnet`, `requireNotValidOnTronMainnet`) and after the warning was acknowledged. Behaviour change: with this build, Solana and TRON transactions can no longer be signed in cold mode at all (main networks were already refused for want of prices); the cold-mode screen says so. The other option of the recommendation — a separate key for the test networks (SLIP-44 coin type 1) — remains the way to give offline test-network signing back; it changes addresses, the recovery sheet and the watch-only package, and is the owner's decision.",23 "residual_risk": "An online device relies on the main-network endpoints: when they lie (\"this reference block is not ours\") the signature is made; main-network and test endpoints lying together are the adversary of QYV-SVC-040, unchanged. Once `MainnetPolicy.auditCompleted` is set there are no limits to bypass and an offline device signs again, with the critical warning: the deception \"it is only test money\" then rests on the user's reading of that warning. EVM and Bitcoin payloads are not concerned (chain identifier, address formats and descriptors bind them).",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: needs the owner's choice between a separate test-network key and refusing cold TRON signatures on test networks. Not accepted by the audit."28}29