Kelp DAO | rsETH - soliditytaker'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: 154/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
QA (Quality Assurance)
satisfactory
sufficient quality report
duplicate-479
Q-92

External Links

Lines of code

https://github.com/code-423n4/2023-11-kelp/blob/f751d7594051c0766c7ecd1e68daeb0661e43ee3/src/LRTDepositPool.sol#L109

Vulnerability details

Impact

Developer assumption on decimals can lead to incorrect rsethAmountToMint calculation in future and lead to lose of funds

Proof of Concept

https://github.com/code-423n4/2023-11-kelp/blob/f751d7594051c0766c7ecd1e68daeb0661e43ee3/src/LRTDepositPool.sol#L109 docs.chain.link/data-feeds/price-feeds/addresses?network=ethereum If future added LST's oracles won't be the same 18 decimals as rsETH then rsethAmountToMint will be calculated incorrect and will lead to lose of funds. Chailink oracle can report different decimals for different tokens. Usage of hardcoded decimals is incorrect because new LST tokens can be added in future by addNewSupportedAsset() function.

Tools Used

Manual review

Call "function decimals() external view returns (uint8);" on asset chainlink oracle before calculations to choose which decimals precision to use

Assessed type

Decimal

#0 - c4-pre-sort

2023-11-16T03:13:34Z

raymondfam marked the issue as sufficient quality report

#1 - c4-pre-sort

2023-11-16T03:13:56Z

raymondfam marked the issue as duplicate of #97

#2 - c4-pre-sort

2023-11-17T08:01:56Z

raymondfam marked the issue as duplicate of #479

#3 - c4-judge

2023-12-01T18:01:01Z

fatherGoose1 changed the severity to 2 (Med Risk)

#4 - c4-judge

2023-12-01T18:06:27Z

fatherGoose1 marked the issue as satisfactory

#5 - c4-judge

2023-12-04T17:24:48Z

fatherGoose1 changed the severity to QA (Quality Assurance)

#6 - c4-judge

2023-12-08T18:52: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