SPB Git

Repository Public

QYV-SVC-083.json 1.8 KB 26 lines json

1{2  "id": "QYV-SVC-083",3  "title": "EthereumRPC.FeeData.maxFee trapped on figures the fee rules refuse (overflowing addition in the fallback)",4  "severity": "low",5  "cvss_vector": "",6  "cvss_score": null,7  "cwe": "CWE-190",8  "masvs": "MASVS-CODE-4",9  "area": "wallet",10  "location": "Sources/QyvoraNetworking/EthereumRPC.swift:230",11  "tool": "manual-review",12  "rule": "",13  "status": "fixed",14  "fix_commit": "53bb0eb",15  "regression_test": "QyvoraNetworkingTests.EVMChainsAuditRegressionTests.feeDataMaxFeeNeverTraps",16  "description": "Root cause: `FeeData.maxFee` returned `(try? gasFees())?.maxFeePerGas ?? baseFee + baseFee + priorityFee`; `UInt256.+` is the trapping operator. `FeeData` has a public initializer, so a value built from figures the rules refuse and whose sum exceeds 2^256 stops the process. Impact: not reachable from an endpoint (`feeData()` bounds the three figures below 10 000 gwei before it builds the value); reachable by any caller of the public API, including an interface that would build a `FeeData` from text. Recorded as low: a trap on a public type of the networking module, without an untrusted path to it today.",17  "recommendation": "Compute the fallback with reporting additions and saturate.",18  "evidence": "",19  "fingerprint": "8edb1d72eba1",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: the fallback saturates at 2^256 − 1 (a display figure; `gasFees`, which a transaction uses, refuses such values). Before the fix the test process of the regression test died on the first expectation (checked on M5M36). The fuzz target `evm-fee-quotes` exercises `maxFee` on every input."25}26
Files main
Menu

Theme