Closed sherlock-admin closed 2 years ago
carlitox477
medium
This can be done by setting _receiver=address(0) leading to lost of users rewards
_receiver=address(0)
Calling claimRewards(address(0)) will allow msg.sender to burn their rewards.
claimRewards(address(0))
msg.sender
Allows users to burn their rewards
Manual Review
Add next require statement at the start of function claimRewards: require(_receiver != address(0))
require(_receiver != address(0))
carlitox477
medium
BasePool#claimRewards allows users to burn rewards
Summary
This can be done by setting
_receiver=address(0)
leading to lost of users rewardsVulnerability Detail
Calling
claimRewards(address(0))
will allowmsg.sender
to burn their rewards.Impact
Allows users to burn their rewards
Code Snippet
Tool used
Manual Review
Recommendation
Add next require statement at the start of function claimRewards:
require(_receiver != address(0))