Skip to content

Code4rena

NextGen

Every publicly disclosed report for NextGen and what kind of bugs they were.

disclosed reports
17
most reported class
Business logic
bug classes found
4
first disclosure
2024
Find NextGen on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what NextGen chose to make public.

Smart contracts

Attacker can reenter to mint all the collection supply

The mint function updates per-address mint counts after an external call to the recipient's onERC721Received hook, allowing a malicious contract to re-enter and mint the entire collection supply, bypassing purchase limits.

NextGen

High
Business logic

Attacker can drain all ETH from AuctionDemo when block.timestamp == auctionEndTime

The AuctionDemo contract used inclusive inequalities for the auction end time, so at the exact end timestamp both bidding and claiming were allowed. Combined with a missing status update in claimAuction, an attacker could bid, claim, and cancel to receive double refunds and drain all ETH from the contract.

NextGen

High
DoS

Permanent DoS due to non-shrinking array usage in an unbounded loop

An auction contract stores every bid in an array that never shrinks, and several functions loop over the whole array. An attacker could submit many tiny bids so those loops run out of gas, permanently blocking functions such as claiming the auction.

NextGen

High
Business logic

MinterContract::payArtist can result in double the intended payout

The payArtist function uses the artist's proposed address percentages instead of the current artist percentage from the primary splits, allowing up to double the intended royalty payout if the artist percentage is later reduced. An admin could accidentally or maliciously cause overpayment, potentially draining funds from other collections.

NextGen

Medium
Smart contracts

The RandomizerVRF and RandomizerRNG do not produce hash value.

The RandomizerVRF and RandomizerRNG contracts cast the packed random words and token ID directly to bytes32 instead of hashing them, so the stored token hash is effectively just the first random number. This means the token hash is not a hash, ignores the token ID, and does not expand the randomness range as intended.

NextGen

Medium
Smart contracts

Vulnerability in burnToMint function allows double use of NFT

The burnToMint function mints a new NFT before burning the old one, allowing a malicious contract to transfer the old NFT to a buyer during the mint callback and then have it burned, so the buyer loses their payment and receives nothing.

NextGen

Medium
Business logic

Auction payout goes to AuctionDemo contract owner, not the token owner

The auction contract's claim function sends the winning bid to the contract owner instead of the token owner, so the token owner receives nothing from the sale. An attacker who is the contract owner could take the proceeds, though the report notes the token owner and contract owner are often the same trusted party.

NextGen

Medium
Access control

Artist signatures can be forged to impersonate the artist behind a collection

The setCollectionData function allowed a collection admin to set an artist address while the total supply was zero, then have that fake artist sign the collection, and finally change the artist address to a legitimate one. This let a collection admin impersonate any artist and make it appear that the legitimate artist had signed the collection.

NextGen

Medium
DoS

Auction winner can prevent payments via safeTransferFrom callback

The auction settlement function transfers the NFT to the winner using safeTransferFrom, which calls back into the winner's contract. A malicious winner can revert in that callback, causing the whole settlement to fail so other bidders are never refunded and the seller never receives the winning bid.

NextGen

Medium
Business logic

If an airdrop happens before a mint the price could skyrocket

The price calculation for a periodic NFT sale (salesOption 3) includes all NFTs in circulation, including those from an airdrop. If an airdrop occurs before the sale, the starting price is inflated, causing whitelisted users to pay more than intended.

NextGen

Medium
Smart contracts

Unchecked return value of low-level call()/delegatecall()

The smart contracts use low-level call() and delegatecall() to send Ether but do not check the returned success boolean. If a call fails, the transaction continues without reverting, so the intended recipient may not receive funds while the contract's state still records the payment as complete.

NextGen

Medium
Business logic

User funds sent in excess are not refunded

The smart contract's minting functions accept Ether amounts greater than the required price but do not refund the excess, leaving the surplus locked in the contract. An attacker could deliberately overpay to trap funds, though the primary impact is accidental loss by users.

NextGen

Medium