The createSplit() function uses the merkleRoot as a salt for deploying a SplitProxy, so each merkleRoot can only be used once. An attacker can front-run a createSplit() transaction with a higher gas price using the same merkleRoot, causing the original transaction to revert and preventing the user from using that merkleRoot again.
The royalty vault's sendToSplitter function can be manipulated so that a tiny balance causes a zero-amount transfer to the platform fee recipient, which reverts for certain ERC20 tokens. An attacker can repeatedly empty the vault and send 1 wei, causing every CoreCollection token transfer to fail and disabling the token.
The setRoyaltyVault function does not verify that the vault's royaltyAsset matches the collection's payableToken, so an incompatible vault can be assigned. Minting fees sent to that vault become permanently stuck because the vault can only transfer its own royaltyAsset.
The proxy contract does not use EIP-1967 storage slots, so its implementation address and owner variable share the same storage layout as the logic contract. An attacker could potentially overwrite sensitive variables or cause an upgrade to brick the contract by rearranging inheritance order.
The contract calls transferFrom on a token but does not check its return value, so a failed transfer still emits an event. This can cause downstream applications to record a wrong transaction or protocol state.
The Splitter contract's incrementWindow function can be called by anyone using a fake RoyaltyVault contract, allowing the caller to inflate the recorded balance for a window. A verified user can then claim more tokens than they are entitled to, stealing funds from the contract.
The claimForAllWindows function loops over all windows up to currentWindow, which can grow indefinitely. An attacker can repeatedly call incrementWindow by impersonating a royalty vault, causing the loop to exceed the block gas limit and making claimForAllWindows unusable.
The CoreCollection contract's initialize function can be called multiple times because it sets an initialized flag but does not check it. This allows the owner to reset core variables such as payableToken, potentially retrieving all contract funds.
The owner of the RoyaltyVault contract could set the platform fee to any arbitrary value, including 100%, so that the whole balance and future balances went to an owner-controlled recipient instead of the splitter. This let the owner take all funds and, if the splitter is called during NFT transfers, could block those transfers.
A constant named PERCENTAGE_SCALE was defined as 10e5 while the code actually divided by 10000, so a collection owner could easily use the wrong denominator when creating a split. If that happened, the calculated claimable amount could exceed the contract's funds, making claims fail and locking funds permanently.
Each NFT mint creates a separate fee window in the Splitter contract, so royalties must be claimed one window at a time. Because claiming each window costs gas, collection owners will likely lose money unless a single sale's fees outweigh the cost of claiming them.
The createProject function in a smart contract can be called by anyone, allowing a malicious user to front-run a legitimate project creation and become the owner of the collection. As owner, the attacker can withdraw the payment token.
The royalty vault was meant to collect fees on both primary and secondary sales, but no on-chain mechanism existed for secondary-sale royalties. As a result, collection owners could miss out on those fees, and users could avoid paying them by trading on other marketplaces.
The starting index for NFT metadata was derived from the current block number, which is predictable. An attacker could compute future starting indexes and scrape metadata to snipe rare NFTs.
The contract called transferFrom() but did not check its boolean return value, so tokens that return false instead of reverting were treated as a successful payment. An attacker could use such a token to mint NFTs without paying the mint fee.
The mintToken function pays the payableToken before minting and updating totalSupply, allowing a reentrant call to bypass the maxSupply check and mint duplicate NFTs when the last token is minted.
The withdraw function of the CoreCollection contract moved tokens using transferFrom from the contract to its owner, but many ERC20 tokens require an allowance for that call, which the contract never grants to itself. As a result the withdrawal reverts and the funds stay locked in the contract.
The contract uses the standard ERC20 transfer function, which expects a boolean return value. Many tokens, including USDT, do not return a value, so the transfer call reverts even when the transfer would succeed, causing the contract to fail to transfer those tokens.
The contracts do not account for tokens that charge a fee on transfer or rebase, so the Splitter records more tokens than it actually holds. If all users claim, the last user cannot withdraw their share because the contract runs out of funds.
The contract's ETH transfer function uses a fixed gas amount of 30,000, which may be insufficient for a receiving contract's receive() function, preventing the recipient from receiving funds. An attacker could exploit this by deploying a contract that requires more gas, causing the transfer to fail and funds to be stuck.
JC
Joyn 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.