Hunt prep
Before you test Winnables Raffles
What 8 disclosed reports say about Winnables Raffles: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Access control lesson | 5 | 0 | – | – | $0 |
| Business logic lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Method refundPlayers doesn't update _lockedETH in WinnableTicketManager
The refundPlayers function should subtract the refunded amount from _lockedETH before sending the refund.
Disclosed
-
Users buying too many tickets will DoS them and the protocol if they are the winner due to OOG
Set a reasonable cap for max holdings.
Disclosed
-
Admin can unrestrictedly affect the odds of a raffle by setting themselves up with role(1) in `WinnablesTicket`
The protocol team fixed this issue in the following PRs/commits: https://github.com/Winnables/public-contracts/pull/20
Disclosed
-
Admin can prevent raffle winner from claiming their reward
The admin should not be able to add or remove trusted cross-chain senders while a raffle is active.
Disclosed
-
Users will lock raffle prizes on the `WinnablesPrizeManager` contract by calling `WinnablesTicketManager::propagateRaffleWinner` with wrong CCIP inputs
The protocol team fixed this issue by adding input validation for prizeManager and chainSelector.
Disclosed
-
Attacker will prevent any raffles by calling `WinnablesTicketManager::cancelRaffle` before admin starts raffle
The vulnerability was fixed by updating the _checkShouldCancel function to only allow the admin to cancel a raffle that hasn't started yet.
Disclosed
-
Anyone can cancel a raffle with tickets == minTicketsThreshold, griefing all participants
The issue was fixed by changing the comparison in _checkShouldCancel from > to >=, so cancellation is only allowed when the ticket supply is below the minimum threshold.
Disclosed
-
The setRole() function grants role instead of removing
The protocol team fixed this issue in a pull request.
Disclosed