Asymmetry contest - chalex's results

A protocol to help diversify and decentralize liquid staking derivatives.

General Information

Platform: Code4rena

Start Date: 24/03/2023

Pot Size: $49,200 USDC

Total HM: 20

Participants: 246

Period: 6 days

Judge: Picodes

Total Solo HM: 1

Id: 226

League: ETH

Asymmetry Finance

Findings Distribution

Researcher Performance

Rank: 237/246

Findings: 1

Award: $0.14

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

https://github.com/code-423n4/2023-03-asymmetry/blob/44b5cd94ebedc187a08884a7f685e950e987261c/contracts/SafEth/derivatives/Reth.sol#L228-L242

Vulnerability details

Impact

Reth pool price can be manipulated to cause loss of funds for the protocol and other users

Proof of Concept

Reth poolPrice uses the UniV3Pool.slot0 to determine the price of reth/eth, slot0 is the most recent data point and can easily be manipulated. This allows a malicious user to manipulate the valuation of the rETH. An example of this kind of manipulation would be to use large amount of reth to be withdraw.

Tools Used

Manual review

Consider using TWAP oracle instead of reading from slot0

#0 - c4-pre-sort

2023-04-01T13:48:50Z

0xSorryNotSorry marked the issue as low quality report

#1 - elmutt

2023-04-07T22:21:47Z

we will be switching to chainlink prices. thanks

#2 - c4-sponsor

2023-04-07T22:21:51Z

elmutt marked the issue as sponsor confirmed

#3 - c4-judge

2023-04-21T16:22:43Z

Picodes marked the issue as satisfactory

#4 - c4-judge

2023-04-21T16:23:23Z

Picodes marked the issue as duplicate of #1125

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