<!-- XE-0606 · [High chain] Unauthenticated network admission + FIFO ban eviction + sync amplification allow a persistent, unmitigable network split / resync DoS · testnet -->
*Markdown view of <https://bounty.xe.network/XE-0606>. The page is the record; this is the same page for reading.*

XE-0606 · Bounty

# \[High chain\] Unauthenticated network admission \+ FIFO ban eviction \+ sync amplification allow a persistent, unmitigable network split / resync DoS

Closed · duplicate
—claimed High
web
filed 2026-11-05 06:15 UTC
by Gilang buana sultoni

Verdict
:   Duplicate

Tier
:   —

Claimed
:   High

Area
:   P2P / sync

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-14 22:53 UTC

Told
:   2026-11-14 22:53 UTC

### Patches

None linked.

### History

- [209977](https://bounty.xe.network/log/209977) 2026-11-14 22:53 UTC reply.sent
- [44774](https://bounty.xe.network/log/44774) 2026-11-08 20:32 UTC proposal.adopted
- [44773](https://bounty.xe.network/log/44773) 2026-11-08 20:32 UTC ticket.status new → closed
- [26021](https://bounty.xe.network/log/26021) 2026-11-08 10:11 UTC proposal.adopted
- [26020](https://bounty.xe.network/log/26020) 2026-11-08 10:11 UTC proposal.adopted
- [26019](https://bounty.xe.network/log/26019) 2026-11-08 10:11 UTC ticket.facts
- [26018](https://bounty.xe.network/log/26018) 2026-11-08 10:11 UTC proposal.adopted
- [26017](https://bounty.xe.network/log/26017) 2026-11-08 10:11 UTC ticket.facts
- [26016](https://bounty.xe.network/log/26016) 2026-11-08 10:11 UTC proposal.adopted
- [25778](https://bounty.xe.network/log/25778) 2026-11-08 10:09 UTC proposal.created
- [25777](https://bounty.xe.network/log/25777) 2026-11-08 10:09 UTC proposal.created
- [25776](https://bounty.xe.network/log/25776) 2026-11-08 10:09 UTC proposal.created

[Full history](https://bounty.xe.network/log?ref=XE-0606) · [JSON](https://bounty.xe.network/v1/tickets/XE-0606) · [markdown](https://bounty.xe.network/XE-0606.md)

### Report

# 🐞 Bug Report (Bug bounty — XE Protocol)

## Summary

Three mechanisms chain so an attacker can **persistently split the network and force unbounded resync cost**, and no operator action sticks:

1. **Peer admission is unauthenticated** — `net/netcheck.go:356-364`: `network_id` is a self-reported, unauthenticated string; `net/netcheck.go:366` — the genesis-hash comparison fires **only when both sides advertise one**, and the wire field is `genesis_hash,omitempty`. A peer on a junk genesis self-reports the victims' `network_id` and **omits** `genesis_hash` → admitted as "same network, unknown chain start".
2. **Bans are volatile** — `net/banstore.go:129-141`: a 4096-entry FIFO with **no security-class retention** (issue #202; fix PRs #208/#238 not merged at HEAD `02e9641`). At the 32 RPS global netcheck limiter, \~4,096 throwaway peer IDs flush every ban — including 24h wrong-network bans — in **\~2 minutes**.
3. **Sync amplification** — `net/sync.go:556-580`: each response page is **fully decoded before** the 10,000-block cap is consulted (`:571-577`) and the 10 MiB budget **re-arms per page** (`:563`) → \~1-2 GiB RSS spike per page, repeatable (issue #44 / XE-0023, still live at HEAD).

## Steps to Reproduce

1. Boot N attacker nodes on a junk genesis; self-report `network_id: "<victims' id>"`, omit `genesis_hash` → admitted to the honest mesh.
2. Their dirty frontiers trigger dirty-flag/resync machinery; honest nodes pull from them; each sync page decodes in full before any cap → repeated multi-GiB RSS spikes. Small nodes OOM; large nodes burn CPU/bandwidth indefinitely.
3. Operators ban the offenders → bans land in the FIFO table. Attacker mints 4,096 throwaway peer IDs → at \~32 RPS netcheck, **all bans flushed in \~2 minutes** (eviction survives restart via `bans.json`).
4. Because admission is unauthenticated and bans are volatile, steps 1-3 repeat indefinitely — **isolation never sticks, the split persists**.

Live corroboration (all source-verified at HEAD): netcheck omission path, banstore FIFO (no security/floor/retain/protect code exists — grep clean), sync cap ordering.

## Impact

- Persistent **split-brain** across the mesh and unbounded **resync resource exhaustion** (OOM for small nodes).
- No single patch closes it: admission auth, ban retention, and sync decode-cap ordering must land **together** — that interlock is why the chain is worth far more than any single bug (each alone is a Medium with a one-line fix; chained, operators cannot mitigate).
- No direct funds loss → High (mesh-wide, persistent availability/integrity).

## Suggested fix

- Sign netcheck messages: bind `network_id` \+ `genesis_hash` to the peer's long-term key; remove `omitempty` from `genesis_hash` and reject omission.
- Add a non-evictable security-ban class with a retention floor \+ per-IP ban-creation cap (merge/rework #208/#238).
- Enforce the block cap **before** decoding/appending \+ per-session decode budget (fix #44 ordering).

### Thread

**XE desk**team2026-11-14 22:53 UTCdesk

Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the
first verifiable submission, so this one closes as a duplicate. If you believe it is a different
bug, file a new report that links https://bounty.xe.network/XE-0606 and says what differs; it is read like any other.
