MorpheusAI

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

'GatewayRouterMock.sol' and 'SwapRouterMock.sol' don't check the return upon transfer IERC20

Summary

Vulnerability Details

In the L1Sender.sol the sendDepositsToken use the mock ' IGatewayRouter(config.gateway).outboundTransfer' which as we can see doesn't check the return which can cause the unintended and unpleasant consequences during function process.

The same issue is in the L2TokenReceiver.sol in the swap function the 'ISwapRouter.ExactInputSingleParams' doesn’t check the return.

Impact

The transfer can be failed without being noticed by the calling contract.

Tools Used

Manual review

Recommendations

Use SafeERC20 library on both functions

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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