hats-finance / Fenix--0x9d7765a7ebd5b6322a30797a44a5428531970d3d

0 stars 1 forks source link

`RouterV2PathProviderUpgradeable` hasn't disabled the function `renounceOwnership` #41

Open hats-bug-reporter[bot] opened 3 months ago

hats-bug-reporter[bot] commented 3 months ago

Github username: @Vancelott Twitter username: vancelotx Submission hash (on-chain): 0xd27ca3d03ae1c5f0c21214eedc62e99a4c56e0414b67a30859578f48ec48b203 Severity: low

Description: Description\

The contract RouterV2PathProviderUpgradeable inherits from Ownable2StepUpgradeable, which has a two-step-process implemented for the ownership of the contract. Even in that case, an accidental call to renounceOwnership can result in the contract having no Owner

Attack Scenario\

Describe how the vulnerability can be exploited.

If the contract is left with no Owner, 3 of the main functions won't be accessible to the protocol, making it only usable with the information provided to it, before the renouncement. These are the functions which have onlyOwner and won't be callable:

Attachments

  1. Proof of Concept (PoC) File

-

  1. Revised Code File (Optional)

Files:

Vancelott commented 3 months ago

Sorry for the weird formatting, first time submitting on Hats ✌️

0xmahdirostami commented 3 months ago

This issue needs admin for accidentally call the renounceOwnership() function which, and considering the admins are trusted it becomes invalid