function __abdicate() Remove Governor is Useless Because pendingGov Can Become Gov Again #76
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
duplicate
This issue or pull request already exists
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
Meta0xNull
Vulnerability details
Impact
Proof of Concept
https://github.com/code-423n4/2021-11-streaming/blob/main/Streaming/src/Locke.sol#L26-L30
https://github.com/code-423n4/2021-11-streaming/blob/main/Streaming/src/Locke.sol#L33-L38
https://github.com/code-423n4/2021-11-streaming/blob/main/Streaming/src/Locke.sol#L45-L49
Tools Used
Manual Review
Recommended Mitigation Steps
In acceptGov(), Set pendingGov to Zero Address Once Transfer Gov.
address old = gov;
gov = pendingGov;
pendingGov = address(0);
The text was updated successfully, but these errors were encountered: