code-423n4 / 2023-10-asymmetry-mitigation-findings

0 stars 0 forks source link

Introduce `minEpoch` to prevent withdrawal requests being front-runned #10

Closed c4-submissions closed 10 months ago

c4-submissions commented 11 months ago

Lines of code

https://github.com/asymmetryfinance/afeth/blob/main/contracts/strategies/votium/VotiumStrategy.sol#L61-L63

Vulnerability details

Original Issue

Issue Details

Mitigation

Conclusion

Recommended Mitigation Steps:

Assessed type

Context

toshiSat commented 11 months ago

Right now we are waiting 1 epoch which I don't believe is enough, we are going to add a min epoch

c4-sponsor commented 11 months ago

toshiSat (sponsor) confirmed

d3e4 commented 11 months ago

This report seems to suggest that M-04 is mitigated but with an error.

The error described here, that one can deposit just before an epoch shift, seems duplicate with what the warden mentions in #9 and with other wardens' #45 and #21.

c4-judge commented 11 months ago

0xleastwood marked the issue as satisfactory

liveactionllama commented 10 months ago

The judge (@0xleastwood) has asked me to update this finding on their behalf, to make it a duplicate of issue #45. So I'm updating the labels and status accordingly.