Asymmetry contest - slippopz'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: 69/246

Findings: 1

Award: $81.32

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

81.3214 USDC - $81.32

Labels

bug
3 (High Risk)
satisfactory
upgraded by judge
duplicate-1004

External Links

Lines of code

https://github.com/code-423n4/2023-03-asymmetry/blob/main/contracts/SafEth/derivatives/Reth.sol#L212

Vulnerability details

Impact

Detailed description of the impact of this finding.

  • function ethPerDerivative(uint) of reth can be manipulated: attacker can deposit just enough to mint reth with rocketDepositPool but using uniswap pool rate to calculate mint share in function stake (SafETH contract)
    • uniswap pool rate using spot price which can be manipulated (can be a problem if pool has low liquidity)

Proof of Concept

Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.

Tools Used

foundry

  • using rate to calculate share with the same rate when minting new reth
  • using twap or oracle for reth price

#0 - c4-pre-sort

2023-04-04T17:41:44Z

0xSorryNotSorry marked the issue as duplicate of #1004

#1 - c4-judge

2023-04-21T14:04:03Z

Picodes marked the issue as duplicate of #1125

#2 - c4-judge

2023-04-21T14:08:22Z

Picodes marked the issue as satisfactory

#3 - c4-judge

2023-04-21T14:08:28Z

Picodes marked the issue as not a duplicate

#4 - c4-judge

2023-04-21T14:08:41Z

Picodes marked the issue as duplicate of #1004

#5 - c4-judge

2023-04-24T21:40:08Z

Picodes changed the severity to 3 (High Risk)

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