User must be only able to buy Pass during the event time
Issue: User can buy Pass using buyPass() even after the event is concluded due to no timeStamp check in place.
Likelihood: medium
Reason 1
User buys the pass near closing time and transaction succeed after event has ended. User are minted the festival pass Token.
Impact:
Impact 1
The user now owns a festival pass, but it is completely useless. All performances are over, so they cannot use it to "attend" and earn BEAT tokens. The exploit causes a user to waste their funds.
added a test to show I can buy Pass even after the festival time ended.
add a new variable festivalEndTime in the constructor and add a check in the buyPass() function.
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.