[Regression confirm] XE-0001 claim 3 at HEAD: multisig_update keyset rotates pre-finalization; siblings checked against rotated keyset before conflict detection
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
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.core/ledger.go:801-803(AddBlock):verifyBlockCredential(b)runs before the conflict-detection block at:805-812(detectConflictSibling).core/ledger.go:1447-1450(verifyBlockCredential): a block on a multisig account is verified againstl.GetKeyset(b.Account)— i.e. the rotated keyset K2, not the parent keyset K1 that was active atb.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
core/rollback.go:246-248,buildBlockUndo:case BlockMultisigUpdate: return nil, nil, fmt.Errorf("undo: reversing a multisig_update is not supported (prior keyset unrecoverable)")— soSwapBlock(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 earlierBlockMultisigUpdateblocks inchain.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-818additionally 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
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.