callNoValue() function does not guard against zero address #7
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
jayjonah8
Vulnerability details
Impact
In CallFacet.sol, the callNoValue() function has a loop of addresses to call and it doesn't guard against one of the addresses possibly being a zero address. Adding this check can avoid mistakes and serve as a safeguard for the protocol.
Proof of Concept
https://github.com/code-423n4/2021-12-amun/blob/main/contracts/basket/contracts/facets/Call/CallFacet.sol#L95
Tools Used
Manual code review
Recommended Mitigation Steps
inside the loop in the callNoValue() function this should be added: require(_targets[i] != address(0));
The text was updated successfully, but these errors were encountered: