sherlock-audit / 2024-10-gamma-rewarder-judging

7 stars 3 forks source link

Joyous Pistachio Lark - [L-13] Use of ecrecover is susceptible to signature malleability #250

Closed sherlock-admin3 closed 2 weeks ago

sherlock-admin3 commented 2 weeks ago

Joyous Pistachio Lark

Low/Info

[L-13] Use of ecrecover is susceptible to signature malleability

[L-3] Use of ecrecover is susceptible to signature malleability

The built-in EVM precompile ecrecover is susceptible to signature malleability, which could lead to replay attacks.Consider using OpenZeppelin’s ECDSA library instead of the built-in function.

Instances (1):

File: brevis/lib/Lib.sol

137:         return ecrecover(message, v, r, s);