Hunt prep
Before you test NFTX contest
What 32 disclosed reports say about NFTX 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 | 20 | 0 | – | – | $0 |
| Smart contracts lesson | 5 | 0 | – | – | $0 |
| DoS lesson | 4 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| Crypto 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.
-
transfer return value is ignored
The contracts should use safeTransfer and safeTransferFrom, or otherwise check the return value of transfer calls.
Disclosed
-
NFTXStakingZap and NFTXMarketplaceZap’s transferFromERC721 transfer Cryptokitties to the wrong address
The code was fixed to send the NFT to the 'to' address instead of the contract itself.
Disclosed
-
Rewards can be stolen
The rewards should be distributed equally over time to the stakers instead of in a single chunk on each receiveRewards call.
Disclosed
-
NFTXVaultFactoryUpgradeable implementation can be replaced in production breaking the system
The setter should be restricted so the factory can only be set once, or a data migration should be implemented and run atomically with the switch in all affected contracts.
Disclosed
-
Pool Manager can frontrun fees to 100% and use it to steal the value from users
A timelock should be added to fee changes so that front-running is impossible and users know the fees in advance.
Disclosed
-
Return variable can remain unassigned in _sendForReceiver
The report recommends ensuring every code path returns a value, for example by adding a true return at the end of the else block, or preventing receivers from being added with isContract set to false; the project confirmed and resolved it.
Disclosed
-
buyAndSwap1155WETH() function may cause loss of user assets
The function should pass maxWethIn instead of msg.value to _buyVaultToken; the report states this was confirmed and resolved.
Disclosed
-
A vault can be locked from MarketplaceZap and StakingZap
The check should be removed from the marketplace and staking zap contracts and added to the vaults if necessary.
Disclosed
-
NFTXSimpleFeeDistributor#addReceiver: Failure to check for existing receiver
Add a mapping to track whether an address is already a receiver and update it when receivers are added, modified, or removed.
Disclosed
-
Bypass zap timelock
The _timelockMint function should only update the timelock if the new finish time is later than the existing one, as shown in the recommended mitigation.
Disclosed
-
buyAndSwap1155WETH Does Not Work As Intended
The function should be updated to use maxWethIn instead of msg.value in the _buyVaultToken call.
Disclosed
-
No access control on assignFees() function in NFTXVaultFactoryUpgradeable contract
The function was removed as it was left over from upgrades.
Disclosed
-
The return value of the _sendForReceiver function is not set, causing the receiver to receive more fees
The _sendForReceiver function should return the result of the safeTransfer call in the non-contract branch, so the caller correctly knows the transfer succeeded.
Disclosed
-
Missing non reentrancy modifier
The functions should be protected with the nonReentrant modifier, as the report suggests.
Disclosed
-
xToken Approvals Allow Spenders To Spend More Tokens
The `_allowances` field should track the rebalanced amounts (i.e. the equivalent vault token amount) such that the approval value does not grow.
Disclosed