# Missing time bound on action

Renew, claim, bid or timelock paths that skip a deadline or grace-period check, or double-count block.timestamp

_Area: Smart contract access control and control flow. Seen in 3 disclosed reports; latest 2025-04-10. Updated 2026-11-17._

## How it works
A protocol defines a time window — a grace period after expiry, a timelock before a change takes effect, a signed amount valid for one block — and then one mutation path fails to enforce the same bound. Either the path has no timestamp check at all, so an action that should be closed stays open forever, or the bound is computed wrongly (a caller pre-adds `block.timestamp` to a helper that adds it again), so the window is far longer than intended. The assumption that breaks is "every path that touches this resource enforces the same deadline." When it doesn't, whoever acts last or first — the old owner, a frontrunner, a griefer — controls the outcome.

## Where it shows up
- Renew/extend/transfer entry points on names, subscriptions, or leases where only the claim path checks `expiration + grace` [E3](https://bugbountylibrary.com/r/c4%3A2025-01-initia-move%3AH-04.md)
- Call sites passing `block.timestamp + X` into a pending/timelock helper that already adds `block.timestamp` [E1](https://bugbountylibrary.com/r/cantina%3Aterm_structure_february2025%3A3.2.3.md)
- Timelocked setters with no revoke or cancel function, and resubmission that reverts while a pending entry exists [E1](https://bugbountylibrary.com/r/cantina%3Aterm_structure_february2025%3A3.2.3.md)
- Permit/approval flows where the signed amount is derived from live state (exchange rate, oracle, balance) rather than a user-supplied bound [E2](https://bugbountylibrary.com/r/c4%3A2023-07-pooltogether%3AM-11.md)
- Any "pending" queue where the stored `validAt`/`executeAfter` is never sanity-checked against the requested delay

## How to review
For each time-gated resource, list every function that mutates it and confirm each enforces the identical bound. The invariant: after `expiration + grace`, no path other than the intended claim may extend or renew; before `validAt`, no path may execute. For timelocks, read the helper and every caller together and compute the stored deadline by hand — it must equal `now + delay` exactly once. For permits, the signed value must be stable across blocks or bounded by a user-supplied maximum. Check that a pending action can be revoked or that a stuck one cannot block all future submissions.

## How finders spotted it
- Read the timelock flow end to end, noticed the caller pre-added `block.timestamp` while the library added it again, then confirmed with a test asserting `validAt == block.timestamp*2 + timelock` [E1](https://bugbountylibrary.com/r/cantina%3Aterm_structure_february2025%3A3.2.3.md)
- Noticed a permit-signed asset amount was computed from a live exchange-rate conversion instead of a user bound, making the signature state-dependent [E2](https://bugbountylibrary.com/r/c4%3A2023-07-pooltogether%3AM-11.md)
- Compared `extend_expiration` against the registration invariant that expired-plus-grace domains become claimable, and found no timestamp bound on the extend path [E3](https://bugbountylibrary.com/r/c4%3A2025-01-initia-move%3AH-04.md)

## Variants seen
- Double-counted timestamp producing a ~55-year lock with no revoke [E1](https://bugbountylibrary.com/r/cantina%3Aterm_structure_february2025%3A3.2.3.md)
- State-dependent signed value invalidated by rate change or frontrun, DoSing the mint [E2](https://bugbountylibrary.com/r/c4%3A2023-07-pooltogether%3AM-11.md)
- Missing grace-period check letting the prior owner renew and block a new buyer [E3](https://bugbountylibrary.com/r/c4%3A2025-01-initia-move%3AH-04.md)

## Impact and severity
E1 permanently locks a fee-rate change for ~55 years with no recovery path — a governance/parameter freeze. E2 turns a deposit function into a DoS: any rate movement reverts the mint. E3 lets the incumbent frontrun and deny registration to a legitimate buyer. Severity rises with irreversibility (no revoke) and with whether an attacker can trigger the state change cheaply; all three are griefing or lock-up rather than direct theft.

## Evidence
- E1: https://bugbountylibrary.com/r/cantina%3Aterm_structure_february2025%3A3.2.3.md
- E2: https://bugbountylibrary.com/r/c4%3A2023-07-pooltogether%3AM-11.md
- E3: https://bugbountylibrary.com/r/c4%3A2025-01-initia-move%3AH-04.md
