BriVault::getWinner() should have winnerSet modifier to prevent premature accessThe getWinner() function can be called even before the event winner is officially set.
This may cause it to return a zero address or an uninitialized value, leading to incorrect assumptions or unintended behavior in dependent functions or frontends.
Likelihood:
Whenever the getWinner() function is call even before the event winner is officially set.
Impact:
Causes inconsistent or misleading results.
Restrict access by adding the winnerSet modifier to ensure getWinner() can only be called after the winner has been determined:
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.