<!-- XE-0066 · [Statechain Governance] Single oracle key can future-timestamp a block to early-activate and permanently freeze feature activations (no DAO threshold, no timestamp upper bound) · testnet -->
*Markdown view of <https://bounty.xe.network/XE-0066>. The page is the record; this is the same page for reading.*

XE-0066 · Bounty

# \[Statechain Governance\] Single oracle key can future-timestamp a block to early-activate and permanently freeze feature activations (no DAO threshold, no timestamp upper bound)

Closed · duplicate
—claimed High
[xe#91](https://github.com/xeprotocol/xe/issues/91)
filed 2026-10-26 21:51 UTC
by xe:6cf52cc9

Verdict
:   Duplicate

Tier
:   —

Claimed
:   High

Area
:   Consensus

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

Tracked
:   internally

Updated
:   2026-11-16 13:42 UTC

Told
:   2026-11-08 08:46 UTC

### Patches

- [xe#112](https://github.com/xeprotocol/xe/pull/112) open by arturbarszcz78
  fix(statechain): reject future-timestamped blocks and gate feature activations on DAO threshold (#91)

### History

- [21584](https://bounty.xe.network/log/21584) 2026-11-08 08:46 UTC reply.mirrored
- [21580](https://bounty.xe.network/log/21580) 2026-11-08 08:46 UTC reply.sent
- [21579](https://bounty.xe.network/log/21579) 2026-11-08 08:45 UTC proposal.adopted
- [4154](https://bounty.xe.network/log/4154) 2026-11-04 09:19 UTC proposal.created
- [883](https://bounty.xe.network/log/883) 2026-10-29 14:22 UTC github.state\_pushed
- [882](https://bounty.xe.network/log/882) 2026-10-29 14:22 UTC github.labels
- [688](https://bounty.xe.network/log/688) 2026-10-29 14:22 UTC ticket.status new → closed
- [687](https://bounty.xe.network/log/687) 2026-10-29 14:22 UTC ticket.facts area
- [269](https://bounty.xe.network/log/269) 2026-10-29 13:57 UTC patch.linked
- [147](https://bounty.xe.network/log/147) 2026-10-29 13:57 UTC note.added
- [146](https://bounty.xe.network/log/146) 2026-10-29 13:57 UTC ticket.created

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

### Report

Suggested severity: High (10,000 XE).

## Summary

Statechain oracle-path blocks (all ops under the oracle's allowed prefix, e.g. `epoch.`, requiring only the oracle threshold — 1 key in the testnet-0005 genesis) have no timestamp upper bound or skew check: the only timestamp check in `statechain/chain.go:148` rejects timestamps that go backwards. `FeatureActive()` uses the tip timestamp, and `statechain/activations.go` freezes the trigger of any feature once it becomes active (it can no longer be changed or removed).

## Impact

One oracle key can publish a block timestamped years in the future and instantly activate every feature gated by `NotBeforeNS`, bypassing the DAO threshold (2-of-3) entirely. Once active, the trigger is frozen, so the DAO cannot undo or delay the activation. As a side effect, all subsequent blocks must carry timestamps \>\= the fake time, since timestamps are monotonic against the tip.

## Steps to Reproduce (local, no real funds)

1. Build a statechain with the testnet-0005-style config: oracle \= 1 key, threshold 1, allowed prefix `epoch.`; DAO \= 2-of-3; one feature gated by `at_index=1, not_before_ns = now + 5 years`.
2. Observe the feature is NOT active at genesis.
3. Submit one oracle-signed block (index 1\) with Timestamp \= now \+ 6 years containing a valid epoch op.
4. Observed: the block is accepted and the feature becomes active immediately, with no DAO involvement.
5. Submit a DAO-signed block (2-of-3) attempting to remove the feature trigger. Observed: rejected ("activations are one-directional") — the early activation is permanent.

## Recommendation

Enforce a timestamp upper bound / skew window on statechain blocks (e.g. reject timestamps more than N minutes ahead of wall time, as the ledger does for attestations), and/or require DAO threshold for blocks whose timestamp would activate features.

Honest caveat: this applies to the testnet-0005 genesis configuration (oracle threshold 1). If mainnet changes the oracle threshold, severity changes with it. The oracle is a trusted role, but threshold-1 plus no time bound is the combination that gives one key governance power over activation timing.

Payout address: to be provided on request.

### Thread

**Joseph Denne**team2026-11-08 08:46 UTCgithub

Thanks. This is the same finding as #58, which was filed first: no upper bound on statechain block timestamps, so the 1-of-1 oracle key can jump governance activations. #58 is accepted; the programme pays the first verifiable submission, so this one closes as a duplicate. If you believe it is a different bug, reply with what differs and we will look again.
