Add SB Curated (copied from the smartbugs repository).
This commit is contained in:
22
dataset/access_control/proxy.sol
Normal file
22
dataset/access_control/proxy.sol
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* @source: https://smartcontractsecurity.github.io/SWC-registry/docs/SWC-112#proxysol
|
||||
* @author: -
|
||||
* @vulnerable_at_lines: 19
|
||||
*/
|
||||
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
contract Proxy {
|
||||
|
||||
address owner;
|
||||
|
||||
constructor() public {
|
||||
owner = msg.sender;
|
||||
}
|
||||
|
||||
function forward(address callee, bytes _data) public {
|
||||
// <yes> <report> ACCESS_CONTROL
|
||||
require(callee.delegatecall(_data)); //Use delegatecall with caution and make sure to never call into untrusted contracts
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user