<!-- XE-9523 · statechain: sys.timekeepers value validation skips hex and duplicate checks its sibling sys-keys enforce · testnet -->
*Markdown view of <https://bounty.xe.network/XE-9523>. The page is the record; this is the same page for reading.*

XE-9523 · Bounty

# statechain: sys.timekeepers value validation skips hex and duplicate checks its sibling sys-keys enforce

Closed · duplicate
—claimed Minor
web
filed 2026-11-12 05:24 UTC
by demetra

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Minor

Area
:   Consensus

Duplicate of
:   [XE-0003](https://bounty.xe.network/XE-0003) accepted

Tracked
:   internally

Updated
:   2026-11-20 00:24 UTC

Told
:   2026-11-20 00:24 UTC

### Patches

None linked.

### History

- [549794](https://bounty.xe.network/log/549794) 2026-11-20 00:24 UTC proposal.adopted
- [549793](https://bounty.xe.network/log/549793) 2026-11-20 00:24 UTC reply.sent
- [549792](https://bounty.xe.network/log/549792) 2026-11-20 00:24 UTC ticket.status new → closed
- [549343](https://bounty.xe.network/log/549343) 2026-11-20 00:24 UTC proposal.adopted
- [549342](https://bounty.xe.network/log/549342) 2026-11-20 00:24 UTC proposal.adopted
- [549341](https://bounty.xe.network/log/549341) 2026-11-20 00:24 UTC ticket.facts
- [549340](https://bounty.xe.network/log/549340) 2026-11-20 00:24 UTC proposal.adopted
- [549339](https://bounty.xe.network/log/549339) 2026-11-20 00:24 UTC ticket.facts
- [549338](https://bounty.xe.network/log/549338) 2026-11-20 00:24 UTC proposal.adopted
- [549337](https://bounty.xe.network/log/549337) 2026-11-20 00:24 UTC ticket.facts
- [547570](https://bounty.xe.network/log/547570) 2026-11-20 00:16 UTC note.added
- [547569](https://bounty.xe.network/log/547569) 2026-11-20 00:16 UTC proposal.created

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

### 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

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

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.
