DeFiFoundrySolidity
16,653 OP
View results
Submission Details
Severity: medium
Invalid

block.timestamp used as swap deadline can be exploited

Summary

Both StrategyArb.sol and StrategyOP.sol use swap methods from different decentralized excahnges, both require a deadline and it's set to block.timestamp however this offers no protection to MEV.

Vulnerability Details

Using block.timestamp is MEV exploitable because whenever the block builder decides to include the txn in a block, it will be valid at that time, since block.timestamp will be the current timestamp. more on this issue

Impact

Malicious MEV actors can reorganize the transaction to their own benefit extracting value from it.

Tools Used

Manual review.

Recommendations

A specific timestamp should be passed to the function instead of block.timestamp

Updates

Appeal created

inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Known issue
inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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