Skip to content

Code4rena

RabbitHole Quest Protocol contest

Every publicly disclosed report for RabbitHole Quest Protocol contest and what kind of bugs they were.

disclosed reports
11
most reported class
Business logic
bug classes found
5
first disclosure
2023
Find RabbitHole Quest Protocol contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what RabbitHole Quest Protocol contest chose to make public.

Business logic

RabbitHoleReceipt’s address might be changed therefore only manual mint will be available

The QuestFactory contract stores a mutable address for the RabbitHoleReceipt contract, while each Quest contract stores an immutable copy at creation. If the factory's receipt address is changed, users can still mint receipts through the factory, but those receipts are unknown to the Quest's original receipt contract, so users cannot claim rewards without manual intervention.

RabbitHole Quest Protocol contest

Medium
Business logic

Funds can be stuck due to wrong order of operations

The ERC20 quest contract lets the owner withdraw the protocol fee before recovering unclaimed tokens, and the recovery function does not account for a fee that has already been paid out. If the owner calls the functions in that order, the fee amount stays trapped in the contract and cannot be recovered.

RabbitHole Quest Protocol contest

Medium
Crypto

Possible scenario for Signature Replay Attack

The mintReceipt function in QuestFactory validates signatures that only cover the user's address and quest ID, without a deadline, chain ID, or contract address. An attacker could replay a valid signature on another QuestFactory instance or after a long delay to mint an unintended RabbitHoleReceipt token.

RabbitHole Quest Protocol contest

Medium
DoS

Users may not claim Erc1155 rewards when the Quest has ended

The Erc1155Quest contract's withdrawRemainingTokens function transfers the entire remaining token balance to the owner when the quest ends, without reserving tokens for unclaimed rewards. As a result, users who try to claim after the owner withdraws will have their transactions revert because the contract no longer holds enough tokens.

RabbitHole Quest Protocol contest

Medium
Smart contracts

When rewardToken is erc1155/erc777, an attacker can reenter and cause funds to be stuck in the contract forever

When the reward token is an ERC1155 or ERC777, an attacker can reenter the claim function and redeem an additional token, causing the redeemedTokens counter to be lower than the actual number of redeemed tokens. This mismatch can make the withdrawRemainingTokens calculation underflow and revert, leaving funds stuck in the contract.

RabbitHole Quest Protocol contest

Medium
Smart contracts

Protocol fees can be withdrawn multiple times in Erc20Quest

The withdrawFee function in the Erc20Quest contract had no record of having already paid out, so it could be called repeatedly and each call sent the protocol fee again. Because the modifier only checked the end time and not the caller, anyone could trigger these repeated withdrawals after a quest ended and drain the contract's tokens.

RabbitHole Quest Protocol contest

High
Smart contracts

QuestFactory is suspicious of the reorg attack

The createQuest function deploys quest contracts using create, so the address depends only on the factory's nonce. An attacker could exploit a blockchain reorganisation to deploy a quest at an address where a victim had already sent funds, potentially stealing those funds.

RabbitHole Quest Protocol contest

Medium
Business logic

User may lose rewards if the receipt is minted after quest end time

The receipt minting function does not check whether the quest has ended, and the signed hash has no deadline, so a user can mint a receipt after the quest end time. If the quest owner has already withdrawn remaining tokens, the user cannot claim the reward because the contract lacks funds.

RabbitHole Quest Protocol contest

Medium