Closed code423n4 closed 3 years ago
cmichel
The MochiVaultProxy.updateTemplate performs a low-level call to beacon and does not check the success return value.
MochiVaultProxy.updateTemplate
beacon
success
If the beacon is set to the wrong address and the call fails, it will not be noticeable.
Check for success for the address(beacon).call(abi.encode(_newTemplate)) call.
address(beacon).call(abi.encode(_newTemplate))
duplicated with https://github.com/code-423n4/2021-10-mochi-findings/issues/76
Handle
cmichel
Vulnerability details
The
MochiVaultProxy.updateTemplate
performs a low-level call tobeacon
and does not check thesuccess
return value.Impact
If the
beacon
is set to the wrong address and the call fails, it will not be noticeable.Recommended Mitigation Steps
Check for
success
for theaddress(beacon).call(abi.encode(_newTemplate))
call.