The vulnerability of missing access control in the "withdrawFees" function allows unauthorized users to potentially withdraw fees, leading to the risk of fund loss and financial disruption for the contract.
PuppyRaffle:withdrawFees
function lacks access control, allowing anyone to withdraw the fees
Unauthorized individuals can withdraw the fees, potentially resulting in the loss of collected funds intended for the owner and disrupting the contract's financial operations.
Manual review & foundry
Make sure to add the modifier code:
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.