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.
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.
The claimAuction function uses a push strategy to refund all bidders, which can be blocked by a malicious bidder who makes the external call revert or consume all gas. This locks all funds from the auction, preventing refunds, the owner from receiving earnings, and the winner from getting the NFT.
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.
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.
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.
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.
The price calculation for descending sales uses strict inequalities, so when a user mints exactly at the public end time, the function returns the initial mint cost instead of the final cost. This causes the user to pay an incorrect price, either too high or too low.
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.
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.
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.
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.
The getPrice function in salesOption 2 uses integer division that rounds down, causing the price to skip the final time period and drop directly to the end price. An attacker could exploit this to purchase NFTs at a lower price than intended during the skipped period.
A bidder can place a bid at the exact second the auction ends, after the winner has already claimed the auction, causing the bidder's funds to become stuck in the contract with no way to refund them.
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.
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.
NE
NextGen
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.