Asymmetry contest - teddav'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: 232/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/main/contracts/SafEth/derivatives/Reth.sol#L228

Vulnerability details

Impact

The poolPrice is fetched from the latest uniswap RETH/WETH pool price. The pool only has about 1400 WETH and 1400 RETH: https://info.uniswap.org/#/pools/0xa4e0faa58465a2d369aa21b3e42d43374c6f9613

The same pool on Balancer has a lot more liquidity. So, a user can get a flashloan from Balancer for 1400 RETH https://app.balancer.fi/#/ethereum/pool/0x1e19cf2d73a72ef1332c882f20534b6519be0276000200000000000000000112 And manipulate the price on the Uniswap Pool which will end up minting to the user a lot more tokens than he should have had. Then the user can withdraw his safETH token and get a lot more ETH than initially deposited.

Tools Used

Manual analysis

Use a TWAP to avoid manipulation: https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/OracleLibrary#consult

#0 - c4-pre-sort

2023-03-31T16:26:45Z

0xSorryNotSorry marked the issue as low quality report

#1 - c4-pre-sort

2023-04-04T11:24:33Z

0xSorryNotSorry marked the issue as duplicate of #601

#2 - c4-judge

2023-04-21T16:14:42Z

Picodes marked the issue as satisfactory

#3 - c4-judge

2023-04-21T16:15:19Z

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