Dria

Swan
NFTHardhat
21,000 USDC
View results
Submission Details
Severity: medium
Invalid

swanmanager.sol is not initialized

Summaryhttps://github.com/Cyfrin/2024-10-swan-dria/blob/c8686b199daadcef3161980022e12b66a5304f8e/contracts/swan/SwanManager.sol#L2-L134

the contract swanmanager.sol calls _disableInitializers(), which locks the contract and prevents any future initialization however the contract is not initialized Since the contract is not initialized

Vulnerability Details

If the contract is not initialized, the owner is typically set to the zero address which means no address has permission to call the onlyOwner functions If the SwanManager contract is not initialized, functions protected by the onlyOwner modifier will not work as intended

Impact

any function with the onlyOwner modifier will effectively be inaccessible, as the contract will revert with an access control error.

Recommendations

initialize the contract

Updates

Lead Judging Commences

inallhonesty Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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