Christmas Dinner

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

User can still attend Event after receiving Refunds.

Summary

User can still attend event even after refunds have been processed

Vulnerability Details

Participant status not updated in the refund() function as this could cause users to get refunded and still be allowed to participate in the event

Impact

High

Tools Used

Foundry

Recommendations

Update participant status after processing refunds

function refund() external nonReentrant beforeDeadline {
address payable _to = payable(msg.sender);
_refundERC20(_to);
_refundETH(_to);
// Change participant status
participant[msg.sender] = false;
// --------------
emit Refunded(msg.sender);
}
Updates

Lead Judging Commences

0xtimefliez Lead Judge 8 months 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.