Kelp DAO | rsETH - King_'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: 157/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)
sufficient quality report
duplicate-723
Q-83

External Links

Lines of code

https://github.com/code-423n4/2023-11-kelp/blob/f751d7594051c0766c7ecd1e68daeb0661e43ee3/src/oracles/ChainlinkPriceOracle.sol#L38

Vulnerability details

Impact

Calling latestAnswer() on the chainlink aggregator can potentially revert in some cases leading to Denial of service in certain aspects of the protocol

Proof of Concept

https://blog.openzeppelin.com/secure-smart-contract-guidelines-the-dangers-of-price-oracles mentions that "it is possible that Chainlink’s multisigs can immediately block access to price feeds at will”. When this occurs, executing return AggregatorInterface(assetPriceFeed[asset]).latestAnswer(); in the getAssetPrice function will revert causing the getRsETHAmountToMint and subsequently the _mintRsETH functions to fail, making users unable to rSethTokens

Tools Used

Manual Review

Wrap the return AggregatorInterface(assetPriceFeed[asset]).latestAnswer() block in the getAssetPrice function in a try catch block to handle possible unexpected oracle reverts

Assessed type

DoS

#0 - c4-pre-sort

2023-11-16T04:07:05Z

raymondfam marked the issue as sufficient quality report

#1 - c4-pre-sort

2023-11-16T04:07:12Z

raymondfam marked the issue as duplicate of #32

#2 - c4-pre-sort

2023-11-17T05:22:34Z

raymondfam marked the issue as not a duplicate

#3 - c4-pre-sort

2023-11-17T05:22:48Z

raymondfam marked the issue as duplicate of #878

#4 - c4-pre-sort

2023-11-17T07:34:08Z

raymondfam marked the issue as duplicate of #723

#5 - c4-judge

2023-12-01T17:38:31Z

fatherGoose1 changed the severity to QA (Quality Assurance)

#6 - c4-judge

2023-12-01T18:42:43Z

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