MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: low
Invalid

Initializer missing `address(0)` Check before assignment

Summary

The initializer does not include a check for address(0) when initializing state variables that hold addresses.
Initializing a state variable with address(0) can lead to unintended behavior and vulnerabilities in the contract,
such as sending funds to an inaccessible address.
It is recommended to include a validation step to ensure that address parameters are not set to address(0).

Vulnerability Details

File: contracts/Distribution.sol
/// @audit `depositToken_` has lack of `address(0)` check before use
/// @audit `l1Sender_` has lack of `address(0)` check before use
53: function Distribution_init(
address depositToken_,
address l1Sender_,
Pool[] calldata poolsInfo_
) external initializer {
Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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