Users are able to register for the event even after the deadline by paying through native ether, which could undermine the event's rules and planning, allowing late registrations that were not intended.
Allowing users to register after the deadline by paying with native ether creates unfair participation, disrupts event planning, and may lead to resource shortages or confusion for the host.
Foundry
Add the below code in ChristmasDinnerTest.t.sol:ChristmasDinnerTest
Add the above code in the ChristmasDinnerTest.t.sol:ChristmasDinnerTest.
shell forge test --match-test test_POC_Registration_Is_Open_After_Deadline_Through_Native_ETH -vv
You will get output as folowing
deadline : 7
Starting TIME-STAMP= 1
Deadline : 7
Ending TIME-STAMP= 100
Exploiter participation status : true
You can mitigate this by making necessary checks in receive() function. to ensure any payments are not accepted after deadline.
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.