Christmas Dinner

First Flight #31
Beginner FriendlyFoundrySolidity
100 EXP
View results
Submission Details
Severity: medium
Valid

Ability To Attend Event After Refund

Summary

User's are still able to attend the event even after a full refund on their deposit.

Vulnerability Details

A user is able to call deposit() to signup for the event, then immediately call refund() to collect their funds. This however, does not impact the user's particpation status which was set to true in deposit() but never updated to false after the call to refund().

Impact

This means that users will be able to attend the event for free.

Tools Used

Manual review.

Recommendations

Update the refund() function to change the caller's participation status from true to false.

Updates

Lead Judging Commences

0xtimefliez Lead Judge about 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

refund does not update participation status

Support

FAQs

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

Give us feedback!