There is no check in setLock function of BasketFacet.sol, to see if the Lock is currently active.
It may be possible that the lockBlock is set by a RebalanceManager rebalance command, and then once again rebalance command can be given before the
expiry of the old lockBlock.
This may result in unexpected behaviour during rebalancing.
Handle
hubble
Vulnerability details
Impact
There is no check in setLock function of BasketFacet.sol, to see if the Lock is currently active. It may be possible that the lockBlock is set by a RebalanceManager rebalance command, and then once again rebalance command can be given before the expiry of the old lockBlock.
This may result in unexpected behaviour during rebalancing.
Proof of Concept
File : BasketFacet.sol Line : 302
Tools Used
Manual review
Recommended Mitigation Steps
Check and revert in setLock if the Lock is currently active