The contract can be used without ever setting a deadline, as there's no requirement to initialize the deadline before accepting deposits.
The beforeDeadline
modifier only checks block.timestamp > deadline
, but when deadline is 0 (unset), this still allows deposits.
Medium: Contract can operate without time restrictions
Coordination mechanism becomes ineffective
Users might deposit without knowing the event timeline
Foundry for testing
Manual code review
Add deadline initialization check:
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.