Steadefi

Steadefi
DeFiHardhatFoundryOracle
35,000 USDC
View results
Submission Details
Severity: medium
Invalid

msg.sender to set the refundee could potentially be front-run by an attacker

Summary

The swap operation could be susceptible to front-running attacks where a malicious miner could see the transaction in the mempool and front-run it to their advantage.

Vulnerability Details

The function uses the msg.sender to set the refundee which could be front-run by an attacker.

Impact

An attacker could potentially manipulate the transaction order to their advantage, for example by inserting their own transaction before the victim's transaction is finished.

Tools Used

Slither, Manual Review

Recommendations

Consider using a commit-reveal scheme or similar mechanism to prevent front-running.

Updates

Lead Judging Commences

hans Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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