Open code423n4 opened 3 years ago
duplicate of #2
Agree with the finding: If zero address is added as privilege, then ecrecover
will fallback to zero on invalid signature, allowing for potential exploits
Other wardens also reported this finding, with higher severity.
I'll go with low severity on this and the other findings
Handle
cmichel
Vulnerability details
The
SignatureValidator.recoverAddrImpl
function does not revert on invalid signatures and returns zero instead. Thus if anyone added the zero address to theirprivileges
by accident, funds can be stolen inIdentity.execute
.Recommended Mitigation Steps
Unless there's a valid reason for the
SignatureMode.NoSig
mode, consider reverting ifecrecover
returns the zero address indicating an invalid signature.