20,000 USDC
View results
Submission Details
Severity: low
Valid

Missing zero check in Ownable in constructor and transferOwnership

Summary

In functions constructor and transferOwnership missing zero address check. If by mistake admin call transferOwnership with zero address protocol will be continue without owner and this can cause errors.

Vulnerability Details

missing zero check for _owner address

Impact

Can transfer ownership to zero address

Tools Used

Manual Review

Recommendations

in both function add
require(_owner != address(0));

Support

FAQs

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