The deposit function only applied the token address limit to non-whitelisted tokens, but whitelisted tokens also counted towards that same limit. As a result, a bounty minter who had deposited many whitelisted tokens could no longer deposit non-whitelisted ones.
A depositor can set an expiration value so large that adding it to the deposit time overflows, causing the refund calculation to always revert. This permanently blocks all refunds for that bounty.
The contract's funding function accepts an ERC721 token as if it were an ERC20, but the payout function cannot transfer ERC721 tokens, causing all payouts from that bounty to revert. An attacker could permanently lock the bounty's funds by funding it with an ERC721 token.
When a tiered percentage bounty is closed, the contract snapshots the token balances to calculate payouts, but these snapshots are not updated when deposits are refunded. A tier winner can inflate the prize pool with a short-lived deposit, claim a percentage of the inflated total, then refund the deposit and withdraw the excess funds, potentially draining the contract.
The TieredPercentageBountyV1 contract takes a snapshot of token balances when a competition closes to calculate payouts, but allows deposits to be refunded afterwards. An attacker can deposit a token (especially native MATIC) with a short expiration, then refund after closing, leaving the contract unable to pay winners and causing claims to revert permanently.
Any user can fund a bounty with a malicious ERC20 token that reverts on transfer, causing the entire claim transaction to revert and preventing winners from withdrawing rewards. This locks the bounty funds until expiry.
The deposit function for tiered bounties allows a user to specify any tier when depositing an NFT, without checking that the tier exists. An attacker can fill all NFT deposit slots with NFTs assigned to non-existent tiers, preventing legitimate NFT prizes from being added and claimed.
The refund logic calculates available funds as the contract's balance minus locked funds, without tracking individual deposits. When multiple deposits exist, the first depositor to request a refund can withdraw more than their fair share, potentially taking all remaining funds.
Some ERC20 tokens revert on zero-value transfers. An attacker can add such a token to a percentage tier bounty and then refund it, leaving the token in the distribution list with a zero balance, so every payout attempt reverts and payouts are permanently bricked.
Refunding an NFT deposit does not remove the deposit receipt from the bounty's nftDeposits list, so when a payout is attempted the contract tries to transfer an NFT it no longer holds, causing all payouts to fail permanently. An attacker can exploit this to break payouts on any bounty.
The refund function in DepositManager iterates over an unbounded list of deposits, which can be made arbitrarily large, causing out-of-gas errors and preventing any refunds from being processed. An attacker could permanently lock funds in the contract.
When a bounty issuer changes the winner of a tier, the code does not reset the invoice and supporting document completion status for that tier. A new winner could then claim the prize without completing the required invoice phase.
The bounty contract's refund function returns the NFT to the funder but does not remove the deposit record, so the deposit limit of five is consumed by refunded deposits. An attacker can repeatedly deposit and refund NFTs to fill all slots, preventing legitimate NFT distribution to the claimant.
The setPayoutScheduleFixed function in a smart contract iterates over the old arrays' lengths when resizing metadata arrays, causing a revert if the new schedule has fewer items. An attacker could not exploit this directly, but it prevents legitimate resizing of the payout schedule.
OP
OpenQ
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.