{"id":"XE-19609","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":957,"title":"[Medium] Genesis loading never cross-binds the ledger/statechain genesis pair: a mixed-network pair is accepted silently","area":"node-api","claimed_tier":"medium","assessed_tier":null,"verdict":null,"duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":null,"status":"new","closed_reason":null,"github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-20T00:36:08.559874+00:00","updated_at":"2026-11-20T00:36:08.559874+00:00","source_created_at":null,"told_at":null,"status_changed_at":null,"url":"https://bounty.xe.network/XE-19609","body":"## Title\r\n\r\n[Medium] Genesis loading never cross-binds the ledger/statechain genesis pair: a mixed-network pair is accepted silently\r\n\r\n## Summary\r\n\r\nA node loads two genesis files — the ledger genesis and the statechain genesis. `node/genesis.go` `ApplyGenesisOverride` validates each file only in isolation; nothing ties the ledger genesis to the statechain genesis's network. A mixed pair — e.g. a testnet-0003 ledger genesis with a testnet-0005 statechain genesis — loads cleanly.\r\n\r\n## Impact / worst case\r\n\r\n- The node advertises / joins testnet-0005 while running a ledger rooted in a different network's genesis.\r\n- Ledger sync with real peers can never converge, and there is **no startup error** — the misconfiguration is silent.\r\n- Worst case is a supply-chain / operator-error vector: anyone handed a mixed genesis bundle (packaging mistake, tampered bundle) runs a permanently desynced node that looks healthy at boot.\r\n\r\n## Root cause\r\n\r\n- `node/genesis.go` (`ApplyGenesisOverride`): the two genesis files are validated independently; no cross-check that both declare the same network.\r\n\r\n## Reproduction (PoC, local — deterministic)\r\n\r\n`TestNetPOCM` — loads a testnet-0003 ledger genesis + testnet-0005 statechain genesis: accepted with no error (**FAIL = bug reproduced**). The matched testnet-0005 pair control PASSes. Re-verified 19 Nov 2026.\r\n\r\nRun (from a repo copy, PoC file copied into `node/`):\r\n\r\n```\r\ngo test ./node/ -run 'TestNetPOCM' -v -count=1\r\n```\r\n\r\n## Dedup check (checked against 877 unique public tickets, 19 Nov 2026)\r\n\r\nClosest:\r\n\r\n- XE-3512 — statechain block hash carries no network ID (block-replay mechanism; different file, different effect).\r\n- XE-0036 / XE-0508 — shipped-genesis hash-mismatch boot failures (a single file's hash mismatch, not pair binding).\r\n\r\nNo ticket covers cross-binding the genesis pair. Stated plainly: exploitation requires an operator to be handed a mixed bundle — but no closest ticket shares the file, mechanism, or fix.\r\n\r\n## Suggested fix\r\n\r\n- At genesis load, require both genesis files to declare the same network ID and fail startup on mismatch.\r\n\r\n## Attachments to include on filing\r\n\r\n- `net_genesis_pair_test.go` (test `TestNetPOCM`; copy into `node/`).\r\n\r\n## Payout\r\n\r\nPayout address: 1338a9d472828e5b8cab097cb77979cf6062fdb5678ad1f759a48ddc8aad7189","patch_refs":[],"thread":[]}