Skip to content

Code4rena

Escher contest

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

disclosed reports
16
most reported class
Business logic
bug classes found
3
first disclosure
2023
Find Escher contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Escher contest chose to make public.

Smart contracts

selfdestruct may cause the funds to be lost

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.

Escher contest

High
Smart contracts

Use of payable.transfer() Might Render ETH Impossible to Withdraw

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.

Escher contest

Medium
Business logic

saleReceiver and feeReceiver can steal refunds after sale has ended

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.

Escher contest

High
Access control

Editions should be checked if they are actually deployed from the legitimate Escher721Factory

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.

Escher contest

Medium
Business logic

buy() in LPDA.sol Can be Manipulated by Buyers

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.

Escher contest

Medium
Smart contracts

Unsafe downcasting operation truncate user’s input

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.

Escher contest

Medium
Smart contracts

OpenEdition.buy() might revert due to uint overflow when it should work.

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.

Escher contest

Medium
Access control

Escher721 contract does not have setTokenRoyalty function

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.

Escher contest

Medium
Business logic

NFTs mintable after Auction deadline expires

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.

Escher contest

Medium
Business logic

Inconsistency in fees

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.

Escher contest

Medium
Business logic

ETH will get stuck if all NFTs do not get sold.

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.

Escher contest

Medium