Hunt prep
Before you test Tessera - Versus contest
What 18 disclosed reports say about Tessera - Versus 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 | 15 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Race condition lesson | 1 | 0 | – | – | $0 |
| Smart contracts 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.
-
Attacker can DOS OptimisticListing with very low cost
Require the total value of the new collateral to be greater than the previous, though this still allows a large holder to block proposals by creating and immediately rejecting their own proposal.
Disclosed
-
GroupBuy can be drained of all ETH.
The fix was to update the pool state to success before making the external call, as confirmed by the mitigation.
Disclosed
-
GroupBuy may purchase NFT not in the allowed list
The contract should always verify the Merkle proof, even when the proof length is zero, by hashing the token ID and checking it against the root.
Disclosed
-
Attacker can delay proposal rejection
When the collateral is less than the amount, set the amount to the collateral and refund the excess.
Disclosed
-
Orders may not be fillable due to missing approvals
Use OpenZeppelin’s safeApprove(), which checks the return code and reverts if it’s not success.
Disclosed
-
Attacker can steal the amount collected so far in the GroupBuy for NFT purchase.
The `_market` address should be whitelisted or supplied at pool creation and scrutinised; the team also suggested checking that the returned vault is registered in the VaultRegistry.
Disclosed
-
GroupBuy: Lost ETH when the NFT is bought for less than the minimum reserve price
The minReservePrices should be updated to the actual price divided by filledQuantities after a purchase, as mitigated in a pull request.
Disclosed
-
GroupBuy does not check return value of call
The contract should require that the call was successful, and this was fixed according to the report.
Disclosed
-
Loss of ETH for proposer when it is a contract that doesn’t have fallback function.
The contract should either enforce that the proposer is an externally owned account (EOA) or allow specifying a separate recipient address for ETH transfers.
Disclosed
-
OptimisticListingSeaport.propose sets pendingBalances of newly added proposer instead of previous one
The pendingBalances update should be moved before the _setListing call, and the text says this was mitigated.
Disclosed
-
Users that send funds at a price lower than the current low bid have the funds locked
The contract should revert if the price is lower than the minimum bid and the queue is already full.
Disclosed
-
Priority queue min accounting breaks when nodes are split in two
When modifying a node in the tree, remove it first and then re-add it after modification.
Disclosed
-
GroupBuys that are completely filled still don’t raise stated target amount
The minimum bid price should be rounded up instead of down to ensure enough funds are collected; the text states this was mitigated.
Disclosed
-
Only one GroupBuy can ever use USDT or similar tokens with front-running approval protections
The approval should be reset to zero before setting it to the maximum.
Disclosed