Hunt prep
Before you test Escher contest
What 16 disclosed reports say about Escher contest: 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 |
| Access control lesson | 3 | 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.
-
selfdestruct may cause the funds to be lost
The contract should not use selfdestruct; instead, it should mark the sale as ended by updating state and transfer the balance to the sale receiver.
Disclosed
-
Use of payable.transfer() Might Render ETH Impossible to Withdraw
The report recommends using call with a success check and a re-entrancy guard, or OpenZeppelin's Address.sendValue, and the project confirmed a fix by attempting ETH transfer and falling back to WETH.
Disclosed
-
saleReceiver and feeReceiver can steal refunds after sale has ended
The contract should reject zero-quantity buys and reject any buy once the new item count equals the final count, since the sale has then ended.
Disclosed
-
Editions should be checked if they are actually deployed from the legitimate Escher721Factory
The factories should track every Escher721 deployed by Escher721Factory and validate the sale edition against that list before creating a sale contract.
Disclosed
-
buy() in LPDA.sol Can be Manipulated by Buyers
The code should be changed to cap the number of NFTs minted when the new ID exceeds the final ID, rather than reverting.
Disclosed
-
Unsafe downcasting operation truncate user’s input
The project should handle downcasting and use a safe casting library to ensure the downcast does not produce an unexpected truncated value.
Disclosed
-
Creator can still “cancel” a sale after it has started by revoking permissions in OpenEdition contract
The report suggests either making the cancel function unrestricted to acknowledge creator control, or adding architecture changes to prevent revocation of minting permissions under certain conditions.
Disclosed
-
Ownership of EscherERC721.sol contracts can be changed, thus creator roles become useless
Override grantRole in EscherERC721.sol to revert, preventing role changes after initialization, and optionally store created editions in a mapping for tracking.
Disclosed
-
OpenEdition.buy() might revert due to uint overflow when it should work.
The multiplication should be widened to a larger unsigned integer type before comparing with the payment value.
Disclosed
-
Escher721 contract does not have setTokenRoyalty function
A public setTokenRoyalty function should be added to Escher721 that calls the internal _setTokenRoyalty, restricted to the admin role.
Disclosed
-
LPDA price can underflow the price due to bad settings and potentially brick the contract
Add a validation in the LPDAFactory.createLPDASale function to ensure that the given duration and drop per second settings can't underflow the price.
Disclosed
-
NFTs mintable after Auction deadline expires
The buy function should be fixed by adding a check that the current time is not past the sale's end time before allowing a purchase.
Disclosed
-
Inconsistency in fees
The cancel function should be revised to not call _end (which deducts fees) but instead directly emit an event and selfdestruct to the saleReceiver.
Disclosed
-
Sale contracts can be bricked if any other minter mints a token with an id that overlaps the sale
The NFT contract should manage sequential IDs and sales contracts should request the next token ID, or token ID ranges should be reserved for each minter.
Disclosed
-
ETH will get stuck if all NFTs do not get sold.
The contracts should include a function allowing the owner to claim the ETH collected from successful sales.
Disclosed