Chain id is not verified #57
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Info
Severity: CRITICAL
Attack vector: network-only
Impact
Allows an authorized SDK client to obtain valid signatures on chains the operator did not approve, including mainnet.
Description
Although
chainis stored in the grant and covered by the HMAC, it is never enforced during grant lookup or transaction evaluation. The client controlschain_idwithout a matching authorization check.Example flow
chain_id.Mitigation
Filter grants by chain and compare the requested transaction's chain ID against the grant before signing.