code-423n4 / 2023-09-asymmetry-findings

2 stars 1 forks source link

Potential rewards stealing by manipulating CVX/ETH pool #15

Closed c4-submissions closed 1 year ago

c4-submissions commented 1 year ago

Lines of code

https://github.com/code-423n4/2023-09-asymmetry/blob/main/contracts/AfEth.sol#L272-L293

Vulnerability details

Vulnerability Details

Impact

Recommended Mitigation Steps

Assessed type

Context

c4-judge commented 1 year ago

0xleastwood marked the issue as primary issue

c4-judge commented 1 year ago

0xleastwood marked the issue as duplicate of #39

c4-judge commented 1 year ago

0xleastwood marked the issue as duplicate of #23

c4-judge commented 1 year ago

0xleastwood changed the severity to 3 (High Risk)

c4-judge commented 1 year ago

0xleastwood marked the issue as satisfactory

c4-judge commented 1 year ago

0xleastwood marked the issue as partial-25

0xleastwood commented 1 year ago

Giving partial credit because it only outlines sandwich attack on depositRewards() and not the two other functions as outlined in the primary issue.

c4-judge commented 1 year ago

0xleastwood marked the issue as partial-50

elmutt commented 1 year ago

I dont think our planned fixes for #23 will necessarily fix this issue (I see it marked as a dupe of #23)

toshiSat commented 12 months ago
  • Make depositRewards() being invoked internally only by underlying strategies.

I agree, putting a min_out on depositRewards would not prevent this attack

elmutt commented 12 months ago

https://github.com/asymmetryfinance/afeth/pull/190

this should solve it