Unchecked low level call #76
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
Handle
loop
Vulnerability details
In MochiVaultFactory a low level call is made to update the Beacon template to
_newTemplate
:address(beacon).call(abi.encode(_newTemplate));
. Afterwards the_newTemplate
is written to thetemplate
variable, even if the low level call failed.Proof of Concept
https://github.com/code-423n4/2021-10-mochi/blob/main/projects/mochi-core/contracts/vault/MochiVaultFactory.sol#L22
Tools Used
Slither
Recommended Mitigation Steps
Check if low level call was successful using the
boolean
return value of a low level call.The text was updated successfully, but these errors were encountered: