The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: medium
Valid

Incorrect Deadline Usage in swap Function

Summary

Vulnerability Details

In the swap function of the SmartVaultV3 contract, the block.timestamp is used as the deadline parameter when interacting with an AMM pool. This approach allows a miner to control when the transaction is included in a block, making it valid at the miner's chosen timestamp. A malicious miner could exploit this behavior to impact the timing of the transaction's execution.

Impact

malicious miner to manipulate the timing of transactions, leading to increased slippage.

Tools Used

Manual Review

Recommendations

Specify a deadline parameter.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

deadline-check-low

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

deadline-check

Support

FAQs

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