The FestivalPass
contract allows the organizer to create memorabilia collections with a boolean isActive
parameter that determines whether users can redeem NFTs from the collection by burning BEAT
tokens.
There is no function to toggle or set isActive
to true
after a collection is created with isActive
set to false
, preventing users from redeeming NFTs from such collections.
Likelihood:
Always affects collections intentionally created as inactive, as the contract lacks any mechanism to activate them later.
Impact:
Users cannot redeem NFTs from inactive collections, rendering the collection unusable and potentially locking the utility of their BEAT
tokens if no other active collections exist.
Organizers cannot correct or update the activation status of a collection, limiting the flexibility of the festival’s memorabilia system.
Run forge test --mt test_RedeemMemorabilia_CollectionNotActive
command, observe that the test passes, user is unable to redeem items from inactive collection and there is no way to activate the collection after it is created.
Add the following code to src/FestivalPass.sol
:
Low because an organizer can use it with active = true and organizer is trusted.
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.