MorpheusAI

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

Missing checks for `address(0x0)` when updating address state variables

Summary

State variables that are of type address should always be checked to ensure that they are not being assigned the null address (address(0x0)).
A null address often implies an error or omission in the code.
Without proper checks, such a scenario can lead to unexpected behavior and potential vulnerabilities in the smart contract.
Therefore, it is considered good practice to implement checks for address(0x0) prior to assigning new values to address state variables.

Vulnerability Details

File: contracts/L1Sender.sol
46: distribution = distribution_;
File: contracts/L2MessageReceiver.sol
27: rewardToken = rewardToken_;
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.