SPB Git

Repository Public

QYV-SVC-061.json 1.8 KB 23 lines json

1{2  "id": "QYV-SVC-061",3  "title": "A refused broadcast was reported as a success when the refusal contained \"known\" or was a mempool conflict",4  "severity": "medium",5  "cvss_vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L",6  "cvss_score": 4.8,7  "cwe": "CWE-697",8  "masvs": "MASVS-NETWORK-1",9  "area": "network",10  "location": "Sources/QyvoraNetworking/UTXOIndexer.swift:348",11  "tool": "manual-review",12  "rule": "",13  "status": "fixed",14  "fix_commit": "2c8f987",15  "regression_test": "QyvoraNetworkingTests.UTXOCoinsAuditRegressionTests/aRefusedBroadcastIsNeverReportedAsAlreadyKnown",16  "description": "Root cause: the test for \"the node already has this transaction\" was the regular expression `already|known|in block chain|txn-mempool-conflict` (and `already|known|in block chain` in the Esplora client). It matched any refusal containing \"known\" — \"unknown error\", \"Unknown transaction version\" — and `txn-mempool-conflict`, which means that another transaction spending the same coins is in the mempool, not this one. Impact: the wallet returned a transaction identifier and recorded the coins as spent although no node had accepted the payment: the user is told a payment was sent when it was not (integrity of what is presented). No fund movement; the coins reappear at the next synchronization. `txn-mempool-conflict` was added with the UTXO coins; the bare \"known\" predates them.",17  "recommendation": "Fixed: only the messages by which a node says it holds this very transaction are accepted (`txn-already-in-mempool`, `txn-already-known`, \"already in block chain\", \"outputs already in utxo set\", \"already exists\", \"already known\", \"already have\"); the three clients (Esplora, Blockbook, Bitcore) share the rule.",18  "evidence": "",19  "fingerprint": "3fdfc861848d",20  "reported": "2026-12-05",21  "owner": "review-utxo"22}23
Files main
Menu

Theme