SPB Git

Repository Public

2026-12-04-known-defects.json 3.8 KB 84 lines json

1{2  "date": "2026-12-04",3  "purpose": "Does the fuzzer find defects that are known to exist? The engine sources of commit 3ff9505~1 (before the fixes of the service review: QYV-SVC-001 to 007 and 015) were combined with the fuzz harnesses of commit 5ce6ac3 and fuzzed.",4  "engine_revision": "3ff9505~1 (Sources/, Package.swift)",5  "harness_revision": "5ce6ac3 (security/tests, security/fuzzing/corpus)",6  "host": "macstudio-de-simon-pierre-9.local",7  "node": "M3U96b",8  "build": "plain release (no coverage feedback)",9  "workers": 14,10  "wall_seconds": 240.29,11  "seed": "12579407463455001823",12  "targets": 48,13  "executions": 1223113179,14  "crashes": 5,15  "hangs": 0,16  "crash_sites": [17    {18      "count": 1,19      "site": "backup-authenticated | Vault.swift:594 Vault.seconds(_:) < Vault.swift:337 implicit closure #3 in implicit closure #2 in Vault.addRecord(type:payload:id:createdAt:)"20    },21    {22      "count": 1,23      "site": "json-esplora | Targets+Network.swift:140 closure #1 in closure #1 in variable initialization expression of networkTargets < Support.swift:218 closure #1 in fuzzAwait(_:)"24    },25    {26      "count": 1,27      "site": "json-indexer | Indexers.swift:137 closure #1 in EthereumIndexer.tokenTransfers(of:) < Indexers.swift:131 EthereumIndexer.tokenTransfers(of:)"28    },29    {30      "count": 2,31      "site": "uint256 | UInt256.swift:226 static BaseUnits.parse(_:decimals:) < Targets+Encoding.swift:188 closure #10 in variable initialization expression of encodingTargets"32    }33  ],34  "rediscovered": [35    {36      "finding": "QYV-SVC-001",37      "target": "json-indexer",38      "result": "found",39      "site": "Indexers.swift:137 (UInt64 to Int); Indexers.swift:92 (Double to UInt64) in the 150-second run that preceded this one"40    },41    {42      "finding": "QYV-SVC-002",43      "target": "json-esplora",44      "result": "found",45      "site": "EsploraAddressStats.isUsed (Int addition), reported at the inlined call site Targets+Network.swift:140"46    },47    {48      "finding": "QYV-SVC-005",49      "target": "backup-authenticated",50      "result": "found",51      "site": "Vault.swift:594 Vault.seconds, through Vault.addRecord during restoration"52    },53    {54      "finding": "QYV-SVC-006",55      "target": "uint256",56      "result": "found",57      "site": "UInt256.swift:226 BaseUnits.parse(decimals:)"58    }59  ],60  "not_rediscovered": [61    {62      "finding": "QYV-SVC-003",63      "reason": "the overflow is in the synchronisation of WalletService (unspent-output totals); no harness drives the service actor with a hostile endpoint over thousands of outputs"64    },65    {66      "finding": "QYV-SVC-004",67      "reason": "needs a PSBT of about 500 kB (8 785 inputs); the psbt targets cap inputs at 8 192 bytes"68    },69    {70      "finding": "QYV-SVC-007",71      "reason": "unbounded response buffering is not a trap; a fuzzer with a stub transport cannot see it"72    },73    {74      "finding": "QYV-SVC-015",75      "reason": "quadratic decoding needs very long text; the text targets cap inputs at 80 to 256 bytes and the hang threshold is 30 s"76    },77    {78      "finding": "QYV-CRY-001",79      "reason": "not tested: the kmac-verify harness uses KMAC.minimumTagSize, which does not exist before the fix; on that code the accept-only-seeds invariant would flag an accepted short tag at the first truncation"80    }81  ],82  "lesson": "An earlier revision of the harnesses discarded results with `_ = value`. In a release build the optimiser then removes the computation and the overflow or bounds trap inside it: QYV-SVC-002 was reproduced by hand but did not trap in the harness until the result was consumed. All harness results now go through fuzzUse(). The JSON targets also selected their parser with a digit that the number mutations rewrote; selectors are letters now. The campaigns recorded before commit 5ce6ac3 ran with the weaker harnesses."83}84
Files main
Menu

Theme