Kelp DAO | rsETH - Inspecktor's results

A collective DAO designed to unlock liquidity, DeFi and higher rewards for restaked assets through liquid restaking.

General Information

Platform: Code4rena

Start Date: 10/11/2023

Pot Size: $28,000 USDC

Total HM: 5

Participants: 185

Period: 5 days

Judge: 0xDjango

Id: 305

League: ETH

Kelp DAO

Findings Distribution

Researcher Performance

Rank: 134/185

Findings: 1

Award: $2.76

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

2.7592 USDC - $2.76

Labels

bug
downgraded by judge
grade-b
insufficient quality report
QA (Quality Assurance)
duplicate-38
Q-49

External Links

Lines of code

https://github.com/code-423n4/2023-11-kelp/blob/main/src/LRTDepositPool.sol#L71-L89

Vulnerability details

Impact

The LRTDepositPool.sol contract provides an array of nodeDelegatorQueue, which includes NodeDelegator addresses. These addresses are used to provide asset amount distribution data among depositPool, NDCs and eigenLayer: https://github.com/code-423n4/2023-11-kelp/blob/main/src/LRTDepositPool.sol#L71-L89

Proof of Concept

Let's assume that one of the NodeDelegators had their keys compromised. Administrators lost access to it, assets were stolen. The contract has the ability to add a new NodeDelegator: https://github.com/code-423n4/2023-11-kelp/blob/main/src/LRTDepositPool.sol#L162-L176. However, there is no deletion option. The getAssetDistributionData() function uses all the NodeDelegators from the nodeDelegatorQueue array. This will cause assetLyingInNDCs to be calculated incorrectly in the getAssetDistributionData() function.

Tools Used

Manual review

Add the ability to remove NodeDelegator from the nodeDelegatorQueue array

Assessed type

Context

#0 - c4-pre-sort

2023-11-16T19:39:39Z

raymondfam marked the issue as insufficient quality report

#1 - c4-pre-sort

2023-11-16T19:39:49Z

raymondfam marked the issue as duplicate of #38

#2 - c4-judge

2023-12-01T17:45:50Z

fatherGoose1 changed the severity to QA (Quality Assurance)

#3 - c4-judge

2023-12-01T17:47:16Z

fatherGoose1 marked the issue as grade-b

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter