StakingLPEth.sol enforces a cooldown period before users can finalize withdrawals:
https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/StakingLPEth.sol#L88-L114
But if cooldownDuration is reset to 0 after a cooldown initiation, users can bypass this wait immediately. Initially, users must wait until the cooldown period ends to withdraw assets. However, resetting cooldownDuration to 0 allows immediate withdrawals, circumventing the intended delay.
Users can sidestep the cooldown period if cooldownDuration is reset to 0, allowing immediate withdrawals despite the initial requirement to wait, compromising the protocols risk management strategy if specifically set for these previously attempted withdrawals.
Modify the withdrawal condition to separately handle active cooldowns and zero cooldownDuration, preventing immediate withdrawals unless no cooldown is pending.
