The deadline is not set in the constructor during the creation of the contract so the deadlinevariable will have the default value for uint256, which is 0.
The contract defines the deadlinevariable, which is the deadline until which attendees can sign up for dinner. However, since the variable is not set in the constructor, it will have the value 0 (default value for uint256). This vulnerability will break the logic of all the functions which implement the beforeDeadlinemodifier because the part of the code which checks the deadline will always revert:
The vulnerability renders the deposit function unusable and doesn't let anyone join the dinner unless the host calls the setDeadlinefunction.
Manual inspection.
The deadlineshould be set in the constructor during the creation of the contract::
`
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.