Christmas Dinner

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

deadlineSet Variable Is Never Updated

Summary

The variable deadlineSet is never updated in setDeadline()after a deadline is set.

Vulnerability Details

The if statement in setDeadline() checks to see if deadlineSet is true before proceeding with updating the deadline. However, this variable's value is never updated within the else statement reflecting that a deadline has actually been set.

Impact

This means that the there is no limit on how often the host is able to change deadline.

Tools Used

Manual review.

Recommendations

Update deadlineSet when the host sets the deadline by setting it to true within the else statement of setDeadline().

Updates

Lead Judging Commences

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

deadline is never set to true

Support

FAQs

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

Give us feedback!