jack-eth

Permit signature missing from approval checker: nonce risk

Your unused EIP-2612 permit signature can remain privately with its recipient, so an approval checker has no allowance from that signature to display until someone successfully submits it on-chain. Inspect your wallet’s recorded approvals on revokecash to see the spender’s current allowance. Signing and submitting are separate events: a missing entry cannot establish that the signed authorization is gone.

Say you sign a permit authorizing a spender to use a token amount at permit nonce n, with a deadline still in the future. You send the signature to an application, but its transaction never goes through. The application may still hold the signature. Your wallet signed a message; the token contract has not changed its allowance or advanced its permit nonce. That is why revokecash can inspect an on-chain approval after activation but cannot inventory privately held signatures.

  • Signature: the off-chain authorization containing the owner, spender, amount, nonce, and deadline.
  • Allowance: the token contract’s current on-chain amount for that owner and spender.
  • Permit nonce: the token contract’s replay-protection counter for the owner.

These three pieces move at different times. The EIP-2612 specification requires a successful permit call to set the allowance to its signed value and increment the owner’s permit nonce. It also requires the signature’s nonce to match the current nonce and the call to arrive by its deadline. Until that call succeeds, the signed message is potential authority, while an approval checker reports recorded permission.

Now suppose you send an ordinary approve(spender, 0) transaction after signing at nonce n. The recorded allowance becomes zero. That transaction does not consume an EIP-2612 permit nonce: the token’s permit nonce remains n. If the signature is otherwise valid and its deadline has not passed, its holder can submit it afterward. The permit then writes the signed allowance back into the token contract and advances the nonce. Zeroing the allowance fixes the current on-chain permission but does not cancel the unused signature that could restore it. When assessing exposure, inspect both the live allowance and any permit messages you remember signing.

To invalidate an unused EIP-2612 signature, consume its nonce with a different valid permit, such as a zero-value permit, before the holder submits the original. Once the nonce advances, the old signature fails its nonce check; the holder could submit first, so timing matters. Expiry of the signed deadline also prevents later submission. Permit2 uses different nonce and invalidation mechanisms for its allowance and signature-transfer paths, so identify the signature scheme before choosing a cancellation action. After activation, use revokecash to inspect the recorded allowance and revoke that permission if needed.