23 lines
480 B
Solidity
23 lines
480 B
Solidity
/*
|
|
* @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
|
|
}
|
|
|
|
}
|