Hunt prep
Before you test Infinity NFT Marketplace contest
What 20 disclosed reports say about Infinity NFT Marketplace 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 | 18 | 0 | – | – | $0 |
| Access control 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.
-
canExecTakeOrder mismatches makerOrder and takerItems when duplicated items present
The matching logic was fixed to compare the full set of items rather than an aggregated count.
Disclosed
-
Maker buy order with no specified NFT tokenIds may get fulfilled in matchOneToManyOrders without receiving any NFT
The validation was changed to also require that the sum of each buy order's declared item count equals the number of tokens actually listed, and the project confirmed it was fixed.
Disclosed
-
_transferNFTs() succeeds even if no transfer is performed
The function should revert if neither the ERC-721 nor ERC-1155 interface is supported, or alternatively check the balance before and after a transferFrom call to confirm success; the report states it was fixed.
Disclosed
-
Sellers may lose NFTs when orders are matched with matchOrders()
The check should compare the number of constructed items against the seller's constraint instead of comparing the buyer's constraint to the seller's constraint.
Disclosed
-
Maker order buyer is forced to reimburse the gas cost at any tx.gasprice
The report recommends adding a maxGasCost parameter to maker buy orders so the buyer can cap the gas they will reimburse; the project said it would handle this offchain and consider adding it to the order type later.
Disclosed
-
Incorrect condition marks valid order as invalid
The check doItemsIntersect(sell.nfts, buy.nfts) was removed from the order book complication contract, and the fix was confirmed by the project.
Disclosed
-
Fund loss or griefing in all order matching functions [ matchOneToOneOrders() , matchOneToManyOrders() , matchOrders() , takeMultipleOneOrders() , takeOrders() ] because condition (seller != buyer ) is not checked in any of them
The issue was fixed by adding checks to ensure that the seller and buyer are not the same address.
Disclosed
-
Reentrancy from matchOneToManyOrders
The fix is to follow the checks-effects-interactions pattern by setting the nonce to true before making any external calls.
Disclosed
-
Calling unstake() can cause locked funds
The contract should not set the staked amount for a vesting duration to zero when no tokens from that duration are being removed (i.e., when the vested amount for that duration is zero).
Disclosed
-
Loss of funds in matchOneToManyOrders() and takeOrders() and matchOrders() because code don’t check that different ids in one collection are different, so it’s possible to sell one id multiple time instead of selling multiple id one time in one collection of order (lack of checks in doTokenIdsIntersect() especially for ERC1155 tokens)
The project added checks to prevent duplicate token IDs within a collection and removed support for ERC1155 tokens.
Disclosed
-
Accumulated ETH fees of InfinityExchange cannot be retrieved
The rescueETH function should send address(this).balance instead of msg.value.
Disclosed
-
ETH mistakenly sent over with ERC20 based takeOrders and takeMultipleOneOrders calls will be lost
The functions should be fixed to require that msg.value is zero when the currency is not ETH.
Disclosed
-
Bug in MatchOneToManyOrders may cause tokens theft
The issue was fixed by banning empty NFT transfers and ensuring the loop that transfers NFTs checks for a non-empty array.
Disclosed
-
Malicious tokens can be used to grief buyers and cause loss of their WETH balance
The project acknowledged the issue and said they are adding a maximum price variable to limit the fee.
Disclosed
-
Malicious governance can use updateWethTranferGas to steal WETH from buyers
The updateWethTranferGas function should include a sanity check to cap the gas units at a reasonable maximum, and consider using a timelock for governance settings.
Disclosed