SPB Git

Repository Public

QYV-SVC-004.json 1.2 KB 23 lines json

1{2  "id": "QYV-SVC-004",3  "title": "PSBT.fee traps on a PSBT with thousands of inputs claiming the maximum amount",4  "severity": "low",5  "cvss_vector": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L",6  "cvss_score": 2.5,7  "cwe": "CWE-190",8  "masvs": "MASVS-CODE-4",9  "area": "parser",10  "location": "Sources/QyvoraBitcoin/PSBT.swift:503",11  "tool": "manual-review",12  "rule": "",13  "status": "fixed",14  "fix_commit": "f111cfb",15  "regression_test": "QyvoraBitcoinTests.BitcoinAuditRegressionTests/psbtFeeWithThousandsOfMaximalInputsIsNilNotATrap",16  "description": "Root cause: `PSBT.fee` summed the claimed input amounts in UInt64 after bounding each one only; 8 785 inputs of 2.1e15 satoshis overflow. Impact: a crafted PSBT of about 500 kB trapped any caller of `fee`. The wallet service refuses PSBTs with more than 1 000 inputs before it reads the fee (WalletService+Bitcoin.swift `review`), so the trap was not reachable through the application; it was reachable through the public API of QyvoraBitcoin.",17  "recommendation": "Fixed: the running total is checked at every step and `fee` returns nil when it leaves the monetary range.",18  "evidence": "",19  "fingerprint": "a0605c979107",20  "reported": "2026-12-04",21  "owner": "review-b"22}23
Files main
Menu

Theme