Skip to content

Code4rena

Tessera - Versus contest

Every publicly disclosed report for Tessera - Versus contest and what kind of bugs they were.

disclosed reports
18
most reported class
Business logic
bug classes found
4
first disclosure
2023
Find Tessera - Versus contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Tessera - Versus contest chose to make public.

Business logic

Attacker can DOS OptimisticListing with very low cost

The OptimisticListing contract only checks that a new proposal's price per token is lower than the existing one, without constraining the collateral amount. An attacker can create a proposal with a very low collateral (e.g., 1) and a price just below the current one, blocking legitimate proposals and holding the vault hostage.

Tessera - Versus contest

High
Race condition

GroupBuy can be drained of all ETH.

The purchase function in GroupBuy lacks re-entrancy protection and sets the success flag only after an external call, allowing an attacker to re-enter and drain all ETH from the contract.

Tessera - Versus contest

High
Business logic

GroupBuy may purchase NFT not in the allowed list

When the purchase proof is empty, the GroupBuy contract compares the token ID directly to the Merkle root instead of verifying a proof. This allows an attacker to purchase any token whose ID equals the Merkle root, even if it is not in the allowed list.

Tessera - Versus contest

Medium
Business logic

Attacker can delay proposal rejection

The rejectProposal function reverts if the proposed listing's collateral is less than the amount being rejected. An attacker can front-run a rejection transaction by reducing the collateral to one unit less than the amount, causing the rejection to fail and delaying it until the proposal period ends.

Tessera - Versus contest

Medium
Business logic

Orders may not be fillable due to missing approvals

The contract does not check the return value of ERC20 approve, so an order can be listed even if the approval to the conduit failed. An attacker could create an unfillable order that locks user funds, as the only remedies are costly or may never occur.

Tessera - Versus contest

Medium
Access control

Attacker can steal the amount collected so far in the GroupBuy for NFT purchase.

The purchase function in GroupBuy.sol did not validate the user-supplied market contract address, allowing an attacker to supply a malicious contract that receives the raised funds and returns an address holding the NFT so ownership checks pass. The attacker could steal the collected ETH or acquire the NFT without contributing.

Tessera - Versus contest

High
Business logic

GroupBuy: Lost ETH when the NFT is bought for less than the minimum reserve price

The purchase function allows an NFT to be bought for less than the minimum reserve price, but the claim function still deducts the full reserve price from each contributor's contribution, causing excess funds to be lost. An attacker could exploit this to make contributors lose their ETH when the NFT is bought at a discount.

Tessera - Versus contest

High
Smart contracts

GroupBuy does not check return value of call

The GroupBuy contract sends ETH using a low-level call but does not check whether the call succeeded. If the recipient contract reverts, the ETH remains in GroupBuy while the contract still zeroes the user's contribution, causing a loss of funds for the recipient.

Tessera - Versus contest

High
Business logic

Loss of ETH for proposer when it is a contract that doesn’t have fallback function.

The contract's ETH transfer helper falls back to sending WETH if a direct ETH transfer fails, which can happen when the recipient is a contract without a fallback function or with insufficient gas. An attacker or unlucky proposer could have their ETH converted to WETH and stuck in a contract that cannot handle WETH, causing a loss of funds.

Tessera - Versus contest

Medium
Business logic

Users that send funds at a price lower than the current low bid have the funds locked

When a user contributes funds after the supply is filled and at a price not higher than the current minimum bid, the bid is not recorded and the funds are not added to the user's withdrawable balance. The user's ether becomes stuck in the contract until the NFT is purchased, which may never happen.

Tessera - Versus contest

Medium
Business logic

Priority queue min accounting breaks when nodes are split in two

The priority queue used to order bids is a binary heap whose ordering depends on bid quantity when prices are equal. When the current minimum bid is partially filled, its quantity is reduced in place without re-heapifying, corrupting the heap so the wrong bid is treated as the minimum and some bids become unreachable.

Tessera - Versus contest

Medium
Business logic

GroupBuys that are completely filled still don’t raise stated target amount

The minimum bid price for a GroupBuy pool is calculated by dividing the initial price by the total supply, which rounds down. When all Raes are minted at this minimum price, the total collected can be less than the initial price, so the purchase reverts and the NFT cannot be bought.

Tessera - Versus contest

Medium