yAxis contest - itsmeSTYJ's results

The trusted #DeFi platform to earn reliable returns on digital assets.

General Information

Platform: Code4rena

Start Date: 09/09/2021

Pot Size: $60,000 USDC

Total HM: 24

Participants: 12

Period: 7 days

Judge: GalloDaSballo

Total Solo HM: 14

Id: 30

League: ETH

yAxis

Findings Distribution

Researcher Performance

Rank: 9/12

Findings: 3

Award: $624.28

🌟 Selected for report: 0

🚀 Solo Findings: 0

Findings Information

🌟 Selected for report: jonah1005

Also found by: cmichel, itsmeSTYJ

Labels

bug
duplicate
3 (High Risk)

Awards

125.5914 YAXIS - $489.81

External Links

Handle

itsmeSTYJ

Vulnerability details

Impact

If the strategy used accepts multiple tokens, a user can deposit in a cheaper token and withdraw in a more expensive token because the vault only tracks ownership based on how many shares they own.

Proof of Concept

  1. An approved strategist adds 2 allowed tokens (different prices).
  2. After a while, the vault accumulates these 2 tokens.
  3. A malicious user can deposit the cheaper token and get say 10 shares back.
  4. With this 10 shares, he can withdraw the more expensive token.

Instead of relying on shares to keep track of ownership, the vault should also track the deposits at the token level and only allow users to withdraw the tokens that they deposited.

#0 - transferAndCall

2021-09-13T13:03:02Z

#1 - gpersoon

2021-09-30T11:52:12Z

I think this is also related to the underlying problem that all coins are assumed to have the same value. See also #2, #8, #9 and #158

#2 - GalloDaSballo

2021-10-14T16:58:16Z

Duplicate of #2

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