Repository Public
1{2 "id": "QYV-SVC-011",3 "title": "The wallet profile (account public keys, endpoints, mainnet opt-in) is stored unauthenticated outside the vault",4 "severity": "low",5 "cvss_vector": "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N",6 "cvss_score": 3.0,7 "cwe": "CWE-345",8 "masvs": "MASVS-STORAGE-1",9 "area": "storage",10 "location": "Sources/QyvoraWallet/WalletService.swift:78",11 "tool": "manual-review",12 "rule": "",13 "status": "fixed",14 "fix_commit": "8fb36b0",15 "regression_test": "QyvoraWalletTests.AccountBindingTests (aReplacedAccountKeyIsRestoredFromTheVaultAtUnlock, everyUnlockMethodChecksTheBinding, aVaultWithoutBindingGetsOneFromItsPhrase, aRestoredBackupCarriesTheBindingOfItsPhrase)",16 "description": "Root cause: `wallet-profile.json` is a plain JSON file (data protection `complete`, excluded from backups). Receive addresses are derived from `bitcoinAccounts[].extendedPublicKey` and `ethereumAddress` of this file; nothing compares them with the keys derived from the vault except at signing time (`signAndBroadcastBitcoin`, `signEthereum`). Impact: whoever can write into the application container can replace the account key (the wallet then shows the attacker's receive addresses), the endpoints, the frozen-coin list or the labels; whoever can read it learns the xpub (every past and future address) without the vault password. On an intact iOS device the sandbox prevents both; with root access the attacker has stronger options, hence the low rating.",17 "recommendation": "Store the account public data in a vault record (or an HMAC of the profile under a vault subkey) and verify it at every unlock: refuse to show a receive address when the profile does not match the vault. Treat the remaining fields as untrusted input (now bounded, see QYV-SVC-006).",18 "evidence": "",19 "fingerprint": "6ddbde53d4f2",20 "reported": "2026-12-04",21 "owner": "integrator",22 "fixed": "2026-12-04",23 "resolution_note": "Fixed: The public account data (BIP-84 account keys of both coin types, master fingerprint, Ethereum address) is also stored in a vault record (type watchOnlyAccount, format 'qyvora-account-binding'), written at creation, import and restore. After every unlock (password, PIN, biometrics) the service compares the profile with that record and, when they differ, puts the vault's data back in the profile and forgets the indices, frozen coins and cached state read for the other account (`accountBindingRepairCount` reports it). A vault written before this rule gets its record at the next unlock, derived from the recovery phrase. Verification: package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release). Residual risk: Unchanged: the profile is readable without the vault password (the extended public keys reveal every address to whoever can read the application container), by design: the wallet synchronizes while locked. While the vault is locked the profile is what the file says; a full wallet shows only the lock screen then. Endpoints, labels and the frozen-coin list are still unauthenticated settings (bounded as untrusted input since QYV-SVC-006; changing the endpoints in the application now needs a fresh authentication). The interface does not yet tell the user that a repair happened.",24 "verification": "package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release).",25 "residual_risk": "Unchanged: the profile is readable without the vault password (the extended public keys reveal every address to whoever can read the application container), by design: the wallet synchronizes while locked. While the vault is locked the profile is what the file says; a full wallet shows only the lock screen then. Endpoints, labels and the frozen-coin list are still unauthenticated settings (bounded as untrusted input since QYV-SVC-006; changing the endpoints in the application now needs a fresh authentication). The interface does not yet tell the user that a repair happened."26}27