Repository Public
1{2 "id": "QYV-SVC-001",3 "title": "A hostile Ethereum indexer answer crashes the application (unchecked Double to UInt64 / UInt64 to Int conversions)",4 "severity": "medium",5 "cvss_vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",6 "cvss_score": 5.9,7 "cwe": "CWE-248",8 "masvs": "MASVS-CODE-4",9 "area": "network",10 "location": "Sources/QyvoraNetworking/Indexers.swift:92",11 "tool": "manual-review",12 "rule": "",13 "status": "fixed",14 "fix_commit": "3ff9505",15 "regression_test": "QyvoraNetworkingTests.ResponseValidationTests/indexerNumberNeverTraps, hostileIndexerAnswersAreParsedWithoutTrap; QyvoraWalletTests.AuditRegressionTests/hostileIndexerNumbersDoNotCrashTheSynchronization",16 "description": "Root cause: `EthereumIndexer.number` converted a JSON number with `UInt64(n)` after checking only `n >= 0`, and `tokenTransfers` converted the result with `Int.init`. Swift traps on a Double at or above 2^64 and on a UInt64 above Int.max. Impact: a Blockscout-compatible indexer (default public endpoint, user-configured endpoint, or anyone able to alter its answer) returning `\"block_number\": 1e300` or `\"decimals\": \"18446744073709551615\"` terminated the process on every Ethereum synchronization: a remote, repeatable denial of service of the wallet. No key material is exposed. Verified: with the fix reverted on the build node the regression test exits with SIGTRAP.",17 "recommendation": "Fixed: the conversion is range-checked (`n < 2^64`) and the decimals use `Int(exactly:)`; out-of-range values are read as unknown. Keep every conversion of server-supplied numbers behind a checked helper (`exactly:` initialisers).",18 "evidence": "",19 "fingerprint": "96df53a7b67e",20 "reported": "2026-12-04",21 "owner": "review-b"22}23