Future Timestamp Rejection
Check whether a timestamp far ahead of the receiver's clock is rejected, since an unbounded future window lets a captured delivery be staged for later use
Use when: the tolerance is applied to stale values and its behaviour on future values has not been observed
Avoid when: the handler compares against an explicit two-sided window and a test confirms both sides
Procedure
- Confirm from the boundary that constructing a signature over a synthetic future-timestamped body is permitted.
- Send a delivery signed with a timestamp moderately ahead of now, then one far ahead, at the agreed rate.
- Capture status, body and timing for each and note which side of the clock the handler appears to enforce.
- Check the code path for a symmetric window or two separate comparisons, since many implementations only bound the past.
- Record whether a future value would let an attacker stage a delivery for later consumption.
- Write the result as symmetric, past-only or unbounded, with the two offsets you actually tested.
Signals
- A timestamp hours ahead is accepted while a stale one of the same age is rejected
- The code subtracts the received time from now with no absolute bound
- Future acceptance means a delivery captured today can be replayed later at will
- Only one comparison exists where a two-sided window was assumed
Patterns
1. Symmetry table
offset | status
-3600s (past) | 401
+3600s (future) | 200 <- past-only enforcement
+86400s | 200
2. Code shape
look for abs(now - ts) <= tolerance; two separate comparisons or a single signed subtraction indicates one-sided enforcement
3. Impact sentence
state it plainly: a delivery captured at T can be delivered at T + N without detection, with N measured from your test
Pitfalls
- Assuming symmetry because the documentation describes a window rather than a direction
- Reporting the theoretical risk without the offsets you actually observed
- Forgetting that an unsigned timestamp makes this test meaningless, since the value can just be rewritten
Done when
- Past and future offsets are each tested with recorded status and timing
- The result is labelled symmetric, past-only or unbounded with the offsets shown