Skip to content

ADR 003: Clock skew in EIP-712 timestamps enables false rate manipulation claims #72

Closed

Description

@thiras

Category: Security

Severity: MEDIUM

File: adr/003-payments.md (~lines 407-453)

timestamp_us in both StreamRequest and StreamResponse is requester-generated with no clock synchronization requirement. The 30-second rate manipulation detection window is vulnerable:

  • A client with a clock 60s behind the node's clock could make an honest rate change (45s ago on the node) appear to be within the 30s window
  • A malicious requester can craft timestamps to frame honest nodes for rate bait-and-switch

Recommendation:

  • Require timestamps to be within ±30s of the receiver's clock (reject otherwise)
  • Document that nodes should use NTP-synchronized clocks
  • Consider using the node's timestamp in StreamResponse as the canonical time reference

ADRs affected

  • ADR 003 (Payment Model)
  • ADR 005 (Wire Protocol)

Activity

  1. added
    kind:security
    on Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:security

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions