contract Base { address public owner; modifier onlyOwner() { require(msg.sender == owner, "Not owner"); _; } function changeOwner(address _new) public onlyOwner { owner = _new; } }

// Exploit await derived.changeOwner(attacker, { from: attacker });

Inherit Code | Defender 3

contract Base { address public owner; modifier onlyOwner() { require(msg.sender == owner, "Not owner"); _; } function changeOwner(address _new) public onlyOwner { owner = _new; } }

// Exploit await derived.changeOwner(attacker, { from: attacker });

Reset Your Password

Contact Us

Thank you forRegistering!
Please check your Email and click on the verification link we sent you.