MorpheusAI

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

`config.gateway` address is set incorrectly

Summary

In the lzReceive function, the contract is using the config.gateway address to verify if the caller is the expected gateway. Therefore, the require statement will revert the transaction if the condition is not met.

Vulnerability Details

Here's the relevant part of the code:

require(_msgSender() == config.gateway, "L2MR: invalid gateway");

This line ensures that the function is only executed if the caller _msgSender() is the address specified in config.gateway.

Impact

The require statement will revert the transaction if the condition is not met, providing a basic access control mechanism.

Tools Used

Recommendations

To ensure that the config.gateway address is set correctly , you should consider the following:

struct Config { address gateway; uint16 senderChainId; address sender;
Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

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