Description
The global variable ChristmasDinner::deadlineSet
is not updated to true
when setting the deadline by calling ChristmasDinner::setDeadline
.
Impact
The contract allows multiple change of deadlines.
Proof of Concepts
The test ChristmasDinnerTest::test_tryResettingDeadlineAsHost
already proves that the deadline can be updated by calling the function ChristmasDinner::setDeadline
more than once.
Recommended mitigation
Add the following change to the code.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.