Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Invalid

No Approve functionality in the buyPresent function

Summary

The "buyPresent" function within the contract lacks an approval mechanism, potentially exposing users to vulnerabilities related to unauthorized token transfers. The absence of an "approve" step could result in users losing control over their tokens and pose a risk of malicious or unintended token transfers.

Vulnerability Details

The absence of an "approve" mechanism in the "buyPresent" function could lead to Token Transfer without authorization which allows for direct token transfers without explicit approval from the token owner.

Impact

The lack of an "approve" mechanism in the "buyPresent" function may lead to token transfers without the explicit consent or authorization of the token owner.

Tools Used

manual analysys

Recommendations

Modify the "buyPresent" function to include an "approve" step, requiring explicit approval from token owners before initiating token transfers.

Updates

Lead Judging Commences

inallhonesty Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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