Submitted by shw
The verify function of NativeMetaTransaction calls the Solidity ecrecover function directly to verify the given signature. However, the ecrecover EVM opcode allows for malleable (non-unique) signatures and thus is susceptible to replay attacks. Although a replay attack on this contract is not possible since each users nonce is used only once, rejecting malleable signatures is considered a best practice.
Recommend using the recover function from OpenZeppelins ECDSA library for signature verification.
Splidge (Reality Cards) disputed:
0xean (judge) commented:
