statechain: sys.timekeepers value validation skips hex and duplicate checks its sibling sys-keys enforce
Report
Repo: xeprotocol/xe @ 89a542e (statechain/kvstore.go, validateSysKeyValue)
What happens: the sys.timekeepers case (~lines 93-112) only checks that each key is 64 characters long. It does no hex.DecodeString validity check and no duplicate rejection — unlike every sibling sys-key validated in the same function:
- sys.dao_keyset (~71-95): hex decode + seen[k] duplicate rejection + threshold >= MinDAOThreshold (2)
- sys.minter (~118-141): hex decode + duplicate rejection
- sys.oracle (~157-186): hex decode + duplicate rejection
- sys.representatives (~205-232): hex decode + duplicate rejection
So a DAO-enacted timekeepers config can contain non-hex junk keys, or the same key repeated, and still pass validation. Junk keys inflate len(keys), which bounds the threshold (1 <= threshold <= len(keys)), so the config can advertise a threshold the real signer set can never reach.
What I expected: the same hex + duplicate checks its siblings apply, so the configured key set is exactly the real signer set.
Impact (limited — filing as Minor): the counting layer compensates at HEAD. core/attestation.go ValidateAttestations (lines 63-101) builds trusted as a map and dedupes by signer (seen[a.PublicKey]), so duplicate config keys cannot multiply one signer's weight, and a non-hex key can never produce a valid attestation. The residual harm is a governance liveness footgun: a threshold that can never be met would permanently block the timekeeper attestations that lease accept/settle/force-settle/renew require. Precondition is a DAO-enacted config — no unprivileged attacker path.
Fix: add hex.DecodeString + seen[k] duplicate rejection to the sys.timekeepers loop, matching sys.dao_keyset / sys.minter / sys.oracle / sys.representatives.
Duplicate check: full public desk corpus (1,551 tickets) plus desk search ("timekeepers validation", "timekeeper config hex") — no ticket covers this validator gap. Caveat: XE-0003's title (2026-10-18, older commit) names a "sys.timekeepers Key Hex/Deduplication Bypass" — the desk may treat this as the known remainder of XE-0003, whose practical fix landed in the counting layer instead of the validator. Filed as Minor with that caveat stated.
Thread
Thanks. This is the same finding as https://bounty.xe.network/XE-0003, 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-9523 and says what differs; it is read like any other.