Hunt prep
Before you test RabbitHole Quest Protocol contest
What 11 disclosed reports say about RabbitHole Quest Protocol contest: 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 |
|---|---|---|---|---|---|
| Business logic lesson | 4 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Crypto 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.
-
RabbitHoleReceipt’s address might be changed therefore only manual mint will be available
The factory should fetch the receipt contract address directly from the quest when minting, rather than using its own stored address.
Disclosed
-
Funds can be stuck due to wrong order of operations
The fee withdrawal should be blocked until the owner has recovered the remaining tokens, for example by tracking a recovery flag and requiring it before paying the fee.
Disclosed
-
Users may not claim Erc1155 rewards when the Quest has ended
The withdrawRemainingTokens function should be modified to only withdraw tokens that are not needed for unclaimed rewards, by calculating the unclaimed amount and subtracting it from the balance before transferring.
Disclosed
-
DOS risk if enough tokens are minted in Quest.claim can lead, at least, to transaction fee lost
The claim function should accept a list of token IDs as a parameter so the user controls which tokens are processed, avoiding an unbounded loop.
Disclosed
-
When rewardToken is erc1155/erc777, an attacker can reenter and cause funds to be stuck in the contract forever
Add a nonReentrancy modifier to the claim function.
Disclosed
-
Protocol fees can be withdrawn multiple times in Erc20Quest
The recommendation was to add a flag recording that protocol fees have been withdrawn and check it to block repeat calls.
Disclosed
-
Bad implementation in minter access control for RabbitHoleReceipt and RabbitHoleTickets contracts
The modifier should require that the caller equals the minter address so the call reverts otherwise.
Disclosed
-
QuestFactory is suspicious of the reorg attack
The quest contract should be deployed via create2 with a salt that includes msg.sender and rewardTokenAddress_.
Disclosed
-
User may lose rewards if the receipt is minted after quest end time
The minting of receipts after the quest end time should be prevented, either by checking an endTime property in mintReceipt or by including a deadline in the signed hash.
Disclosed