[M-01] APPROVING MAXIMUM VALUE in NodeDelegator contract #153
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-70
edited-by-warden
grade-b
insufficient quality report
This report is not of sufficient quality
Q-113
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Lines of code
https://github.com/code-423n4/2023-11-kelp/blob/c5fdc2e62c5e1d78769f44d6e34a6fb9e40c00f0/src/NodeDelegator.sol#L35-L46
Vulnerability details
Impact
The function maxApproveToEigenStrategyManager was detected to be using the maximum value for the approval amount in the NodeDelegator contract.
This is a malicious behavior and should be discouraged.
Proof of Concept
Vulnerable maxApproveToEigenStrategyManager function
Tools Used
VS Code.
Recommended Mitigation Steps
Change the amount to be approved to a smaller amount.
And utilise safeIncreaseAllowance or safeDecreaseAllowance.
Assessed type
Token-Transfer
The text was updated successfully, but these errors were encountered: