Steadefi

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

User can use native coins in contract to pay for execution fees.

Summary

Function only checks sending msg.value when receiving native coins as deposits for tokenA or Token B.

Vulnerability Details

When depositing into the vault, the dp.executionFee is only checked against the msg.value when the user is depositing a native coin, at other times, it checks that the user supplied dp.executionfee is less than the minExecution fee but does not check that the msg.value actually contains the expected value, this can lead to users using funds sent in the vault by unsuspecting users as execution fee for deposits.

Impact

User does not pay for execution with own funds.

Tools Used

manual.

Recommendations

Check that msg.value contains execution fee even if not expecting native coins.

Updates

Lead Judging Commences

hans Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
0xffchain Submitter
almost 2 years ago
hans Auditor
almost 2 years ago
hans Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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