First Flight #18: T-Swap

First Flight #18
Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: medium
Valid

Front-run of the deposit due to ignored deadline

Summary

Front-run of the deposit due to ignored deadline.

Vulnerability Details

There's a revertIfDeadlinePassed(...) modifier that is implemented, it should revert if deadline is less than block.timestamp to protect from MEV front-run attacks on a user's deposit, some MEV bots can spot big deposits and act upon it. The deposit(...) function has a uint256 deadline parameter.

Impact

Front-run, even-though minimumLiquidityTokensToMint and maximumPoolTokensToDeposit add some safety.

Tools Used

Manual review

Recommendations

Add this line to the deposit(...) function

+ revertIfDeadlinePassed(deadline)
Updates

Appeal created

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

`deposit` is missing deadline check causing transactions to complete even after the deadline

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.