implement 2-step transfer process of ownership in AuthInitialized.sol #41
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
invalid
This doesn't seem right
withdrawn by warden
Special case: warden has withdrawn this submission and it can be ignored
Lines of code
https://github.com/code-423n4/2023-01-astaria/blob/1bfc58b42109b839528ab1c21dc9803d663df898/src/AuthInitializable.sol#L95-L100
Vulnerability details
Impact
Transfer of ownership is a delicate and irreversible process, it could leave a contract useless, with a two step process we add a guard against typos or bad copy/paste.
Proof of Concept
OpenZeppelin/openzeppelin-contracts#3620
Tools Used
Manual Audit
Recommended Mitigation Steps
Implement 2-step process in transferring ownership.
The text was updated successfully, but these errors were encountered: