FestivalPass::setOrganizer missing zero address check can permanently disable organizer functionsThe FestivalPass::setOrganizer function allows the owner to update the organizer address but does not validate that the new address is not address(0). If the owner accidentally sets the organizer to the zero address, it will cause a DoS for onlyOrganizer functions.
Likelihood:
This will occur when the owner makes an input error and passes address(0) when calling setOrganizer.
Impact:
All onlyOrganizer functions become unusable until setOrganizer is called again to fix it:
configurePass - cannot set pass prices/supply
createPerformance - cannot create new performances
createMemorabiliaCollection - cannot create new collections
The festival becomes non-functional if this happens before initial configuration.
Owner calls setOrganizer(address(0)) by mistake
All organizer functions now revert since msg.sender can never equal address(0)
Festival operations are permanently halted
Add the following test to your FestivalPass.t.sol file:
Add a zero address check to setOrganizer:
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.