<!-- XE-17969 · core: timekeeper-era self-selection by attestation timestamp + skipped skew on conflict promotion lets revoked timekeepers attest and backdate lease times · testnet -->
*Markdown view of <https://bounty.xe.network/XE-17969>. The page is the record; this is the same page for reading.*

XE-17969 · Bounty

# core: timekeeper-era self-selection by attestation timestamp \+ skipped skew on conflict promotion lets revoked timekeepers attest and backdate lease times

Closed · duplicate
—claimed High
web
filed 2026-11-18 02:36 UTC
by xe:a2b14c2a

Verdict
:   Duplicate

Tier
:   —

Claimed
:   High

Area
:   Consensus

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-23 09:05 UTC

Told
:   2026-11-23 09:05 UTC

### Patches

None linked.

### History

- [807554](https://bounty.xe.network/log/807554) 2026-11-23 09:05 UTC proposal.adopted
- [807553](https://bounty.xe.network/log/807553) 2026-11-23 09:05 UTC reply.sent
- [807552](https://bounty.xe.network/log/807552) 2026-11-23 09:05 UTC ticket.status new → closed
- [805468](https://bounty.xe.network/log/805468) 2026-11-23 09:05 UTC proposal.adopted
- [805467](https://bounty.xe.network/log/805467) 2026-11-23 09:05 UTC proposal.adopted
- [805466](https://bounty.xe.network/log/805466) 2026-11-23 09:05 UTC ticket.facts
- [805465](https://bounty.xe.network/log/805465) 2026-11-23 09:05 UTC proposal.adopted
- [805464](https://bounty.xe.network/log/805464) 2026-11-23 09:05 UTC ticket.facts
- [803847](https://bounty.xe.network/log/803847) 2026-11-23 09:03 UTC note.added
- [803846](https://bounty.xe.network/log/803846) 2026-11-23 09:03 UTC proposal.created
- [803845](https://bounty.xe.network/log/803845) 2026-11-23 09:03 UTC proposal.created
- [803844](https://bounty.xe.network/log/803844) 2026-11-23 09:03 UTC proposal.created

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

### Report

## Summary

`core/attestation.go:ValidateAttestationsAt` buckets each attestation into a timekeeper **era chosen by the attestation's own timestamp** (`sort.Search(eras[i].Since > a.Timestamp)-1`, line \~134). The skew check (`|a.Timestamp - now| <= MaxAttestationSkew`, 10 min) is the only thing tying an attestation to the present — and on the **conflict-promotion path the skew check is skipped**:

- `quorum.go:391` → `dispatchValidateAndAdd(winnerBlock, true)` and `ledger.go:3239` (swap cascade winner) pass `skipTimestamp=true`, which flows into `validateAndAddLeaseAccept/Settle/ForceSettle/Renew` as `skipSkew=true` → `ValidateAttestationsAt(..., skipSkew=true)`.

## Attack sequence

1. A timekeeper key is **revoked** (removed from `sys.timekeepers` in a newer era).
2. The old keyholder signs attestations for any lease transition with `Timestamp` set **inside the old era** (e.g. the era in which their key was trusted).
3. The block enters a conflict (any fork / competing block is enough).
4. When the winner is promoted, `ValidateAttestationsAt` runs with `skipSkew=true`; the self-chosen old timestamp buckets the attestations into the old era where the revoked key is still in `Config.Keys`. Threshold counts against the old keyset, validation **passes**, and the median — a **past timestamp** — becomes the lease start / settle / renew time.
5. Result: (a) revoked timekeepers retain attestation authority indefinitely on the promotion path — the only path a conflict winner has; (b) lease `start_time` / `settle_time` can be backdated arbitrarily far (lease duration/billing and escrow expiry are computed from these times), purely by controlling fork timing.

The normal (non-conflict) path is protected by the skew check, so the exploit requires shepherding a lease block into a conflict — but conflicts are attacker-influencable (submit a competing double-spend block for the same account/previous), and promotion is the authoritative validation for winners.

## Suggested fix

Do not let the attestation choose its own era when skew is skipped: clamp era selection by the current time (pick the era whose `Since` is latest ≤ now), or enforce a freshness bound on the **median** even when per-attestation skew is skipped, and/or pass `skipSkew=false` on the promotion path (the original block was already broadcast with real attestations).

## Impact

Revoked-key attestation persistence \+ arbitrary backdating of lease times on the promotion path. High.

## Novelty

Checked: XE-8797 (staged blocks skip attestations entirely — different path), XE-14251 (key normalization in counting), XE-0030 (rate-limit TOCTOU), XE-8075 (genesis skew) — none covers era self-selection via attestation timestamp combined with skipSkew on promotion.

### Thread

**Joseph Denne**team2026-11-23 09:05 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-17969 and says what differs; it is read like any other.
