Repository Public
1{2 "id": "QYV-SVC-002",3 "title": "Esplora address statistics with extreme counters crash the application (Int overflow)",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-190",8 "masvs": "MASVS-CODE-4",9 "area": "network",10 "location": "Sources/QyvoraNetworking/Esplora.swift:95",11 "tool": "manual-review",12 "rule": "",13 "status": "fixed",14 "fix_commit": "3ff9505",15 "regression_test": "QyvoraNetworkingTests.ResponseValidationTests/addressStatisticsWithExtremeCountersDoNotOverflow",16 "description": "Root cause: `EsploraAddressStats.isUsed` and `hasSpent` added two server-supplied `Int` counters (`chain_stats.tx_count + mempool_stats.tx_count`) with the trapping `+`. Impact: an Esplora endpoint answering `tx_count` = 9223372036854775807 in both sections terminated the process when the wallet read the statistics of an address whose history is longer than the pages it reads (`hasSpent`, WalletService+Bitcoin.swift): remote denial of service by a hostile or faulty endpoint.",17 "recommendation": "Fixed: the counters are compared one by one and never added.",18 "evidence": "",19 "fingerprint": "c1e627a2cd2a",20 "reported": "2026-12-04",21 "owner": "review-b"22}23