krkba - No zero address validation in setRewardsDistribution
function
#4
Labels
Excluded
Excluded by the judge without consulting the protocol or the senior
Non-Reward
This issue will not receive a payout
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
krkba
medium
No zero address validation in
setRewardsDistribution
functionkrkba
Summary
Vulnerability Detail
The
setRewardsDistribution
function does not validate the input address.Impact
It can be a zero address, which leads to unexpected behavior.
Code Snippet
https://github.com/sherlock-audit/2024-01-telcoin/blob/main/telcoin-audit/contracts/telx/abstract/RewardsDistributionRecipient.sol#L42-L47
Tool used
Manual Review
Recommendation
The function should check that the address is not the zero address.
The text was updated successfully, but these errors were encountered: