Summary
address
should be validated for zero value before assigning to a storage variable.
Vulnerability Details
File: contracts/pipeline/junctions/UnwrapAndSendETH.sol
UnwrapAndSendETH.constructor(address).wethAddress (contracts/pipeline/junctions/UnwrapAndSendETH.sol#21) lacks a zero-check on :
- WETH = wethAddress (contracts/pipeline/junctions/UnwrapAndSendETH.sol#22)
L#21, L#22,
21: constructor(address wethAddress) {
22: WETH = wethAddress;
GitHub : 21-21
File: contracts/pipeline/junctions/UnwrapAndSendETH.sol
UnwrapAndSendETH.unwrapAndSendETH(address).to (contracts/pipeline/junctions/UnwrapAndSendETH.sol#27) lacks a zero-check on :
- (success) = to.call{value: address(this).balance}(new bytes(0)) (contracts/pipeline/junctions/UnwrapAndSendETH.sol#31-33)
L#27, L#31-33,
27: function unwrapAndSendETH(address to) external {
31: (bool success, ) = to.call{value: address(this).balance}(
32: new bytes(0)
33: );
GitHub : 27-27
Impact
Sending funds to 0 address will result in loss of funds.
Tools Used
Recommendations
Check that the address is not zero.