Sync quarantine poisoning suppresses genuine blocks
Report
Sync quarantine poisoning suppresses genuine blocks
Summary
A bad-signature copy of a real block, served before the victim syncs the
genuine block, gets its hash quarantined — and because block hashes do not
cover the signature, every later genuine copy of that block (identical
hash, valid signature) is dropped by the sync filter before
AddSyncedBlock is ever called, from any peer. The victim's sync of that
block stalls until the quarantine entry is FIFO-evicted or the node
restarts.
Impact
Sync-path suppression / chain-sync stall for the victim node. Worst for historical blocks, which are never re-gossiped: once the genuine copy is filtered, nothing on the sync path retries it. This is suppression only, not integrity — genuine blocks are never altered, only skipped on one path. The gossip path does not consult the quarantine at all, so the suppression is sync-path-only.
Suggested program tier: Medium.
Root cause
net/sync.go:589-597: the sync filter skips any block whose hash is in the quarantine set, and the set is global, not per-peer — the single quarantine object is created once inSetupSync(sync.go:307) and passed to everyrequestSynccall. A poison entry from one peer therefore blocks the genuine block from every peer.net/sync.go:602-620: a non-retryable rejection adds the block hash to the quarantine (quarantine.add(b.Hash)at:613).core/crypto.go:85-98:HashBlockhashesMarshalBlockCanonicalplusMarshalBlockAuxonly. A field scan ofMarshalBlockCanonical(core/encoding.go:43-297) confirms it never writesSignatureorSignatures, so a bad-signature copy and the genuine block share one hash.core/retryable.go: the retryable-error pattern list contains no"signature"entry, so signature failures are non-retryable and land in the quarantine. Observed forms:"signature: signature verification failed"(non-open path) and"verify: signature verification failed"(open-block path) — both non-retryable.- Quarantine size and lifetime, read from the code:
maxQuarantineEntries = 8192(sync.go:245), an in-memory map plus FIFO order list with eviction of the oldest entry (add,:258-275), no persistence. So the stall lasts until 8192 later quarantine additions FIFO-evict the entry, or the node restarts.
Proof of concept
Target: xeprotocol/xe @ 978785929bc17a2f4ab30c383e5fc9cf4d634512
(2026-10-15). Two harnesses, both against the real net/core packages
with real loopback libp2p hosts, a real ledger, and real requestSync;
the repository itself is not modified.
Attached PoCs: pocs/poc-slice6-test.go.txt (original harness) and
pocs/reval-f05-test.go.txt (re-validation harness with the instrumented
skip observation), both byte-identical copies of the runnable sources.
Run (Go 1.25.14):
export PATH="$HOME/.local/go/bin:$PATH"
GOPROXY=off go test -vet=off ./net/ -run 'TestSlice6QuarantinePoison' -v -count=1 -timeout 300s
Observed output (verbatim, re-validation run 2026-10-29):
=== RUN TestSlice6QuarantinePoison
poc_slice6_test.go:108: AddSyncedBlock(bad-sig) error: signature: signature verification failed
poc_slice6_test.go:112: rejection is NON-retryable => requestSync quarantines by hash
poc_slice6_test.go:123: hash identical across different Signature values: 8e2f6ea9efc393baa95ee9fd811a958507e915c61f7c6ff559233a175055a79b
poc_slice6_test.go:130: quarantine.contains(genuine-content hash) == true => later genuine copy skipped by sync filter
time=2026-10-29T03:43:54.420Z level=WARN msg="sync: block 8e2f6ea9efc3... rejected (quarantined): signature: signature verification failed"
poc_slice6_test.go:148: requestSync quarantined bad-sig block hash: 8e2f6ea9efc393baa95ee9fd811a958507e915c61f7c6ff559233a175055a79b
POISON-MECHANISM-OK
--- PASS: TestSlice6QuarantinePoison (0.44s)
Terminal skip, directly observed (re-validation 2026-10-29)
The original report stated the terminal genuine-skip as inferred from
executed preconditions plus the deterministic filter, because the skip
branch is never logged. On re-validation the skip was observed directly:
in a scratch copy of the repository only, one log line was added after
skipped++ in the filter, and the full scenario was run — phase 1
poisons from peer 1, phase 2 serves the genuine-content copy from peer
2. Verbatim log lines:
time=... level=WARN msg="sync: block 7cb8c5379b84... rejected (quarantined): signature: signature verification failed"
time=... level=WARN msg="REVAL-F05-SKIP: sync filter dropped quarantined block 7cb8c5379b8447cae90314c8f5d87b1344e89a9e8c3cad3811c08de42393ec5e"
A second scenario used a credential-valid genuine copy (fresh keypair,
real core.SignBlock, account derived from the pubkey); its control
AddSyncedBlock failed only on state, proving hash, pubkey derivation,
and signature all passed — and it was still dropped by the filter:
time=... level=WARN msg="sync: block 6c27c476432c... rejected (quarantined): verify: signature verification failed"
time=... level=WARN msg="REVAL-F05-SKIP: sync filter dropped quarantined block 6c27c476432ce669879b46f1469321b09a8739219f3f98ca6ec9424685900db8"
Counts across the run: exactly 2 skip lines (one per phase 2) and exactly
2 quarantine-rejection warnings (both phase 1, zero in phase 2) —
proving AddSyncedBlock was never reached for either phase-2 copy, and
that the skip is peer-independent in execution, not just in code
structure.
Reproduction steps
- Attacker serves a same-content, garbage-signature copy of a real block to a syncing victim.
- Victim rejects it (non-retryable) → the block hash is quarantined.
- Victim later syncs the genuine block from any peer → the sync filter
drops it by hash before
AddSyncedBlockis called.
Recommended fix
Quarantine per-peer instead of globally, and/or include the signature in the quarantine key, and/or make signature failures retryable for sync purposes.
Severity
- CVSS 3.1: 5.3 —
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - CWE-840 (Business Logic Errors)
Caveats
- The instrumented skip observation used a 1-line added log statement in a scratch copy of the repository; the filter logic itself was not modified, and the original repository is untouched. The production filter remains unlogged, so in an unmodified node the skip is silent.
- The credential-valid genuine copy in scenario B is not state-applicable
(a send cannot open an account) — it is the strongest genuine copy
constructible without the genesis private key, and it is sufficient
here because the filter reads only
b.Hashand never inspects signatures. - No public prior report of the sync-quarantine poisoning mechanism was found (dedup queries recorded in the audit's DEDUP-BASELINE.md).
- This reproduction runs against the repository code at the stated HEAD. No testnet transactions were sent as part of this report.
Payout address (XE): eff2c51dd8457df740b919226cd9b37a2944e5abea7501094db80234f87f010e
Best, Chaplin
Thread
Thanks for the detailed report. We have confirmed the behaviour and it is being handled; we will update this ticket when there is more to share.