The FixedPrice and OpenEdition contracts use selfdestruct to end a sale, which destroys the contract code. If a buyer sends a transaction after the contract is destroyed, the transaction succeeds but the sent value is locked forever in the empty contract address.
The smart contracts use Solidity's transfer() to send ETH, which forwards only a fixed small amount of gas. If a recipient is a smart contract whose fallback needs more gas, the transfer fails and the ETH becomes stuck.
After the last NFT in a Dutch auction was sold, the contract still allowed a zero-quantity buy at an arbitrary price, which re-triggered the end-of-sale payout logic. The sale receiver or fee receiver could use this to drain the overpayments that buyers were owed as refunds.
The sale factory contracts only checked that the caller had a role on the edition contract supplied in the sale data, without confirming that edition was deployed by the legitimate Escher721Factory. A malicious creator could register a fake edition contract they controlled and use it to take buyers' payments while delivering nothing.
A buyer could front-run other buyers' transactions to buy the last NFTs one at a time, causing their transactions to revert and preventing them from completing their purchases. This allowed the attacker to secure a larger share of the NFTs while also reducing the seller's revenue.
The smart contract code unsafely downcasts user-supplied amounts and prices from larger integer types to smaller ones, which truncates the values. An attacker could pay a large amount but have their balance recorded as a much smaller truncated value, leading to loss of funds when they cannot get a refund for the full amount.
The creator of an OpenEdition sale can revoke the sale contract's minting permission after the sale has started, causing all buy attempts to revert. This effectively cancels the sale even though the cancel function is restricted to before the start time.
A user with the CREATOR_ROLE can create an ERC721 edition and grant the DEFAULT_ADMIN_ROLE to a non-creator, who can then revoke the creator's roles and take full ownership. This bypasses the intended restriction that only creators can administer editions.
The buy function in OpenEdition casts the requested amount to a smaller integer type and multiplies it by the sale price, so the multiplication can overflow and revert. An attacker or ordinary buyer could find that a legitimate purchase fails when the total price exceeds the smaller type's maximum.
The Escher721 contract lacks a public setTokenRoyalty function, so artists cannot set a per-token royalty as the documentation states. An artist could not configure a custom royalty receiver for an individual token.
The LPDA contract's getPrice function subtracts dropPerSecond * timeElapsed from startPrice without checking for underflow. If the drop exceeds the start price, the subtraction underflows and reverts, bricking the buy function and preventing the sale from completing, which can lead to loss of funds.
The buy function in the LPDA contract did not check whether the auction's end time had passed, so a purchase could still be made after the deadline. An attacker could mint NFTs at the final price after the auction was supposed to be over.
The FixedPrice contract deducts a fee from the contract balance when a seller cancels a sale before its start time, even though no sale has occurred. This could lead to loss of funds for the seller if they accidentally sent ETH to the contract.
The sale contracts mint tokens with sequential IDs starting from a configurable value. If any other entity mints a token with an ID that falls within the sale's range, the buy function will revert because it tries to mint an already existing token, bricking the sale and potentially locking funds.
The FixedPrice and LPDA sale contracts only transfer collected ETH to the sale receiver when every NFT in the batch is sold. If only some NFTs sell, the ETH remains stuck in the contract with no function to withdraw it, forcing the creator to buy the remaining NFTs to recover funds.
EC
Escher contest
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.