The MerkleVesting contract's withdraw function does not check the return value of the ERC20 transfer, so if the transfer fails, the user's state is updated but tokens are not sent, and they cannot withdraw again. An attacker could exploit a temporarily failing token to cause permanent loss of user funds.
The addGate function in SpeedBumpPriceGate.sol does not validate that priceIncreaseDenominator is greater than zero. If set to zero, any call to passThruGate will revert due to division by zero, disrupting the gate's functionality.
The withdraw function in PermissionlessBasicPoolFactory requires each reward token transfer to succeed before returning the deposit. If a reward token is malicious or pausable and reverts on transfer, users' deposits become stuck in the contract.
The contract used the plain ERC20 transfer function rather than a safe wrapper, so tokens that do not return a boolean on transfer (such as USDT) could cause funds to become stuck in the contract with no way to retrieve them. The submitter recommends using safeTransferFrom from SafeERC20 instead.
The Merkle tree implementation hashes leaves and parent nodes to the same 64-byte length, allowing a hash collision between a leaf and an internal node. An attacker could craft a fraudulent proof to claim airdrop tokens for an invalid address, disrupting the airdrop.
A blacklisted user cannot withdraw their funds because the token transfer fails, and the contract requires all deposits to be withdrawn before the owner can call withdrawExcessRewards. This locks the owner's excess rewards and potentially other users' funds.
The contracts assume token balances stay constant, so when rebasing tokens increase in value, the extra rewards go to the pool owner or become locked. Users therefore miss out on rewards they expected to receive.
A pool owner can add a reward token that always reverts when transferred to the global beneficiary, causing the tax withdrawal function to fail. This prevents taxes from being paid without affecting other pool functionality.
The contract assumes that ERC20 transferFrom or transfer moves exactly the requested amount, but some tokens (e.g. fee-on-transfer) deliver less. An attacker could exploit this to cause accounting mismatches, potentially leading to value leakage or re-entrancy.
The contract calculates rewards using a hardcoded 18-decimal value for all ERC20 tokens, so pools using tokens with different decimals (such as USDC with 6 decimals) produce incorrect rewards and cause loss of funds.
The owner of a pool can set a malicious reward token that reverts when the global beneficiary tries to withdraw taxes, causing the entire withdrawTaxes transaction to fail and permanently locking the taxed tokens in the contract.
The contract owner can set the global tax rate up to 99.9%, and can front-run pool creation transactions so new pools are created with that high tax rate. This lets the owner claim nearly all rewards from future pools.
The bounds check on a Merkle tree index allowed index zero even though trees are numbered from one. An attacker could only reach the following code with index zero, which the developer says reverts unless a keccak pre-image of zero bytes is known.
The withdraw() function does not check whether the token transfer succeeded, so a failed transfer could go unnoticed. An attacker could exploit this by using a token that returns false on transfer, potentially causing the contract to misbehave.
The depositTokens function does not check that the provided treeIndex exists, so it can operate on a non-existent tree with a zero token address. If the contract later uses safeTransferFrom, an attacker could deposit tokens into a non-existent tree, increasing its tokenBalance.
The passThruGate function in the SpeedBumpPriceGate contract did not return excess ether sent by users when purchasing an NFT. An attacker could exploit this by sending more ether than the current price, causing the user to lose the excess funds.
The Merkle vesting and drop contracts track claims by claimant address rather than by Merkle leaf, so when a tree contains several leaves for the same address only one claim is ever possible. The report frames this as an unclear intended behaviour rather than a direct theft, and the team confirmed it and resolved it by clarifying the documentation.
The getRewards function in PermissionlessBasicPoolFactory fails to reject receiptId 0 because the check receipt.id == receiptId passes for the default zero-value receipt. An attacker can call getRewards with receiptId 0 and receive zero rewards instead of a revert, potentially fooling functions that rely on the revert to detect uninitialised receipts.
The withdraw function contains an unbounded loop that makes external token transfer calls, so if gas costs change or the number of rewards grows, the function may revert due to exceeding the block gas limit, locking rewards in the contract.
A pool owner can prevent a specific receipt holder from withdrawing by configuring a reward token that reverts for that address, causing the entire withdrawal transaction to fail. The attacker can monitor receipt creation and target the owner's address.
Merkle-tree distribution contracts encode leaves without any chain identifier, so after a blockchain fork the same withdrawal proof is valid on both chains. An attacker could watch a withdrawal on one chain and replay the identical call on the other, sending tokens to an address that may be unusable there.
The withdraw function in PermissionlessBasicPoolFactory attempts to transfer reward tokens even when the reward amount is zero. If a reward token rejects zero-value transfers, the entire withdrawal reverts, preventing users from exiting the pool and freezing their funds.
An attacker can create many tiny deposits (receipts) that must all be withdrawn before the owner can call withdrawExcessRewards(), forcing the owner to spend unbounded gas. This could make the function too expensive to call.
The contract calculates coinsPerSecond using integer division, which can result in zero for certain configurations. This causes a division-by-zero revert when computing startTime, preventing tranche initialization and withdrawals of vested tokens.
FC
FactoryDAO 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.