code-423n4 / 2021-09-sushitrident-2-findings

0 stars 0 forks source link

`TridentNFT` signature malleability #48

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

cmichel

Vulnerability details

The TridentNFT.permit/permitAll functions don't perform additional signature validity checks, like checking that s is within valid range and that v is a valid number.

Impact

Probably not an issue when using fresh nonces each time.

Recommended Mitigation Steps

Consider using OpenZeppelin's ECDSA.recover that performs additional checks.