Open c4-submissions opened 1 year ago
https://github.com/code-423n4/2023-11-kelp/blob/main/src/LRTConfig.sol#L94
When the manager calls the function updateAssetDepositLimit, there is no check that depositLimit can’t be less than the previous depositLimit .
manual review
Validate that depositLimit can’t be less than the previous depositLimit when calling the function updateAssetDepositLimit
Invalid Validation
raymondfam marked the issue as insufficient quality report
raymondfam marked the issue as duplicate of #69
fatherGoose1 changed the severity to QA (Quality Assurance)
fatherGoose1 marked the issue as grade-b
Lines of code
https://github.com/code-423n4/2023-11-kelp/blob/main/src/LRTConfig.sol#L94
Vulnerability details
Proof of Concept
When the manager calls the function updateAssetDepositLimit, there is no check that depositLimit can’t be less than the previous depositLimit .
Tools Used
manual review
Recommended Mitigation Steps
Validate that depositLimit can’t be less than the previous depositLimit when calling the function updateAssetDepositLimit
Assessed type
Invalid Validation