smartbugs-curated/dataset/unchecked_low_level_calls/0xf29ebe930a539a60279ace72c...

22 lines
446 B
Solidity

/*
* @source: etherscan.io
* @author: -
* @vulnerable_at_lines: 16
*/
pragma solidity ^0.4.24;
contract B {
address public owner = msg.sender;
function go() public payable {
address target = 0xC8A60C51967F4022BF9424C337e9c6F0bD220E1C;
// <yes> <report> UNCHECKED_LL_CALLS
target.call.value(msg.value)();
owner.transfer(address(this).balance);
}
function() public payable {
}
}