Hunt prep
Before you test Joyn contest
What 20 disclosed reports say about Joyn 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 | 10 | 0 | – | – | $0 |
| DoS lesson | 4 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
| Smart contracts 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.
-
DoS: Attacker May Front-Run createSplit() With A merkleRoot Causing Future Transactions With The Same merkleRoot to Revert
The salt parameter should be removed if the address does not need to be known in advance, or msg.sender should be concatenated with the merkleRoot in the salt.
Disclosed
-
CoreCollection’s token transfer can be disabled
The transfer should not require immediate fee distribution success; instead, fees should be recorded for later distribution, or a minimum royalty amount threshold should be introduced before calling sendToSplitter.
Disclosed
-
STORAGE COLLISION BETWEEN PROXY AND IMPLEMENTATION (LACK EIP 1967)
The proxy should be fixed to use EIP-1967 storage slots for its implementation and admin addresses.
Disclosed
-
Not handling return value of transferFrom command can create inconsistency
The code should check the return value of transferFrom with a require statement, as done in RoyaltyVault.sol.
Disclosed
-
DoS: claimForAllWindows() May Be Made Unusable By An Attacker
The function should be modified to allow claiming for a specific range of windows (startWindow and endWindow) instead of all windows, and ensure endWindow is less than currentWindow.
Disclosed
-
CoreCollection can be reinitialized
Add an onlyUnInitialized modifier to the initialize function to prevent re-initialization.
Disclosed
-
Centralisation RIsk: Owner Of RoyaltyVault Can Take All Funds
The fee should be capped at a reasonable maximum, the splitter should be called before any fee change, or the fee should only ever be allowed to go down; the project said it intended to fix it.
Disclosed
-
Differing percentage denominators causes confusion and potentially brick claims
The unused PERCENTAGE_SCALE constant should be removed, or its value changed to 10_000 and used consistently; the project confirmed it intends to fix the issue.
Disclosed
-
Gas costs will likely result in any fees sent to the Splitter being economically unviable to recover.
The window mechanism should be removed so fees accumulate in one pool that can be claimed in a single transaction.
Disclosed
-
RoyaltyVault.sol is Not Equipped to Handle On-Chain Royalties From Secondary Sales
The team should add an on-chain royalty mechanism following the ERC2981 standard; the report says they intend to fix it.
Disclosed
-
CoreCollection: Starting index is pseudo-randomly generated, allowing for gameable NFT launches
The project acknowledged the issue but chose not to fix it; the judge suggested using a combination of blockhash, coinbase, sender, and index to improve randomness.
Disclosed
-
ERC20 transferFrom return values not checked
The contract should check the success boolean of every transferFrom() call, or use a safe transfer helper such as OpenZeppelin's SafeERC20.
Disclosed
-
Duplicate NFTs Can Be Minted if payableToken Has a Callback Attached to it
The contract should be fixed by adding reentrancy protections and following the checks-effects-interactions pattern, updating state before external calls.
Disclosed
-
Funds cannot be withdrawn in CoreCollection.withdraw
The withdrawal should use transfer instead of transferFrom.
Disclosed
-
ERC20 tokens with no return value will fail to transfer
The contract should use OpenZeppelin's SafeERC20 library, which handles tokens that do not return a boolean.
Disclosed