Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

No zero address check on some functions and constructor

Summary

The Soulmate contracts have functions that allow passing in the zero address without checks. This can lead to unpredictable behavior, crashes, or exploitation. The affected functions are:

initVault in Vault.sol
Constructor in Airdrop.sol
initVault and constructor in LoveToken.sol
Constructor in Staking.sol

Vulnerability Details

The lack of zero address check can be found in the following functions
initVaul function in the Vault.sol
Constructor in the Airdrop.sol
InitVault function and constructor in the LoveToken.sol
Constructor in the Staking.sol

Impact

Lack of zero address checks can cause the contracts to not function as intended. For Soulmate specifically, it could result in the wrong addresses being used for deployment and initialization, causing the overall system to work incorrectly.

Tools Used

Manual Review

Recommendations

Add zero address checks to the functions listed above to prevent the passing of the zero address. This will improve security and ensure the contracts work as designed. Performing these checks will mitigate the risks of crashes, unexpected behavior, and potential exploitation.

Updates

Lead Judging Commences

0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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