DeFiFoundry
20,000 USDC
View results
Submission Details
Severity: low
Invalid

Missing zero check conditional

Summary

In FjordStaking.sol there's a function FjordStaking.sol::addAuthorizedSablierSender which hasn't any conditional check to check whether address is a zero address or not.

Vulnerability Details

function addAuthorizedSablierSender(address _address) external onlyOwner {
@> // missing zero address check
authorizedSablierSenders[_address] = true;
} }

Impact

There may have zero address registered as an authorized sablier sender.

Tools Used

Manual Review.

Recommendations

Please implement a zero address check like below...

function addAuthorizedSablierSender(address _address) external onlyOwner {
+ if (_address == address(0)) revert InvalidZeroAddress();
authorizedSablierSenders[_address] = true;
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.