DeFiFoundry
20,000 USDC
View results
Submission Details
Severity: medium
Invalid

Lack of Return Value Check in transferFrom Call

Summary

The transferFrom function does not check the return value, which means the function could fail silently, resulting in the auction being created without the transfer of tokens.

Vulnerability Details

The transferFrom function in the createAuction method transfers tokens from the caller to the auction contract but does not verify if the transfer was successful. If the transfer fails, the auction would be created without the necessary tokens, which could lead to an invalid auction state.

Impact

  • Silent Failure: The auction contract could be created without the required tokens, leading to an invalid auction state or potential financial loss.

Tools Used

  • Manual Code Review

Recommendations

  • Check the Return Value: Ensure that the return value of the transferFrom call is checked, and handle any failure appropriately to avoid creating an invalid auction state.

Updates

Lead Judging Commences

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

Support

FAQs

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