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

Unrestricted Present Buying in SantaList

Impact:

The buyPresent function allows any user with SantaTokens to buy a present for another user. This could lead to unintended consequences, such as users buying presents for themselves or for malicious purposes.

Proof of Concept:

The buyPresent function does not verify the recipient of the present or their eligibility.
A user could purchase a present for themselves, essentially transferring SantaTokens to themselves and bypassing the intended gifting mechanism.
Attackers could exploit this functionality to purchase presents for other users anonymously, potentially for malicious purposes such as phishing or scams.

Tools Used

Manual

Recommended Mitigation Steps:

Implement checks to ensure that users can only buy presents for other eligible users who have not already collected one.
Consider introducing a system where users can opt-in to receive presents before they can be bought for them.
Monitor the use of the buyPresent function and take appropriate action against users who misuse it.

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.