Repository Public
1{2 "id": "QYV-SVC-103",3 "title": "The review of a TRC-20 payment showed the symbol and decimals the caller passed (TRON), and the caller's symbol on Solana",4 "severity": "low",5 "cvss_vector": "",6 "cvss_score": null,7 "cwe": "CWE-451",8 "masvs": "MASVS-CRYPTO-1",9 "area": "transactions",10 "location": "Sources/QyvoraWallet/WalletService+Tron.swift:487",11 "tool": "manual-review",12 "rule": "",13 "status": "fixed",14 "fix_commit": "98350c6",15 "regression_test": "QyvoraWalletTests (NewEntryPointsAuditRegressionTests.swift): NewEntryPointsAuditRegressionTests.showingAHiddenTokenAgainChangesNoPaymentMetadata",16 "description": "Root cause: `prepareTronSend` took `amountSymbol` and `amountDecimals` of the review from the `ChainToken` value the caller passed, and `prepareSolanaSend` took the symbol from it (its decimals come from the mint). On EVM the uniform `prepareSend` resolves the token through the wallet's list (`evmToken`); TRON and Solana did not. Nothing in a TRC-20 transfer states decimals: the review then showed an amount scaled by a figure nobody checked. Where the caller's value comes from: `ChainData.detectedTokens` — after a restart, the persisted record (the case of QYV-SVC-084, which was fixed for EVM only) — or `HiddenToken.token`, or any value the interface builds. Found while writing the test \"showing a hidden token again changes no payment metadata\": a payment asked with a token described as 0 decimals / \"LIE\" was reviewed as such. Impact: what is shown is not what is signed in token units (the base units signed are the caller's), with a forged record or a defect of the interface; test networks and audited builds (an unaudited mainnet build refuses a token without a known price). Not reachable from a network endpoint.",17 "recommendation": "Resolve the token in the service, as on EVM: the wallet's list first, then what a synchronization of this session detected; otherwise refuse.",18 "evidence": "",19 "fingerprint": "8fbf73c9f177",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: `tronToken` and `solanaToken` (WalletService+Send.swift) resolve the caller's value to the wallet's own description (list, then holdings detected in this session); the review and its `asset` carry that description; a token known from neither is refused (\"This token is not in the wallet's list. Add it first.\"). The regression test fails on the code before the fix, checked on M5M36.",25 "residual_risk": "`feeQuote` still names the token in its `basis` sentence with the caller's symbol on Solana (an estimate, nothing is signed). Decimals of a custom TRC-20 token are those read on chain when it was added, from one node (QYV-SVC-014 class)."26}27