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

Medium Risk Report

[M-01] Validate _owner before setting in transferOwnership() method

Not checking _owner for address(0) can leave protocol without an owner and can cause it to loose all the functions with onlyOwner privilege.

https://github.com/Cyfrin/2023-07-beedle/blob/main/src/utils/Ownable.sol#L19-L22

Recommendation

Add a check of _owner != address(0)

Support

FAQs

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