MorpheusAI

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

check for zero address on `GatewayRouterMock :: outboundTransfer` when sending funds

Summary

check for zero address

Vulnerability Details

when you transfer funds to a zero address you can not retrieve them

Impact

funds can be lost and sent to wrong address

Tools Used

manual

Recommendations

check the _to address that is not zero

function outboundTransfer(
address _token,
address _to,
uint256 _amount,
uint256 _maxGas,
uint256 _gasPriceBid,
bytes calldata _data
) external payable returns (bytes memory) {
+ require(_to != address(0), "Address cannot be zero");
IERC20(_token).transferFrom(msg.sender, _to, _amount);
return abi.encode(_token, _to, _amount, _maxGas, _gasPriceBid, _data);
}
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.