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

Lack of naughty status check in buyPresent function

Summary

There is no check of caller's status in buyPresent function. Anyone can call it.

Vulnerability Details

As in description, This function is only be callable by someone who is naughty. But there is no status check in this function

Impact

Anyone with any status can call buyPresent function

Tools Used

Foundry

Recommendations

adding naughty status check of msg.sender in this function

Updates

Lead Judging Commences

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.