Managed.sol uses single-step ownership transfer which means that if a wrong address was passed when transferring admin rights that role can be lost forever.
It is a best practice to use two-step ownership transfer pattern, meaning ownership transfer gets to a "pending" state and the new owner should claim his new rights.
Lines of code
https://github.com/code-423n4/2023-01-drips/blob/main/src/Managed.sol#L84
Vulnerability details
Impact
Managed.sol
uses single-step ownership transfer which means that if a wrong address was passed when transferring admin rights that role can be lost forever.Proof of Concept
https://github.com/code-423n4/2023-01-drips/blob/main/src/Managed.sol#L84
Tools Used
Manual code review
Recommended Mitigation Steps
It is a best practice to use two-step ownership transfer pattern, meaning ownership transfer gets to a "pending" state and the new owner should claim his new rights.