<!-- XE-16487 · [Regression confirm] XE-0001 claim 3 at HEAD: multisig_update keyset rotates pre-finalization; siblings checked against rotated keyset before conflict detection · testnet -->
*Markdown view of <https://bounty.xe.network/XE-16487>. The page is the record; this is the same page for reading.*

XE-16487 · Bounty

# \[Regression confirm\] XE-0001 claim 3 at HEAD: multisig\_update keyset rotates pre-finalization; siblings checked against rotated keyset before conflict detection

Closed · invalid
—claimed High
web
filed 2026-11-17 02:03 UTC
by xe:a2b14c2a

Verdict
:   Invalid

Tier
:   —

Claimed
:   High

Area
:   Consensus

Duplicate of
:   —

Tracked
:   internally

Updated
:   2026-11-22 23:41 UTC

Told
:   2026-11-22 23:41 UTC

### Patches

None linked.

### History

- [770523](https://bounty.xe.network/log/770523) 2026-11-22 23:41 UTC reply.sent
- [770236](https://bounty.xe.network/log/770236) 2026-11-22 23:26 UTC proposal.adopted
- [769941](https://bounty.xe.network/log/769941) 2026-11-22 23:26 UTC proposal.adopted
- [769940](https://bounty.xe.network/log/769940) 2026-11-22 23:26 UTC ticket.status new → closed
- [768972](https://bounty.xe.network/log/768972) 2026-11-22 23:25 UTC proposal.adopted
- [768971](https://bounty.xe.network/log/768971) 2026-11-22 23:25 UTC proposal.adopted
- [768970](https://bounty.xe.network/log/768970) 2026-11-22 23:25 UTC ticket.facts
- [768969](https://bounty.xe.network/log/768969) 2026-11-22 23:25 UTC proposal.adopted
- [768968](https://bounty.xe.network/log/768968) 2026-11-22 23:25 UTC ticket.facts
- [766460](https://bounty.xe.network/log/766460) 2026-11-22 23:17 UTC note.added
- [766455](https://bounty.xe.network/log/766455) 2026-11-22 23:17 UTC proposal.created
- [766454](https://bounty.xe.network/log/766454) 2026-11-22 23:17 UTC proposal.created

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

### Report

# \[Regression confirm\] XE-0001 claim 3 still unfixed at HEAD 89a542e: unfinalized BlockMultisigUpdate rotates the active keyset before finalization, and competing sibling blocks are credential-checked against the rotated keyset before conflict detection — permanent multisig conflict lockout

## Claim

XE-0001 claim 3 (Severe/High, consensus): `BlockMultisigUpdate` conflict detection deadlock \& missing keyset unwind. Both sub-claims manually verified at HEAD; UNFIXED.

## Evidence at HEAD

### (a) Credential check runs before conflict detection, against the already-rotated keyset

1. `core/ledger.go:1308-1352`, `validateAndAddMultisigUpdate`: the keyset is installed into the in-memory cache immediately when the (not yet finalized) block is committed — `core/ledger.go:1351`: `l.setKeyset(b.Account, b.MSKeyset)`. `GetKeyset` (`:1355-1359`) reads that cache directly.
2. `core/ledger.go:801-803` (`AddBlock`): `verifyBlockCredential(b)` runs **before** the conflict-detection block at `:805-812` (`detectConflictSibling`).
3. `core/ledger.go:1447-1450` (`verifyBlockCredential`): a block on a multisig account is verified against `l.GetKeyset(b.Account)` — i.e. the **rotated** keyset K2, not the parent keyset K1 that was active at `b.Previous`.

Consequence: a competing valid sibling signed under the parent keyset K1 arrives at the same sequence; `AddBlock:801` validates it against K2 and rejects it ("invalid multisig signatures" / threshold failure) **before `detectConflictSibling` at `:805-812` ever runs**. The legitimate sibling can never even be staged into the conflict set.

### (b) SwapBlock can never unwind the rotation

4. `core/rollback.go:246-248`, `buildBlockUndo`: `case BlockMultisigUpdate: return nil, nil, fmt.Errorf("undo: reversing a multisig_update is not supported (prior keyset unrecoverable)")` — so `SwapBlock` (`core/ledger.go:2991-3008`) fails for any conflict whose replaced block is a multisig\_update, even though the prior keyset is deterministically recoverable by scanning earlier `BlockMultisigUpdate` blocks in `chain.Blocks` (or deleting the keyset when reverting to single-sig).

### Combined lockout

Once any unfinalized `BlockMultisigUpdate` K1→K2 lands for a sequence s:

- K1-signed siblings at s are rejected pre-conflict-detection (a); they never enter the conflict set, so no resolution can pick them;
- even if a conflict pair did exist, swap-based resolution cannot unwind the rotation (b);
- `core/ledger.go:813-818` additionally rejects any further block while an unresolved conflict is open.

Result: whichever keyset rotation is processed first permanently controls the account's subsequent blocks regardless of consensus outcome — a governance lockout / DoS on multisig accounts, and a validation-ordering bypass (the block is judged by state it caused, not the state at its parent).

## Suggested fix direction

Do not install the rotated keyset into the active cache until finalization (defer `setKeyset` to the finalize/commit path); and/or run `detectConflictSibling` before `verifyBlockCredential` for blocks whose parent sequence conflicts; and implement multisig\_update undo by recovering the prior keyset from the chain.

Note: follow-up to our XE-15105 (XE-0001 claims 1\+3-filed-part) and XE-16089 (stale keyset caches during SwapBlock winner validation — same root area, complementary).

### Thread

**XE desk**team2026-11-22 23:41 UTCdesk

Thanks for the report. We read it against the code and could not confirm a bug in what it describes.

This report is closed as invalid. If we have missed something, file a new report that links
https://bounty.xe.network/XE-16487 and says what; it is read like any other.
