Executive summary
What we were asked to do
We audited a reference full-node client's C++ codebase (repo.node-project.example), drove its top source hypotheses to live proof against compiled daemons on an isolated test host (sandbox.node-project.example), and tested whether any unauthenticated P2P DoS or consensus-breaking path existed. A second workstream modeled residual P2P eclipse exposure against current peer defenses.
Live verification reshaped the report in both directions: it upgraded a medium path-traversal lead into a high-severity absolute-path bypass, confirmed an infinite loop in legacy wallet migration, retracted a high-severity fee-bumping bug that did not exist at runtime, and failed to break the unauthenticated P2P layer across every vector tested.
Principal findings
No unauthenticated P2P crash, remote code execution, consensus fork, or live private-key extraction was achieved. Every live-proven exploit required authenticated RPC access or local disk control. On an unmodified regtest daemon, a 286 KB crafted Berkeley DB wallet with a two-page overflow cycle locked an RPC worker at 99.9% CPU indefinitely (CWE-835), an absolute-path bypass in wallet restore wrote and loaded wallets outside the wallet directory while exposing a file-read oracle (CWE-22), and the PSBT analysis RPC accepted an invalid signature during fee estimation, skewing virtual size by 16 vB (CWE-347) — though finalization properly rejected it. A fourth live proof triggered a 3-for-3 startup crash loop after truncating a UTXO snapshot WAL (CWE-617), but only after patching three snapshot guards and test chain parameters. Two further high-severity findings remained source-confirmed without end-to-end daemon proof: six early-return paths in the MuSig2 wrapper omitting nonce invalidation (CWE-323), and missing post-signing PSBT and descriptor checks in the external signer interface (CWE-345), whose severity depends on the project's signer trust boundary.
What this means in plain terms
- The unauthenticated P2P perimeter held. Six P2P DoS hypotheses across source audit, 129 ASAN compact-block fuzz cases, and a 500-orphan live profile produced zero crashes and flat 1.0x latency.
- Authenticated RPC and wallet parsers held the real bugs. Every clean live exploit lived behind RPC: a legacy BDB cycle loop, an absolute-path join bypass, and a dummy-checker fee-estimation path.
- Runtime testing corrected our own source audit in both directions. It discovered the absolute-path bypass, refuted a high-severity RBF finding, and narrowed a high PSBT lead to a medium fee-skew bug.
The five things that need a decision, not a patch
| # | What is wrong | Business impact | Who decides |
|---|---|---|---|
| 1 | The external hardware-signer interface replaces the wallet's PSBT wholesale with zero input, output, or fee verification | Maintainers often treat a compromised signer binary as already holding key custody. Deciding whether the node must bind user intent independently — and guard against persistent descriptor poisoning at wallet setup — is a threat-model decision first, a patch second. | Protocol security + wallet maintainers |
| 2 | Wallet-restore RPC accepts arbitrary absolute destination paths and arbitrary source backup paths | Relative .. traversal is explicitly blocked, yet absolute paths bypass the check via C++ path concatenation. Whether operators should be allowed to restore wallets outside the wallet directory is a compatibility-versus-security call. | Wallet maintainers |
| 3 | P2P AS-diversity mapping (ASMap) ships opt-in and disabled by default | Defensive eclipse modeling confirmed 14 residual gaps survive modern peer-table mitigations, with default-off AS diversity as the single largest deployment gap across clearnet nodes. Shipping a default map is a governance and distribution-trust decision. | Core maintainers + release engineering |
| 4 | Snapshot chainstate WAL corruption triggers an unrecoverable startup assertion loop | Standard recovery flags do not remove the snapshot anchor file; operators must manually delete the snapshot directory on disk. Deciding whether corrupted snapshots should auto-clean and fall back to full validation is an operational-safety policy call. | Validation + node operations |
| 5 | A pinned build-system messaging dependency (ZeroMQ 4.3.5 in builds.node-project.example) carries a published heap buffer overflow CVE | The node's ZMQ publisher is optional and one-way, so exposure depends on deployment topology. Deciding whether to bump the dependency immediately or on the next release branch is a supply-chain maintenance decision. | Build-system maintainers |
What we did not get
No unauthenticated P2P crash or hang, no P2P or RPC remote code execution, no consensus divergence, and no live private-key extraction. Neither node-project.example nor any mainnet/testnet node was touched; all dynamic execution ran exclusively on sandbox.node-project.example in regtest mode, yielding zero confirmed unauthenticated P2P vulnerabilities across 9 audit rounds, 129 ASAN cases, and 500 profiled orphans.
Engagement outcome
An authorized white-box source audit and isolated regtest verification of a reference cryptocurrency full-node client confirmed three authenticated-RPC defects — a legacy wallet-migration infinite loop, an absolute-path traversal bypass in wallet restore, and an invalid-signature fee-estimation flaw — alongside a caveated snapshot crash loop and two source-level wallet wrapper and signer-boundary gaps. No unauthenticated peer-to-peer denial-of-service, remote code execution, consensus divergence, or live private-key compromise was achieved across source analysis, AddressSanitizer fuzzing, and runtime profiling. Two high-severity source hypotheses were refuted by live testing, and all verified findings were documented with explicit scope bounds and prioritized remediation guidance.
1. The engagement in numbers
| Metric | Value |
|---|---|
| Root workstreams | 2 (source audit + live verification; P2P eclipse threat modeling) |
| Total Swarm Size | 100 (2 orchestrators, 98 specialist workers) |
| Active machine time | ~15.3 hours |
| Peak concurrent sessions | 10 |
| Tool calls executed | 2,464 (1,061 shell commands, 1,305 file operations) |
| Messages exchanged | 1,555 |
| Subsystems audited | 35+ across 9 source rounds |
| Source-audit records classified | 138 (including 62 verified-safe sub-items) |
| Live regtest executions | 6 targeted PoCs + 1 orphan profile (500 txs) + 1 ASAN fuzz run (129 cases) |
| Clean live-proven findings | 3 (2 high, 1 medium) |
| Caveated live-proven findings | 1 (high — required patched guards + local WAL truncation) |
| Source-only / trust-boundary findings | 2 high clusters (MuSig2 wrapper, external signer) + 1 medium dependency CVE |
| Refuted or negative hypotheses | 1 live-refuted RBF high, 1 partial-refuted PSBT high, 6/6 P2P DDoS negative |
| Production / mainnet hosts touched | 0 (isolated regtest server + source repository only) |
Separating the 138 source-level records from the small set of live-proven findings is intentional: source auditing establishes surface coverage, while live execution against compiled standard and ASAN binaries filters out unreachable code paths and misread defenses.
Agent topology
| Role | Sessions | Responsibility |
|---|---|---|
Orchestrator (blackbit) | 2 | Workstream coordination, direct deep-reading rounds, synthesis, triage |
Recon analyst (blackbit-recon-analyst) | 65 | Parallel subsystem auditing across P2P, validation, RPC, wallet, crypto, storage |
General specialist (general) | 22 | Build/ASAN setup, live regtest PoC execution, fuzzing, P2P eclipse modeling |
Explorer (explore) | 9 | Deep-dive zero-day hunts (txgraph, MuSig2, external signer, script, assumeutxo) |
Exploit (blackbit-exploit) | 2 | Crafted BDB wallet generator (MIGRATE-001) and snapshot abort call-chain proof |
2. What held
Reporting the defenses first, because in a hardened full-node client the controls that hold define the real risk envelope far more accurately than an unverified list of static-analysis leads.
- Unauthenticated P2P DoS defenses held across all six hypotheses. Headers sync uses bounded commitments with no retry loop (
S1); orphanage caps each peer at 404 KB with global eviction (S3); peer-reachable assertions sit behind validation guards (S4);txrequestcaps peers at 5,000 announcements and 100 in-flight requests (S6). - Compact block deserialization survived 129 ASAN fuzz cases (`S2`). Fuzzing an ASAN regtest daemon on
sandbox.node-project.exampleacross nine mutation categories (80 random mutations, 10 truncation offsets, 10,000-entry short-txid arrays,uint16boundary indices, oversized varints) triggered zero memory errors; every payload exited cleanly viastd::ios_base::failure. - Orphan reconsideration caused zero `cs_main` lock stall (`S5`). Profiling 500 orphan children plus parent broadcast kept RPC latency flat at 36.9–41.7 ms vs a 43.8 ms baseline (0.8x–1.0x).
- PSBT finalization and consensus isolation held.
finalizepsbtenforced real ECDSA verification (complete: false), and zero references totxgraphexist in block validation, ruling out consensus divergence via mempool graph state. - Relative traversal, key isolation, and dependency pinning held.
../../../,./, and mid-path..were rejected by lexical normalization. Wallet encryption (PBKDF2 + AES-256-CTR), BIP-324 v2 length bounds, PSBT private-key exclusion, and HTTPS + pinned SHA256 fetches (builds.node-project.example) all checked out.
The refutations: two high-severity source findings that did not survive live testing
Two findings that exited the white-box source audit rated High collapsed — one completely, one partially — when executed against a compiled daemon on sandbox.node-project.example.
1. Fee-bumping negative `old_fee` BIP-125 bypass — Refuted completely. Source review flagged old_fee = input_value - output_value, hypothesizing that user-supplied replacement outputs larger than input value would drive old_fee negative and undercut BIP-125 Rule 3. Six live regtest attempts disproved it: output_value sums the original transaction's outputs (wtx.tx->vout), never user-supplied outputs, so old_fee is always non-negative for any valid transaction. CheckFeeRate and CreateTransaction enforced proper fee floors on all six attempts. The finding was retracted.
2. PSBT finalization invalid-signature bypass — Partially refuted. Source review hypothesized that FinalizeAndExtractPSBT used a dummy checker and would extract an invalid transaction. Live testing proved FinalizePSBT passes &txdata and executes real ECDSA verification (complete: false). Only the separate fee-estimation loop inside analyzepsbt passed nullptr, narrowing a high extraction bypass into a medium fee-estimation defect (Finding 3.6).
3. The findings that mattered
How the codebase and test node were mapped
3.1 Infinite-loop denial of service in legacy wallet migrationHigh
In plain terms. To migrate legacy Berkeley DB wallets into SQLite without linking the legacy library, the client includes a standalone read-only BDB parser. When traversing overflow pages, its while loop follows next_page pointers with no cycle detection. A crafted wallet whose overflow pages point back to each other with zero bytes per page locks an RPC worker thread at 100% CPU forever.
What. A reproducible infinite loop (CWE-835, CWE-400) in legacy wallet-migration overflow traversal. A single authenticated wallet-migration RPC call against a crafted 286,720-byte (70-page) wallet file pinned one of the daemon's 16 HTTP worker threads at 99.9%–100% CPU with flat memory (~55 MB RSS) until killed with kill -9.
How we found it. Source inspection flagged the unbounded while (next_page != 0) loop. Live testing proved a crucial nuance: an initial crafted wallet using hf_offset=1 (1 byte appended per page) tripped the data.size() > item_len guard in under a second. Regenerating the file with a Page 4 ↔ Page 5 cycle and hf_offset=0 appended zero bytes per iteration so the size check never fired. Two independent live runs confirmed the worker thread spun indefinitely even after the RPC client timed out; 16 concurrent calls would saturate the full HTTP worker pool.
Root cause. Missing visited-page cycle detection or iteration ceiling in overflow-page traversal, paired with a size guard that assumes every overflow page contributes non-zero bytes.
Impact. Permanent single-core CPU exhaustion per call and full RPC starvation at 16 concurrent calls. Requires authenticated RPC access and a crafted wallet file on disk; unreachable over P2P.
Fix. Track visited page numbers in a set and throw on any revisit, cap iterations by total page count, and reject hf_offset == 0 on non-terminal overflow pages.
3.2 Wallet-restore path traversal via absolute path bypassHigh
In plain terms. The wallet-restore RPC rejects wallet names starting with . or .. or containing unnormalized relative segments, but never rejects absolute filesystem paths. In C++, joining a base directory with an absolute path discards the base completely — so passing /tmp/<redacted> writes and loads a wallet outside the wallet directory. Separately, the source backup_file argument lacks any path restriction, creating an arbitrary file-read and existence oracle.
What. Live-proven arbitrary-location wallet file write and load via absolute path in wallet_name, plus arbitrary file copy and existence oracle via backup_file (CWE-22, CWE-23). Upgraded from Medium to High after live testing uncovered the absolute-path bypass.
How we found it. Live tests confirmed ../../../tmp/<redacted>, ./<redacted>, and a/../../../tmp/<redacted> were all blocked by lexically_normal() and prefix checks. Supplying an absolute path ("/tmp/<redacted>") passed every check because an absolute path is already normalized and begins with /. Inside the path-join helper (AbsPathJoin), base / path discarded base, writing wallet.dat and its journal to /tmp/<redacted>/ and registering the external path in loaded wallets (verified twice). Passing /etc/passwd and /etc/shadow as backup_file confirmed the daemon read and copied each file before database verification failed, exposing an existence oracle ("Data is not in recognized format" vs "Backup file does not exist").
Root cause. Unsanitized std::filesystem::path::operator/ in AbsPathJoin, missing is_absolute() rejection in wallet-path validation, and zero confinement on backup_file.
Impact. An authenticated RPC caller can write and load wallet files in any directory writable by the daemon user and probe local file existence/readability. Does not directly grant code execution.
Fix. Reject is_absolute() in wallet-name validation, assert post-join canonical containment inside the wallet directory, and restrict allowed source paths for backup restoration.
3.3 Persistent startup crash loop after UTXO snapshot WAL truncationHigh
In plain terms. Loading a UTXO snapshot creates a snapshot chainstate directory anchored by a 32-byte base_blockhash file. If that snapshot database's write-ahead log (WAL) is truncated before restart, LevelDB opens without error and the daemon aborts on a hard assertion inside Chainstate::ReachedTarget(). Because the anchor file persists across restarts, the daemon crash-loops identically until an operator manually deletes the snapshot directory.
What. A deterministic SIGABRT startup crash loop (CWE-754, CWE-617), reproduced 3 of 3 consecutive restarts with identical assertion output, reported with four explicit caveats.
How we found it. Source analysis hypothesized a path from loadtxoutset through a random temporary best-block hash to std::abort() in the coins-view wrapper. Live regtest reproduction on sandbox.node-project.example revealed the real behavior and its prerequisites:
- Three snapshot guards were patched in
validation.cpp(work comparisons and invalid-block check) to load a locally mined snapshot; an unmodified binary rejects untrusted or lower-work snapshots first. - Regtest chain parameters were patched to match the locally mined snapshot's serialized UTXO hash.
- Actual crash site differed: truncating the snapshot LevelDB WAL to 3 bytes passed
Open()and hitassert()inChainstate::ReachedTarget(), notstd::abort()inExecuteBackedWrapper. - Other corruptions exited cleanly: overwriting
CURRENT/MANIFESTor corrupting.ldbfiles caused graceful shutdowns rather than aborts.
Root cause. Missing WAL integrity verification on snapshot startup, an unhandled reachability assertion on ancestor mismatch, and a persistent base_blockhash anchor ignored by standard -reindex.
Impact. Persistent node unavailability once a loaded snapshot's WAL is truncated (via storage fault or local disk write). Not reachable remotely or on an unmodified binary via RPC alone.
Fix. Replace the reachability assertion with graceful startup error handling, verify WAL integrity on snapshot open, and auto-clean or fall back to full validation when a snapshot directory fails startup.
3.4 MuSig2 secret-nonce retention on early-return pathsHigh
In plain terms. Reusing a Schnorr/MuSig2 secret nonce across two messages exposes the private key by simple modular arithmetic. The underlying curve library defends against this by unconditionally zeroing the secret nonce inside partial_sign. The node client's C++ wrapper, however, has six early-return error paths before calling the library — none of which invalidate the secret nonce or erase it from the wallet's in-memory map.
What. A source-confirmed wrapper hygiene defect (CWE-323) paired with a standalone mathematical nonce-reuse key-recovery proof (d = (s1 - s2) / (e1 - e2) mod n). Not reproduced end-to-end against a running node daemon.
How we found it. Source audit of CreateMuSig2PartialSig identified six early returns before the library call (pubnonce count mismatch, missing participant pubnonce, wrong size, parse failure, aggregation failure, and processing failure). All six return std::nullopt without calling secnonce.Invalidate(), leaving the entry live in m_musig2_secnonces (which has no failure-path erase logic). Honest bound: because secp256k1_musig_partial_sign unconditionally zeroes the struct before signing, an early-return emits zero signatures and a single subsequent successful call destroys the nonce at the library level. Reaching two-signature key recovery therefore requires an additional trigger such as a concurrent signing race or session-state bug.
Impact. Defense-in-depth failure in a zero-fuzz-coverage cryptographic wrapper; full private-key loss if combined with retry or concurrency defects.
Fix. Use RAII invalidation on the secret-nonce wrapper so every exit path zeroes and invalidates it, and erase map entries on both success and failure.
3.5 External signer PSBT and descriptor trust-boundary gapsHigh
In plain terms. When signing via an external hardware-wallet bridge, the node sends an unsigned PSBT over stdin and replaces its entire PSBT with whatever the signer returns (psbtx = *signer_psbtx) — with zero verification that inputs, recipients, amounts, or fees still match user intent. At wallet creation, the node also persists signer-returned descriptors after checking only syntax and output type, allowing attacker-controlled receive addresses to survive even after swapping to a clean signer.
What. Five source-confirmed integrity gaps (ES-01–ES-05, CWE-345) covering output substitution, fee inflation via change reduction, input/prevout substitution using signer-supplied witness_utxo, absence of post-signing verification across RPC and GUI broadcast paths, and persistent descriptor poisoning — plus operational hardening issues (ES-06–ES-10). No live regtest stub-signer PoC was executed.
The threat-model downgrade (Critical → High). Triage downgraded these findings from Critical after a reality check: (1) external-signer wallets hold no private keys inside the node, so this is transaction manipulation rather than node key extraction; (2) maintainers generally treat a compromised signer binary as already inside key custody unless a live regtest proof shows a UI/approval mismatch (the wallet UI displays intent A while silently broadcasting B, or an honest device screen shows A while a compromised host bridge substitutes B). ES-05 (persistent descriptor injection in wallet.dat) is the strongest boundary argument because poisoned addresses outlive removing the malicious signer.
Impact. Silent fund redirection, fee inflation, UTXO hijacking, or persistent receive-address takeover if the host-side signer bridge is compromised.
Fix. Compare returned PSBT version, locktime, input prevouts/sequences, and output scripts/amounts against the pre-signing transaction before finalizing or broadcasting. Bind creation-time descriptors to the enumerated signer fingerprint, and add subprocess timeouts and stdout size bounds (ES-07, ES-08).
3.6 PSBT fee estimation trusts cryptographically invalid signaturesMedium
In plain terms. The PSBT analysis RPC estimates final transaction size and feerate by calling the PSBT signing helper with txdata=nullptr, which selects a dummy checker that accepts any non-empty byte string. Injecting a 9-byte DER-valid invalid signature (R=1, S=1) tricked analyzepsbt into treating the input as signed, cutting estimated_vsize from 110 to 94 vB (-16 vB) and inflating estimated_feerate by 17%.
What. Live-proven improper signature verification in AnalyzePSBT's fee-estimation loop (CWE-347). finalizepsbt rejected the same PSBT (complete: false), blocking extraction or broadcast.
| Metric | Unsigned control | With invalid 9-byte sig | Delta |
|---|---|---|---|
estimated_vsize | 110 vB | 94 vB | -16 vB |
estimated_feerate | 0.00090909 | 0.00106382 | +17% |
missing.signatures | Present | Absent | Accepted by dummy checker |
next role | signer | updater | Misleading workflow state |
finalizepsbt complete | N/A | false | Correctly rejected |
Root cause. Passing txdata=nullptr in AnalyzePSBT's fee loop activates DUMMY_CHECKER (sig.size() != 0), unlike FinalizePSBT which passes &txdata for real ECDSA verification.
Impact. Wallets or automation relying on analyzepsbt estimates can underpay fees by ~16 vB per affected input, risking stuck transactions.
Fix. Pass non-null &txdata to SignPSBTInput in AnalyzePSBT's fee-estimation loop.
Also confirmed and secondary tracks
| Finding / Track | Severity / Type | Verification | Content |
|---|---|---|---|
Pinned ZeroMQ 4.3.5 dependency (SUPPLY-002) | Medium (CWE-122) | Manifest + CVE ref | Build manifest (builds.node-project.example) pins a version affected by a published heap buffer overflow CVE when optional ZMQ endpoints are exposed |
External signer hang & unbounded stdout (ES-07, ES-08) | Medium (CWE-400) | Source-only | No subprocess timeout while holding cs_wallet; stdout buffer grows 1.5x with no cap before PSBT size limits run |
SQLite wallet DB instr() over-deletion (WALLET-DB-001) | High (candidate) | Source-only | Null-byte prefix matching during key deletion risks over-deleting records; not tested live |
| P2P relay amplification factors (Track A) | Informational | Source + math | GETDATA block serving (~2,200×), compact block fan-out (~1,500×), and INV→TX (~333×) documented as expected protocol design |
| P2P eclipse resilience modeling (Workstream 2) | Defensive research | 30 papers + arch | A decade of peer-table mitigations sharply raised eclipse cost, yet 14 residual gaps remain: opt-in ASMap off by default, AS-level transit asymmetry, Tor diversity gap, unmerged Erlay, 80% partial-eclipse leverage, and cloud-ASN concentration |
4. Kill chain summary
| Chain | Verification level | Reached | Terminated at | Key caveat |
|---|---|---|---|---|
Legacy BDB migration DoS (MIGRATE-001) | Live-proven (unmodified) | Stage 4 (availability) | 1 of 16 HTTP threads locked | Requires RPC auth + crafted file on disk |
Wallet restore traversal (WALLET-RPC-001) | Live-proven (unmodified) | Stage 5 (write + oracle) | No code execution | Requires RPC auth; .. blocked, absolute bypasses |
PSBT fee-estimation skew (PSBT-002a) | Live-proven (partial) | Stage 4 (fee integrity) | finalizepsbt rejects sig | Misleading estimate only; no broadcast |
Snapshot WAL crash loop (CHAIN-F) | Live-proven (caveated) | Stage 4 (3/3 abort) | Manual snapshot dir delete | Patched 3 guards + chainparams + local WAL trunc |
MuSig2 nonce retention (MUSIG-001) | Source + math PoC | Stage 2 (wrapper gap) | Library zeroes on sign | No e2e daemon exploit; needs second trigger |
External signer substitution (ES-01–ES-05) | Source-only | Stage 2 (trust gap) | Downgraded Critical → High | No live shim; signer already holds key custody |
ZeroMQ dependency (SUPPLY-002) | Manifest + CVE ref | Stage 1 (inventory) | Not exploited live | Applies only if optional ZMQ publisher exposed |
Fee-bumping RBF bypass (coin-arith-F4) | Refuted live | Stage 3 (6 attempts) | old_fee uses original tx | Retracted |
Unauthenticated P2P DDoS (S1–S6) | Negative (ASAN + profile) | Stage 1–3 (129 + 500) | Bounds checks, caps | Zero unauthenticated P2P bugs found |
5. What the shape of this engagement teaches
Live verification changes an audit in both directions — and both matter equally. Static reading flagged restorewallet on the wrong primitive (.., blocked) and missed absolute paths, while live testing simultaneously killed a high RBF finding and cut a high PSBT lead down to medium.
Trust-boundary framing decides whether a finding is actionable or noise. Calling a compromised external hardware signer a "critical remote zero-day" fails because the signer already holds key custody. Framing the defect honestly — missing post-signing binding (ES-01–ES-04) and persistent descriptor poisoning that outlives swapping signers (ES-05) — turns an overclaim into an engineering decision.
Library-level cryptographic safety never excuses wrapper-level sloppiness. libsecp256k1 unconditionally zeroes secret nonces inside partial_sign, preventing the MuSig2 early-return bug from being a one-shot exploit, but RAII invalidation still belongs at the C++ wrapper boundary.
Negative results on the P2P perimeter are high-signal evidence. Fuzzing 129 malformed compact blocks under ASAN and profiling 500 live orphans — then reporting zero unauthenticated P2P bugs — shows where defenses truly hold and where risk concentrates (RPC, wallet parsers, and default-off ASMap).
If you patched guards to reach a crash, put that caveat in the headline. CHAIN-F proved a real startup assertion loop on WAL truncation, and base_blockhash persistence warrants a fix, but hiding three patched guards would misrepresent a hardening bug as an unmodified exploit.
Recommended sequence
| Priority | Action | Why first | Effort |
|---|---|---|---|
| 1 | Enforce RAII invalidation and map erasure on all exit paths in CreateMuSig2PartialSig (MUSIG-001) | Closes defense-in-depth key-recovery gap in zero-fuzz crypto wrapper | Low |
| 1 | Add visited-page cycle detection and zero-length guard to BDB overflow traversal (MIGRATE-001) | Closes clean, reproducible permanent worker-thread CPU infinite loop | Very low |
| 1 | Reject absolute paths in wallet-name validation and verify containment in AbsPathJoin (WALLET-RPC-001) | Closes live-proven arbitrary-directory wallet write and load bypass | Low |
| 2 | Restrict or validate backup_file paths in wallet restore (WALLET-RPC-001) | Closes arbitrary local file-copy and existence oracle via RPC | Low |
| 2 | Pass non-null &txdata in AnalyzePSBT fee estimation (PSBT-002a) | Rejects invalid partial signatures during vsize/feerate estimation | Very low |
| 2 | Add post-signing PSBT equality checks and creation-time descriptor fingerprint validation (ES-01–ES-05) | Hardens external signer boundary against substitution and descriptor poisoning | Medium |
| 3 | Replace snapshot startup reachability assert() with graceful error handling and auto-cleanup (CHAIN-F) | Eliminates persistent crash loops on snapshot WAL truncation | Medium |
| 3 | Bump pinned ZeroMQ dependency from 4.3.5 to ≥ 4.3.6 (SUPPLY-002) | Removes published heap buffer overflow CVE from build manifest | Very low |
| 4 | Add subprocess timeouts and bounded stdout reads to external-signer IPC (ES-07, ES-08) | Prevents wallet-lock deadlocks and unbounded memory growth | Low |
| 4 | Evaluate default-on ASMap distribution and Erlay integration (Workstream 2) | Closes top structural residual eclipse gaps for clearnet nodes | Decision / High |
Notices
Authorization
This was an authorized security assessment conducted under an explicit engagement scope. Source analysis targeted repo.node-project.example, and all dynamic builds, PoCs, ASAN fuzzing, and runtime profiling ran exclusively in isolated regtest mode on sandbox.node-project.example. Neither node-project.example nor any mainnet, testnet, or third-party peer was targeted. Workstream 2 was strictly defensive threat modeling; no operational eclipse infrastructure was deployed.
Redaction
Every project name, repository URL, hostname, IP address, server credential, commit hash, release version, local filesystem path, regtest address, transaction ID, and calendar date has been removed or replaced with a placeholder.
What was removed:
- Project brand, repository URL, daemon/CLI binary names, and disclosure email address
- Specific commit hashes, version strings, pull-request numbers, and exact file-line commit pins
- Test server IP, hostname, hosting provider, and SSH credentials
- Workspace identifiers, local paths, and session UUIDs
- Regtest block hashes, transaction IDs, addresses, and local cryptographic test vectors
- Maintainer, contributor, and academic author names; exact calendar dates and timestamps
What was kept, deliberately: vulnerability classes and CWE identifiers (CWE-835, CWE-400, CWE-22, CWE-23, CWE-347, CWE-754, CWE-617, CWE-323, CWE-345, CWE-122), generic protocol and data-structure terminology (UTXO, PSBT, P2P, RPC, mempool, BIP-125 RBF, MuSig2, Schnorr, ECDSA, DER, LevelDB WAL, Berkeley DB, ZeroMQ, compact blocks, ASMap, ASAN, regtest), exact verification outcomes, and the full refutation and caveat records.
Placeholders used throughout:
| Placeholder | Meaning |
|---|---|
node-project.example | Reference full-node project web estate (not actively exploited) |
repo.node-project.example | Full-node C++ source repository audited across 9 rounds |
sandbox.node-project.example | Isolated user-provisioned regtest and ASAN verification server |
builds.node-project.example | Dependency and build-manifest surface |
<redacted> | Any specific path, identifier, address, hash, or credential |
Data handling
No third-party user data, mainnet wallet material, or production private keys were accessed. All regtest wallets, coins, and crafted database files were generated synthetically on sandbox.node-project.example and reset after verification.
Disclaimer
Findings reflect the audited source snapshot and isolated regtest builds during the engagement window; no assertion is made that any condition persists in current releases.
Verification boundaries are stated explicitly throughout. coin-arith-F4 is reported as refuted after six live attempts; PSBT-002 is partial because finalizepsbt rejected the invalid signature; CHAIN-F is live-proven with caveats because three guards and chain parameters were patched to reach the WAL truncation abort; MUSIG-001 is source-confirmed with a mathematical PoC rather than an end-to-end daemon key recovery; and ES-01–ES-05 are source-confirmed and threat-model dependent pending a live stub-signer UI-mismatch test. Negative P2P DDoS results mean zero bugs were found by the audited methods and fuzz corpus, not a formal proof that none exist.
Methodology and tooling by BlackBit. Source hypotheses filtered through live regtest and AddressSanitizer verification; refutations, caveats, and trust-boundary limits documented alongside confirmed findings. Published with authorization.
More in Web3
- Cross-Chain Intent Bridge and Relayer Protocol
- Crypto Fundamentals and On-Chain Analytics Platform
- Cryptocurrency Market Data Aggregator and Price-Tracking Platform
- Simulated Crypto Trading and Market Competition Platform
- Decentralised Asset Management and DAO Governance Protocol
- Decentralised AI Infrastructure and Web3 Agent Platform
- View all 33 Web3 case studies