Bounty
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 filed 2026-10-26 21:51 UTC by xe:6cf52cc9

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 Denneteam2026-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.