Hunt prep
Before you test NextGen
What 17 disclosed reports say about NextGen: 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 | 8 | 0 | – | – | $0 |
| Smart contracts lesson | 5 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Access control 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 drain all ETH from AuctionDemo when block.timestamp == auctionEndTime
The fix should use a strict inequality in claimAuction to exclude the exact end time and set the bid status to false before sending refunds, as in cancelBid.
Disclosed
-
Adversary can block claimAuction() due to push-strategy to transfer assets to multiple bidders
The fix is to use a pull strategy, where each bidder calls a separate function to claim their refund, rather than sending Ether to all bidders in a loop.
Disclosed
-
MinterContract::payArtist can result in double the intended payout
The fix should verify that the artist allocations add up to the artist percentage when calling payArtist.
Disclosed
-
The RandomizerVRF and RandomizerRNG do not produce hash value.
The hash should be computed with keccak256 over the packed random words and token ID before calling setTokenHash.
Disclosed
-
Vulnerability in burnToMint function allows double use of NFT
The order should be changed to burn the token before minting the new one, but the owner must be stored before burning so the mint can still send the new token.
Disclosed
-
On a Linear or Exponential Descending Sale Model, a user that mints on the last block.timestamp mints at an unexpected price.
The fix is to change the strict inequalities in getPrice to inclusive ones (<= and >=) to match the mint function's boundaries.
Disclosed
-
Artist signatures can be forged to impersonate the artist behind a collection
The setCollectionData function should be fixed by requiring the collection total supply to be greater than zero.
Disclosed
-
Auction winner can prevent payments via safeTransferFrom callback
The logic to transfer the NFT should be moved to its own separate function.
Disclosed
-
If an airdrop happens before a mint the price could skyrocket
The price calculation should exclude airdropped NFTs by tracking them separately and deducting their count from the circulating supply used in the formula.
Disclosed
-
getPrice salesOption 2 can round down to the lower barrier, skipping the last time period
The condition should use >= instead of > to include the boundary case.
Disclosed
-
Unchecked return value of low-level call()/delegatecall()
The contract should check the success boolean returned by each low-level call and revert the transaction if the call fails.
Disclosed
-
User funds sent in excess are not refunded
The functions should be modified to refund any surplus amount to the caller after the required payment is taken.
Disclosed