Closed code423n4 closed 2 years ago
0x0x0x
This function is intended to change the guardian, but the code changes the governance address as seen in the code:
function setGuardian(address _guardian) external { _onlyGovernance(); governance = _guardian; }
It should be replaced with the following code to have the functionality of setting guardian.
function setGuardian(address _guardian) external { _onlyGovernance(); guardian = _guardian; }
Manual analysis
Duplicate of #10
Merged with #10
Handle
0x0x0x
Vulnerability details
Proof of Concept
This function is intended to change the guardian, but the code changes the governance address as seen in the code:
It should be replaced with the following code to have the functionality of setting guardian.
Tools Used
Manual analysis