MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: low
Invalid

unchecked return values could lead to loss of funds in rare conditions

Summary

When calling approve, transfer or transferFrom it's good practice to check the return values of the fuction in case it didn't succeed (depending on the token in question).

Vulnerability Details

Usually when something goes wrong in these functions the transaction is reverted though in some tokens it will only return false.

Impact

This could lead to attackers taking advantage of this in order to make the contract think tokens were deposited while they were not, resulting in loss of tokens for the contract when the attacker claims his tokens.

Tools Used

VSCodium

Recommendations

check the return value of the function or use SafeERC20 to catch all the possible scenarios.

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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