Potential Rugpull opportunity with max approval #803
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-70
grade-b
insufficient quality report
This report is not of sufficient quality
Q-06
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/f751d7594051c0766c7ecd1e68daeb0661e43ee3/src/NodeDelegator.sol#L38
Vulnerability details
Impact
NodeDelegator
may approve max toEIGEN_STRATEGY_MANAGER
viamaxApproveToEigenStrategyManager
. Which allows theEIGEN_STRATEGY_MANAGER
move all funds.Proof of Concept
The protocol is highly centralized and in
NodeDelegator
, it will approve max value toEIGEN_STRATEGY_MANAGER
which fully relies on the trust of theLRTConfig
And
EIGEN_STRATEGY_MANAGER
is out of the scope.Tools Used
Manual
Recommended Mitigation Steps
It's better to approve on demand, instead of approve max.
Assessed type
Rug-Pull
The text was updated successfully, but these errors were encountered: