Skip to content

Sherlock

Bull v Bear

Every publicly disclosed report for Bull v Bear and what kind of bugs they were.

disclosed reports
6
most reported class
Business logic
bug classes found
3
first disclosure
2022
Find Bull v Bear on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Bull v Bear chose to make public.

Business logic

It doesn't handle fee-on-transfer/deflationary tokens

The protocol assumes that the full amount of a transferred token arrives at the contract, so with fee-on-transfer or deflationary tokens it receives less than it records. Users then cannot call settleContract or reclaimContract because the contract lacks enough tokens to pay out.

Bull v Bear

Medium
DoS

Bull can prevent `settleContract()`

The settleContract function uses safeTransferFrom to send an NFT to the bull, which calls the bull's onERC721Received hook. A malicious bull contract can consume all gas in that hook, causing the transfer to revert and preventing the bear from settling the contract.

Bull v Bear

High
Business logic

Bulls that are unable to receive NFTs will not be able to claim them later

The protocol stores NFTs for bulls that cannot receive them, but the only withdrawal function sends the NFT back to the same address, which will fail again. Thus, a bull contract that cannot accept NFTs will never be able to claim the NFT, leaving it stuck in the protocol.

Bull v Bear

Medium
Smart contracts

Attackers can use `reclaimContract()` to transfer assets in protocol to address(0)

The reclaimContract function transfers payment tokens to the address stored in bulls[contractId], which can be address(0) if the contract was never filled. An attacker can create a fake order that meets the expiry and unsettled conditions, causing the protocol to send assets to the zero address, resulting in a loss of funds.

Bull v Bear

High
Smart contracts

Reentrancy in `withdrawToken()` May Delete The Next User's Balance

The withdrawToken function in a smart contract made an external NFT transfer before clearing its internal record of who could withdraw that token. A malicious recipient contract could reenter another function during that transfer and have its balance record overwritten, leaving the NFT stuck in the protocol.

Bull v Bear

High