Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low
Valid

Single step ownership transfer.

Summary

The ProxyFactory.sol contract inherits from {Ownable} contract of Openzeppelin which uses single step ownership transfer. However, the implementation is not safe as the process is one-step which is risky due to possible human error which is unrecoverable. For example, an incorrect address, for which the private key is not known, could be passed accidentally.

Vulnerability Details

Single-step ownership transfer is dangerous due to possible human error which could result in locking all the functions that use the onlyOwner modifier.

Impact

Critical functions using the onlyOwner modifier will be locked.

Tools Used

Manual Review

Recommendations

Use Ownable2step by openzepplelin instead of Ownable.

https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable2Step.sol

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.