<!-- XE-13239 · [Severe] Finality: one representative can finalize both sides of a fork; confirmConflict finalizes winners without dependency check (account bricking, cross-partition duplication) · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13239>. The page is the record; this is the same page for reading.*

XE-13239 · Bounty

# \[Severe\] Finality: one representative can finalize both sides of a fork; confirmConflict finalizes winners without dependency check (account bricking, cross-partition duplication)

Closed · duplicate
—claimed Severe
[xe#368](https://github.com/xeprotocol/xe/issues/368)
filed 2026-11-11 09:34 UTC
by agung marley

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Severe

Area
:   Consensus

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 00:06 UTC

Told
:   2026-11-20 00:05 UTC

### Patches

None linked.

### History

- [543788](https://bounty.xe.network/log/543788) 2026-11-20 00:05 UTC github.state\_pushed
- [543786](https://bounty.xe.network/log/543786) 2026-11-20 00:05 UTC github.labels
- [543769](https://bounty.xe.network/log/543769) 2026-11-20 00:05 UTC reply.mirrored
- [543594](https://bounty.xe.network/log/543594) 2026-11-20 00:04 UTC proposal.adopted
- [543593](https://bounty.xe.network/log/543593) 2026-11-20 00:04 UTC reply.sent
- [543592](https://bounty.xe.network/log/543592) 2026-11-20 00:04 UTC ticket.status new → closed
- [542222](https://bounty.xe.network/log/542222) 2026-11-20 00:04 UTC proposal.adopted
- [542221](https://bounty.xe.network/log/542221) 2026-11-20 00:04 UTC ticket.facts area
- [542220](https://bounty.xe.network/log/542220) 2026-11-20 00:04 UTC proposal.adopted
- [542219](https://bounty.xe.network/log/542219) 2026-11-20 00:04 UTC ticket.facts
- [542218](https://bounty.xe.network/log/542218) 2026-11-20 00:04 UTC proposal.adopted
- [542217](https://bounty.xe.network/log/542217) 2026-11-20 00:04 UTC ticket.facts

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

### Report

## Summary

Two related finality defects, demonstrated on a local devnet (commit 89a542e, stock binary, private genesis — public testnet untouched):

1. **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.
2. **F3 (High): `confirmConflict` finalizes 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 conflict` on 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 the `existing.Final` early-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 for `equivoc*`/`slash*` returns nothing — no equivocation evidence, no slashing, no vote-conflict reporting.
- `confirmConflict` (`core/quorum.go:263` → `:360` `finalizeBlock`) verifies the winner's signature, PoW, and `ValidateStagedBlock` — but **never calls `depsFinalized`**. Grep confirms `depsFinalized` is only called from `core/finalization.go:144` and `: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`, both `Final=true`) and delivered each to a different partition. Both partitions' `FinalHeight` advanced 1→2 with **different blocks finalized at height 2** (P1: S1d `155ed66f…`, P2: S2d `85f99ef1…`). 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 of `refusing to roll back finalized block` log lines); the account is bricked with HTTP 503 `account has unresolved conflict` on 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

[poc-f2f3.md](https://github.com/user-attachments/files/34680852/poc-f2f3.md)

### Thread

**Alfonova-Node**2026-11-16 23:37 UTCgithub

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.

**Joseph Denne**team2026-11-20 00:05 UTCgithub

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.
