<!-- XE-11805 · One DAO rotation of sys.timekeepers to keys nobody holds halts every lease transition network-wide (no proof-of-possession on rotation) · testnet -->
*Markdown view of <https://bounty.xe.network/XE-11805>. The page is the record; this is the same page for reading.*

XE-11805 · Bounty

# One DAO rotation of sys.timekeepers to keys nobody holds halts every lease transition network-wide (no proof-of-possession on rotation)

Closed · duplicate
—claimed Medium
web
filed 2026-11-13 09:09 UTC
by xe:0a86f125

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Medium

Area
:   Consensus

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 13:00 UTC

Told
:   2026-11-20 13:00 UTC

### Patches

None linked.

### History

- [598463](https://bounty.xe.network/log/598463) 2026-11-20 13:00 UTC proposal.adopted
- [598462](https://bounty.xe.network/log/598462) 2026-11-20 13:00 UTC reply.sent
- [598461](https://bounty.xe.network/log/598461) 2026-11-20 13:00 UTC ticket.status new → closed
- [596053](https://bounty.xe.network/log/596053) 2026-11-20 12:59 UTC proposal.adopted
- [596052](https://bounty.xe.network/log/596052) 2026-11-20 12:59 UTC proposal.adopted
- [596051](https://bounty.xe.network/log/596051) 2026-11-20 12:59 UTC ticket.facts
- [596050](https://bounty.xe.network/log/596050) 2026-11-20 12:59 UTC proposal.adopted
- [596049](https://bounty.xe.network/log/596049) 2026-11-20 12:59 UTC ticket.facts
- [581787](https://bounty.xe.network/log/581787) 2026-11-20 08:51 UTC note.added
- [581782](https://bounty.xe.network/log/581782) 2026-11-20 08:51 UTC proposal.created
- [581781](https://bounty.xe.network/log/581781) 2026-11-20 08:51 UTC proposal.created
- [581780](https://bounty.xe.network/log/581780) 2026-11-20 08:51 UTC proposal.created

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

### Report

## Summary

`validateSysKeyValue` for `sys.timekeepers` (xe/statechain/kvstore.go:96-118) validates key FORMAT only — at least one key, threshold 1..len(keys), 64-hex keys, no duplicates. Nothing proves anyone HOLDS the new keys: no proof-of-possession signatures, no liveness check, and no transition guard (`validateTransition`, kvstore.go:295-324, has no `sys.timekeepers` case at all). A single DAO-signed block can therefore rotate `sys.timekeepers` to keys nobody holds — or raise the threshold above the number of held keys — and the rotation lands cleanly.

Every lease transition in the network validates its timekeeper attestations against the LIVE config: `validateAndAddLeaseAccept` (core/ledger.go:1675), renew (core/lease\_renew.go:52), `validateAndAddLeaseSettle` (core/ledger.go:2156), and `validateAndAddLeaseForceSettle` (core/ledger.go:1929), all through `ValidateAttestations` (core/attestation.go:53), which requires `threshold` valid signatures from keys in the current config. After the rotation, no attestation set anyone can produce satisfies the config, so all four transitions halt network-wide until the DAO rotates back.

## Impact

- No new leases can be accepted; no live lease can be renewed (leases expire unrenewed); no lease can settle (providers are not paid for delivered service); no lease can force-settle (consumers cannot recover escrow through that path). The whole lease economy stops for the duration of the outage.
- Finalized accepted leases have no attestation-free exit. `lease_cancel` works only in `LeaseCreated` state, or over an UNFINALIZED accept (`resolveCancelWinsOverAccept`, core/ledger.go:1749-1776, refuses finalized accepts); so escrow for finalized leases is locked for the outage.
- Leases whose 1-hour settle window \[expiry, expiry\+1h\] (DefaultLeaseSettleGrace, core/ledger.go:149) falls inside the outage can NEVER settle normally again — settle past grace is rejected (ledger.go:2166-2171). Their only later path is force-settle, which refunds the consumer's escrow but pays the provider nothing for the service delivered and records an EventLeaseUnfulfilled reputation hit against the provider for an outage that was not its fault.
- Leases crossing the 365-day escrow expiry (DefaultLeaseEscrowExpiry, ledger.go:151) during an outage lose their refund window permanently (ledger.go:1940-1942).

Bounds, stated honestly: the halt itself is REVERSIBLE — the DAO can rotate back to held keys (proven below), unlike XE-1705's irreversible DAO-keyset deadlock. The trigger is a DAO-signed rotation (error or compromise), not an outside attacker. Live `sys.timekeepers` is 3 keys / threshold 2 and presumably held, so this is forward-looking: one bad rotation away.

## Proof (in-repo, HEAD xe @ 89a542e)

1. Admission: a DAO-signed block setting `sys.timekeepers` to 3 freshly generated pubkeys whose private keys were immediately discarded (threshold 2, well under MaxAttestationsPerBlock\=20) LANDS via `Chain.AddBlock`; the live KV then names the unheld keys. A rotation back to the held keys also lands. (statechain test: TestR21TimekeeperRotationToUnheldKeysLands, -count\=3 PASS.)
2. Halt: using the R12 lease\_accept scenario harness, the V1 control ledger accepts a V1-attested lease\_accept; the IDENTICAL block under the unheld config is rejected: `lease_accept attestation: only 0 valid attestations from trusted timekeepers, need 2`. Direct `ValidateAttestations` checks confirm no producible attestation set satisfies the unheld config (old-key attestations count 0 valid; empty set fails the threshold). The same `ValidateAttestations` gate stands in front of renew, settle, and force-settle, so all four halt together. (core test: TestR21UnheldTimekeeperConfigFreezesLeaseAccept, -count\=3 PASS; full statechain \+ core suites green.)

## Why this is not a duplicate

- XE-8779 (Medium): `sys.timekeepers` admits threshold 21 with 21 distinct keys, but MaxAttestationsPerBlock (20) makes it unmeetable. That is a NUMERIC bound. Its fix ("threshold ≤ 20") does NOT close this finding: a 2-of-3 keyset of unheld keys passes the cap. Different root cause (missing bound vs missing proof-of-possession), different fix; the two fixes are independent in both directions.
- XE-1705 (awarded): keyset rotation to keys no seat holds deadlocks DAO GOVERNANCE — irreversibly, because the DAO itself can no longer reach threshold to fix it. Different keyset (`sys.dao_keyset` vs `sys.timekeepers`), different consequence (governance deadlock vs lease-economy halt \+ escrow lock), different affected parties (the DAO itself vs every lease user), and this one is reversible by the DAO. The shared shape ("rotation without proof-of-possession") is a class, not a single bug: the program already carries per-keyset instances of shared validation-gap shapes as separate tickets (XE-2429 oracle vs XE-5794 timekeeper mixed-case duplicate keys).
- XE-9915: threshold above the 20-attestation cap (same class as XE-8779, not this mechanism). XE-6430: negative-threshold panic / quorum reduced to 1-of-N (different mechanism). No ticket on file covers rotation of `sys.timekeepers` to unheld keys (title search: "timekeeper rotation" 0, "unheld" 0).

## Suggested fix

Require proof-of-possession in the rotation itself: a `sys.timekeepers` (and, same gap, `sys.oracle` / `sys.minter` / `sys.dao_keyset`) rotation block must carry a valid signature from each NEW key over the rotation (or over a fixed domain-separated challenge), so a keyset can only name keys whose holders participated. Cheaper alternative: require each new timekeeper key to have produced a valid attestation (or a directory registration) within a recent window before it can enter the keyset. At minimum, the DAO portal should warn when a rotation names keys with no observed attestation history.

## Severity: Medium

One governance write the validator cannot distinguish from a legitimate rotation halts the entire lease economy and locks finalized-lease escrow, with permanent settle-path loss for in-window leases. Reversible and DAO-initiated, so not High — consistent with the governance-write class (XE-10330, XE-8779, XE-11097, all Medium).

### Thread

**Joseph Denne**team2026-11-20 13:00 UTCdesk

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-11805 and says what differs; it is read like any other.
