pendingOwner
should be reset to address(0)
after acceptOwner()
is successfully called
#83
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
Dravee
Vulnerability details
Impact
The
acceptOwner()
external function can be called indefinitely instead of only once.The contract's state doesn't reflect reality.
The code doesn't follow the standard implementation of a 2-step ownership transfer.
Proof of Concept
Here's the current
acceptOwner()
external function, which lacks a reset ofpendingOwner
toaddress(0)
:Tools Used
VS Code
Recommended Mitigation Steps
Change the code to:
The text was updated successfully, but these errors were encountered: