{"id":"XE-17969","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":2260,"title":"core: timekeeper-era self-selection by attestation timestamp + skipped skew on conflict promotion lets revoked timekeepers attest and backdate lease times","area":"consensus","claimed_tier":"high","assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-18T02:36:57.052879+00:00","updated_at":"2026-11-23T09:05:28.667467+00:00","source_created_at":null,"told_at":"2026-11-23T09:05:28.676830+00:00","status_changed_at":"2026-11-23T09:05:28.670835+00:00","url":"https://bounty.xe.network/XE-17969","body":"## Summary\n`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**:\n\n- `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)`.\n\n## Attack sequence\n1. A timekeeper key is **revoked** (removed from `sys.timekeepers` in a newer era).\n2. 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).\n3. The block enters a conflict (any fork / competing block is enough).\n4. 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.\n5. 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.\n\nThe 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.\n\n## Suggested fix\nDo 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).\n\n## Impact\nRevoked-key attestation persistence + arbitrary backdating of lease times on the promotion path. High.\n\n## Novelty\nChecked: 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.","patch_refs":[],"thread":[{"id":19734,"source":"desk","source_ref":"reply:17400","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-17969 and says what differs; it is read like any other.","created_at":"2026-11-23T09:05:28.667467+00:00"}]}