[Severe] Finality: one representative can finalize both sides of a fork; confirmConflict finalizes winners without dependency check (account bricking, cross-partition duplication)
Report
Summary
Two related finality defects, demonstrated on a local devnet (commit 89a542e, stock binary, private genesis — public testnet untouched):
- F2 (Severe): no equivocation handling. A single rep holding ≥67% of delegated weight can cast final votes for both sides of a fork on different node subsets. On live testnet-0005 the genesis rep holds ~99.999985% of weight, so finality is effectively 1-of-1 and that one rep can finalize anything unilaterally.
- F3 (High):
confirmConflictfinalizes a conflict winner without checking that its dependencies are finalized. Demonstrated: an attacker final vote finalized receive R1b on all nodes while its source send S1b was still unfinalized. Correction to the naive impact: on a connected network the swap then refuses to roll back the finalized receive, so the conflict becomes permanently unresolvable and the sender account is bricked (account has unresolved conflicton every new block). Across a partition the duplication is real: one partition finalizes the receive, the other finalizes the conflicting send, and after rejoin both finalized histories persist (B finalized +100 XE on P1, C finalized +100 XE on P2, from one 100 XE spend).
Evidence
PutFinalVoteIfAbsent(store/badger_store.go:1533) and theexisting.Finalearly-return (core/vote.go:134-141) keep the first-seen final vote per node. Nothing stops a rep signing a second final vote for the other side and sending it to different peers;ValidateVote(core/vote.go:225) has no "already voted otherwise" check. Repo-wide grep forequivoc*/slash*returns nothing — no equivocation evidence, no slashing, no vote-conflict reporting.confirmConflict(core/quorum.go:263→:360finalizeBlock) verifies the winner's signature, PoW, andValidateStagedBlock— but never callsdepsFinalized. Grep confirmsdepsFinalizedis only called fromcore/finalization.go:144and:280(the voter's own emission path), never on the tally/accept path.
Reproduction (full PoC attached as poc-f2f3.md)
3-node devnet, attacker rep at 69.995% weight (clears the 67% quorum alone), honest reps at 15.005%/15.0%. Honest finalization sanity-checked first (funding chain finalized, spendable == balance).
- F2: attacker rep signed final votes for both sides of the same fork (same
ConflictPrev, bothFinal=true) and delivered each to a different partition. Both partitions'FinalHeightadvanced 1→2 with different blocks finalized at height 2 (P1: S1d155ed66f…, P2: S2d85f99ef1…). After rejoining to a full mesh the split persists. - F3: S1 (send 100 XE A→B), R1 (B receives), S2 (same 100 XE A→C, same
Previous). One attacker final vote finalized R1b on all three nodes (GET /blocks/38699ab1… → finalized=true) while S1b stayed unfinalized. The tally then selected S2b, but the swap cascade refused to roll back the finalized receive (hundreds ofrefusing to roll back finalized blocklog lines); the account is bricked with HTTP 503account has unresolved conflicton every new block. Cross-partition variant (F3b): receive finalized on P1 only, conflicting send finalized on P2 → 200 XE of finalized spendable value from one 100 XE spend, split persists after rejoin.
Fix direction
Equivocation evidence + slashing/exclusion in tally; depsFinalized check in confirmConflict; consider quorum rules that a single rep cannot satisfy alone on the live genesis.
My XE address for any reward: 5422b32c07cf2b2ca53b00c2073be5a895dae3fdf13645c05ebdd1c08864cf8f
— @agngmarley
Thread
Status check at HEAD 89a542e (testnet-0005), finding F3: there is still no depsFinalized check in confirmConflict (core/quorum.go:263-375). The winner there is checked only with VerifyBlock, PoW, and ValidateStagedBlock before SwapBlock + finalization. depsFinalized exists (core/finalization.go:44) but is consulted only when a node emits its own vote (castVoteLocked, core/finalization.go:144) or final vote (emitFinalLocked, core/finalization.go:280) — never when a quorum winner is promoted or finalized. A winner with unfinalized dependencies can still be installed. Requesting F3 stay open until a dependency-finality check is added to the promotion path.
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-13239 and says what differs; it is read like any other.