withdraw() missing onlyOwnerwithdraw() function was declared also the author included this function must be called by the owner when the hunt is done.Likelihood:
Individuals who are not the owner can call this function
Impact
If the hunt was finished they can call withdraw() before when the owner decides to do it
make withdraw function accessible only by the owner.
The `withdraw()` function is intended as an owner-only post-hunt recovery function, but the implementation does not actually enforce any ownership check before transferring the full remaining balance to owner. The function only requires that `claimsCount >= MAX_TREASURES` and that the contract balance is nonzero, after which it sends all ETH to the stored owner address regardless of who called the function. Therefore, the access control on the function itself is incomplete because any external account can trigger the withdrawal path once the hunt is considered over.
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.