FestivalPass::withdraw function were only callable by the owner of the contract, The organizer cannot call this function as stated in the natspecFestivalPass::withdraw function hold a natspec that states "Organizer withdraws ETH" This means that the withdraw function were supposed to be used to withdraw ETH tot he Organizer's addresses
But, the function can only be called by the owner of the contract, the organizer had no power whatsoever to withraw the ETH
Likelihood:
Occurs everytime when owner transfer the ETH however the owners like.
Impact:
Organizer do not have any control whatsoever on where the ETH is going.
Copy the following code into test/FestivalPass.t.sol test suite
The natspec of the function intended that the Organizer witdraw the ETH, so we need to change the onlyOwner modifier into onlyOrganizer modifier
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.