DeFiHardhat
35,000 USDC
View results
Submission Details
Severity: low
Invalid

No access control used in init() function of InitMigrateUnripeBeanEthToBeanSteth.sol

Summary

Lack of access control in init() function enable anyone to call it.

Vulnerability Details

Inside InitMigrateUnripeBeanEthToBeanSteth.sol, in function init() there is no access control modifier or check to ensure that only authorized person or contract can call this function.

Impact

Anyone can call init() function and Initializes the Migration of the Unripe LP underlying tokens from Bean:Eth to Bean:Steth.

Tools Used

Manual

Recommendations

Add this function to ensure only LivDiamond contract or its owner can call it

LibDiamond.enforceIsOwnerOrContract();

Updates

Lead Judging Commences

giovannidisiena Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
Assigned finding tags:

Init access control

Support

FAQs

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