Hunt prep
Before you test Coded Estate Invitational
What 18 disclosed reports say about Coded Estate Invitational: 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 | 16 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| DoS lesson | 1 | 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.
-
setbidtobuy allows token purchase even when sale is no longer listed
The buy function should reject any purchase when the sell.islisted flag is false or unset.
Disclosed
-
Cancelling bid doesn’t clear token approval of bidder allows malicious bidder to steal any tokens listing for sale with auto-approve enabled
The approval granted to a bidder should be revoked when they cancel their bid.
Disclosed
-
Use of u64 for price_per_day and price_per_month limits handling tokens with 18 decimals
The price fields should be changed from u64 to u128.
Disclosed
-
Reservations can be made outside of rental property’s available_period
The reservation functions should check that the requested renting period is within the property's available period.
Disclosed
-
Insufficient price validation in transfer_nft function enables theft of listed tokens
The contract should check that the bid amount exactly matches the listed price before completing the transfer.
Disclosed
-
Lack of differentiation between rental types leads to loss of funds
The contract should use the rental_type flag to differentiate between short-term and long-term rentals and enforce that functions are only used for the correct type.
Disclosed
-
Lack of upfront cost for long-term reservations allows fake reservations, blocking real users
The reservation flow should require an upfront payment, with a cancellation policy, as the short-term rental flow already does.
Disclosed
-
Incorrect refund amount is sent to the tenant if long term reservation is cancelled after approval
The cancellation percentage should be used to calculate the refund in the cancellation function, or in finalisation instead of the protocol fee.
Disclosed
-
Malicious NFT owners can rug the reservation of the long-term
The report recommends not allowing active reservations to be rejected; the platform said monthly deposit logic would address it.
Disclosed
-
Lack of validation in setlistforsell allows changing denom while there is active bid, leading to stealing of other users’ funds
The vulnerability should be fixed by disallowing changing the denom while there is an active bid, or by storing each bid's denom separately.
Disclosed
-
User supplied owner address which is meant to be token owner is never the token owner
The mint function should set the token owner to the provided owner parameter instead of the caller's address.
Disclosed
-
Adversary can use send_nft to bypass the payment and steal seller’s token in auto-approve scenario
The use of send_nft should be disallowed when the token is on sale.
Disclosed
-
Token owner can burn their token with active rental leading to renters’ funds being stuck
The burn function should be modified to check that there are no active rentals before allowing the token to be burned.
Disclosed
-
Can impersonate another high value rental because token_uri is arbitrary and supplied by user
The token_uri should not be arbitrary; it should be generated by the contract code, and the generation logic should reject strings containing quotes or commas to prevent JSON injection.
Disclosed
-
Attakers can steal the funds from long-term reservation
Auto-approval granted through bidding should be scoped to sale actions only, and the rental withdrawal function should not accept arbitrary approved spenders as callers.
Disclosed