Repository Public
1{2 "id": "QYV-APP-080",3 "title": "A watch-only package is not authenticated and no fingerprint is shown: a substituted package makes the companion show someone else's addresses as the wallet's own",4 "severity": "high",5 "cvss_vector": "CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N",6 "cvss_score": 4.0,7 "cwe": "CWE-345",8 "masvs": "MASVS-PLATFORM-3",9 "area": "wallet",10 "location": "Sources/QyvoraWallet/WalletService+Onboarding.swift:553",11 "tool": "manual-review",12 "rule": "",13 "status": "fixed",14 "fix_commit": "bf3150b",15 "regression_test": "QyvoraWalletTests.MainnetPolicyTests.aWatchOnlyPackageIsImportedOnlyWithItsOwnCode (InterfaceDutiesAuditRegressionTests.swift, commit 0fe8b74) and theWatchOnlyFingerprintFollowsEveryAccountOfThePackage; static check QYV-STA-023; screens read on the simulator (see verification).",16 "description": "Root cause: the watch-only package (`exportWatchOnlyPackage`, versions 1 and 2) is public data in JSON, carried as text or QR frames from the cold device to its online companion. It is neither signed nor bound to anything the companion knows; the QR frame checksum only detects transmission errors. Version 2 extends it to the Solana address, the TRON address and the account keys of the other coins. Impact: a party able to replace the package on its way (a screen shown to the camera instead of the cold device, a file or text sent through a channel it controls) makes the companion watch the attacker's accounts: every receive address the companion shows, on every family, is the attacker's, and deposits made to them are lost. The attacker cannot sign: payments prepared by the companion for the cold device are refused there (\"not this wallet's\"), which is also how the substitution would eventually be noticed. The design exists since 1.0 (Bitcoin and Ethereum) and had no finding; the upgrade extends it to four families. Rated by the wallet-impact class: loss of funds with a strong precondition (a package the user must be led to import) — high; CVSS 4.0.",17 "recommendation": "Interface: show `WalletService.watchOnlyFingerprint(package:)` on the cold device next to the package it displays, and on the companion for the package it scanned, before `importWatchOnly(package:)` is called; ask the user to compare the five groups and refuse the import otherwise. Keep showing the code in the companion's settings. Optionally sign the package with the cold device's QYVORA identity (ML-DSA + Ed25519) when the two devices have exchanged identities.",18 "evidence": "App/Sources/Security/WatchOnlyExportView.swift:64; App/Sources/Onboarding/WatchOnlyFlow.swift:374; App/Sources/Onboarding/WatchOnlyFlow.swift:394; Sources/QyvoraWallet/WalletService+Onboarding.swift:476; Sources/QyvoraWallet/WalletService+Onboarding.swift:601",19 "fingerprint": "4837729ba046",20 "reported": "2026-12-05",21 "owner": "integrator",22 "frameworks": [23 "WSC-4.5",24 "WSB-THRE-005"25 ],26 "mitigation_commit": "ced9f8f",27 "updated": "2026-12-05",28 "resolution_note": "Both screens exist. The exporting device (WatchOnlyExportView) shows, next to the QR code, the code of the package in five large groups, a warning that says what a substitution means, the steps for the other device and the first address of every account of the package (`WalletService.watchOnlyPreview`, computed from the package text itself). The importing flow (WatchOnlyFlow → WatchOnlyPackageConfirmation) never imports from the scanner: it shows the code of what it scanned WITHOUT its last group, the same list of first addresses with their networks, what a difference means, and enables the import only when the user has typed the last group as the signing device shows it and ticked the comparison (a box that starts empty). The service checks it: `importWatchOnly(package:comparedFingerprint:)` refuses a code that is not the code of the very package being imported, and the form without a code is no longer public — no screen can import a package without stating one. A wrong group names the consequence on screen. The package scanned from the dashboard on a device that already has a wallet is still only named (it is not imported there).",29 "residual_risk": "The comparison is the user's: a user who types the group shown by a substituted package's source (an attacker screen instead of the signing device) or ticks without looking imports the substituted package; the typed group covers 16 of the 80 bits, the other 64 are compared by eye, and an attacker who can show a package can prepare one whose last group collides (65 536 tries). The first-address lists are the second, independent comparison. The package is still not signed: signing it with the QYVORA identity of the cold device remains the stronger design when both devices have exchanged identities. Version-1 companions do not show the code.",30 "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.",31 "fixed": "2026-12-05",32 "previous_open_note": "Engine part done on 2026-12-05: `WalletService.watchOnlyFingerprint(package:)` gives, without wallet, secret or network, an 80-bit code of every account a package carries (five groups of four hexadecimal digits), the same on both devices for the same package and different as soon as one account differs. Not done, and not possible in the engine: the screens of both devices must show the code and make the user compare it before the import. Until they do, the finding is open.",33 "previous_proposed_disposition": "Integrator: add the comparison step to the watch-only import flow of the application (App/Sources is being rebuilt by the interface agents and was not touched by this audit)."34}35