Repository Public
1{2 "id": "QYV-SVC-082",3 "title": "A price close to zero from the price source lifted every dollar ceiling of the native coins (POL, BNB, AVAX, SOL, TRX, LTC, DOGE, BCH)",4 "severity": "high",5 "cvss_vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N",6 "cvss_score": 5.3,7 "cwe": "CWE-345",8 "masvs": "MASVS-NETWORK-1",9 "area": "wallet",10 "location": "Sources/QyvoraCore/Networks.swift:902",11 "tool": "manual-review",12 "rule": "",13 "status": "fixed",14 "fix_commit": "10c39f8",15 "regression_test": "QyvoraWalletTests.MainnetPolicyTests (EVMChainsAuditRegressionTests.swift): aPriceCloseToZeroDoesNotLiftTheDollarCeilings, everyDollarCeilingHasAPriceFloor; QyvoraCoreTests.EVMChainsAuditRegressionTests (priceFloorsBoundTheDollarCeilings, ceilingsNeverAllowWhatCannotBeValued)",16 "description": "Root cause: the ceilings of the chains added by the multi-chain upgrade are dollar figures (150 USD per transaction, 5 USD of fee on the EVM networks whose coin is not ether) converted with `freshUSDPrice`, which accepted any finite price above zero from the single price source (`PriceClient`, first and only endpoint, no cross-check). Impact: a price source that answers, for example, 0.00000001 USD for BNB makes \"150 USD of BNB\" 15 billion BNB: the per-transaction ceilings of an unaudited mainnet build no longer bound anything for eight coins, at prepare and at sign. One lying endpoint (or an on-path party able to alter the price answer, or a faulty answer) is enough; the amount and the recipient are still chosen and reviewed by the user, so the ceiling that is lost is the one that bounds a mistake or a defect of the unaudited engine. Bitcoin and ether are not affected (ceilings in their own unit).",17 "recommendation": "Bound the conversion on the price side: a floor per native coin under which a price is treated as no price (the transaction is refused as unverifiable), so that one transaction never moves more than ceiling / floor coins whatever the source says; or require two independent price sources to agree.",18 "evidence": "",19 "fingerprint": "8ecd471663c2",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, QyvoraNetworkingTests, QyvoraCoreTests; audit-package suites EVMChains* and Multichain* on M5M36.",24 "resolution_note": "Fixed with price floors: `MainnetPolicy.minimumPlausibleUSDPrice` (POL 0.01, BNB 30, AVAX 1, SOL 5, TRX 0.01, LTC 5, DOGE 0.005, BCH 20 USD) and `isPlausibleUSDPrice`; `freshUSDPrice`, the one function every family converts with, refuses a cached or fetched price under the floor (`unauditedLimitUnverifiable`). One transaction of an unaudited build can therefore move at most 150 USD / floor coins (`absoluteNativeCeiling`: 15 000 POL, 5 BNB, 150 AVAX, 30 SOL, 15 000 TRX, 30 LTC, 30 000 DOGE, 7.5 BCH) whatever the source answers, instead of any amount. No existing ceiling was raised. The regression test fails on the code before the fix (24 issues), checked on M5M36. Severity: CVSS 5.3; rated high by the wallet-impact class \"fee or amount limits bypassed\" (malicious endpoint).",25 "residual_risk": "The floors are orders of magnitude chosen by the audit, not market data: between the real price and the floor a lying source still enlarges the ceiling by that ratio (the absolute bounds above are the worst case). They are figures of the owner's policy and should be reviewed by the owner; a coin whose real price falls under its floor can no longer be sent on mainnet by an unaudited build until the floor is revised (safe side). Token prices have no floor: QYV-SVC-087 (open)."26}27