SPB Git

Repository Public

QYV-SVC-102.json 3.0 KB 27 lines json

1{2 "id": "QYV-SVC-102",3 "title": "A token of the detected list restored from the previous session's file could be moved into the wallet's list with the file's symbol and decimals",4 "severity": "low",5 "cvss_vector": "",6 "cvss_score": null,7 "cwe": "CWE-345",8 "masvs": "MASVS-STORAGE-1",9 "area": "storage",10 "location": "Sources/QyvoraWallet/WalletService+Ethereum.swift:447",11 "tool": "manual-review",12 "rule": "",13 "status": "fixed",14 "fix_commit": "98350c6",15 "regression_test": "QyvoraWalletTests (NewEntryPointsAuditRegressionTests.swift): NewEntryPointsAuditRegressionTests.aDetectedTokenOfARestoredSnapshotCannotEnterTheList",16 "description": "Root cause: QYV-SVC-084 stopped `prepareSend` from using a detected token of a restored snapshot, but `acceptDetectedToken` (the 1.0 call with a `TokenInfo`, and the uniform call for Solana and TRON) still copied the token from the restored snapshot or record into `customTokens` / `customSolanaTokens` / `customTronTokens`. After a restart those lists of detected tokens are files (`evm-sync-<chain>.json`, the Solana and TRON records), restored after range checks only. Impact: whoever can write into the application container, plus one tap on \"add\" by the user on a token shown as detected, makes a token enter the wallet's list with a chosen symbol and decimals; every later payment of it is reviewed with them (the base units signed are the caller's; an interface converts the user's figure with the forged decimals). The quarantine of QYV-SVC-084 was lifted by one call. Needs local write access to the container and a test network or an audited build (an unaudited mainnet build sends built-in tokens only). On Solana the decimals of a payment are read from the mint and enforced by the token program, so only the symbol was concerned there.",17 "recommendation": "Accept a detected token only when a synchronization of this session read it on chain.",18 "evidence": "",19 "fingerprint": "0b9cb24af579",20 "reported": "2026-12-05",21 "owner": "integrator",22 "fixed": "2026-12-05",23 "verification": "Root-package tests on M5M36 (Swift 6.4, release): QyvoraWalletTests, QyvoraTronTests, QyvoraCryptoTests, QyvoraMigrationTests, QyvoraQuantumShieldTests; audit-package suite NewEntryPointsProperties and the fuzz targets utxo-coin-snapshot and hidden-tokens on M5M36.",24 "resolution_note": "Fixed as recommended on the three families: accepting a detected token of a snapshot or record flagged as the previous session's answers `notSynchronized` (\"This token was detected in a previous session. Synchronize before adding it to the list.\"). The regression test forges the EVM snapshot file (symbol and decimals), checks the refusal and the acceptance after a synchronization with the contract's own description, and does the same for an SPL token through the uniform call. It fails on the code before the fix, checked on M5M36.",25 "residual_risk": "Custom tokens already in the profile keep the description read when they were added; the profile is not authenticated (QYV-SVC-011)."26}27
Files main
Menu

Theme