sherlock-audit / 2024-08-sentiment-v2-judging

3 stars 2 forks source link

0xBeastBoy - Owner Can Renounce Ownership #255

Closed sherlock-admin4 closed 2 months ago

sherlock-admin4 commented 2 months ago

0xBeastBoy

High

Owner Can Renounce Ownership

Reference

Summary

The above referenced contracts are inherited from Ownable or OwnableUpgradeable which imposes a risk where owner can renounce ownership.

Vulnerability Detail

These contracts are exposed to a significant vulnerability due to the presence of the renounceOwnership function. This function allows the owner to renounce control entirely, leaving the contract without an active owner. If the ownership is renounced, key administrative functions requiring ownership access such as managing liquidity pools, risk settings, registry updates, and parameter modifications—cannot be executed, which can halt critical operations and lock user funds indefinitely. This issue has been reported in multiple projects, emphasizing the need for careful handling.

Impact

Manual Review

Recommendation

Disable the renounceOwnership function in contracts that are critical for governance or system control to prevent this issue.

sherlock-admin4 commented 2 months ago

1 comment(s) were left on this issue during the judging contest.

z3s commented:

Admins are trusted