The Basket contract's initialize() method calls approve() on underlying tokens, which can trigger a reentrancy callback in a malicious token. An attacker could re-enter initialize() to overwrite the auction and factory addresses, potentially manipulating the basket's ibRatio to burn tokens and drain user funds.
The publisher of a Basket can set the minimum auction ratio to the maximum value, preventing any auction bids from succeeding and locking the basket in auction state. Users cannot enter or exit while an auction is ongoing, so they are forced to burn a bond to reset the auction and withdraw, losing 0.25% of the basket token supply.
The fee calculation uses the basket token's total supply, which includes tokens already paid as fees to the publisher and protocol owner. This causes users to be overcharged because fees are calculated on a supply that includes previously paid fees.
The fee calculation in Basket.sol divides by (BASE - feePct) instead of BASE, causing the fee to be overestimated. An attacker could exploit this to charge users more fees than intended.
The settleAuction function checks that the new ratio is at least the minimum, but if the bonder bonded too late, this check always fails, leaving the bonder unable to settle and recover their bond. Another user can then burn the bond, causing the bonder to lose their funds.
The settleAuction function calculates tokensNeeded using newRatio, which can become zero if bondForRebalance is called exactly 20000 blocks after auction start. An attacker could then drain the basket by settling with arbitrary output tokens and weights.
The fee calculation function does not update the last fee timestamp when the total supply is zero, so when tokens are minted again after a period of inactivity, fees are charged for the entire inactive period. This causes extra fee tokens to be minted, diluting the value of existing basket tokens and leading to a loss of user funds.
The factory owner can change auction parameters (auctionMultiplier and auctionDecrement) without any protection, which alters the profitability of bonded auctions. By setting auctionMultiplier to zero and auctionDecrement to its maximum, the factory owner can make settleAuction withdraw all tokens from a basket for free.
The fee calculation uses a simple interest formula that does not compound, so collecting fees more frequently results in slightly less total fee than collecting less frequently. An attacker could exploit this by triggering frequent fee collections to reduce the amount paid.
The fee calculation in a smart contract performs division before all multiplications, causing precision loss due to integer truncation. This results in lost fees, with the report estimating 1% to 7.5% of fees lost depending on parameters.
The auctionBurn function calculates the new ibRatio using a startSupply value that does not include tokens minted during handleFees, leading to an inflated ibRatio. This causes basket token holders to lose value when burning or minting, as the ratio is used throughout the protocol.
The withdrawBounty function uses a memory copy of a bounty struct instead of a storage reference, so setting bounty.active to false only modifies the copy and never deactivates the bounty. This causes repeated withdrawal attempts to revert due to insufficient funds, enabling a denial of service that prevents auction settlement and can lead to loss of bonded funds.
The fee calculation in handleFees() multiplies the elapsed time by the licence fee without capping the result, so a large enough fee or a long enough idle period makes the computed percentage exceed the base constant. This causes an arithmetic underflow that reverts, blocking minting and burning of the basket token until the publisher lowers the fee.
The contract calculates a fee ratio by dividing by the total supply of shares, which can be zero if all shares are burned. An attacker could burn all shares, causing future minting to revert and making the basket unusable.
The setBondPercentDiv function lacks checks on the new value, allowing the owner to set it to zero, which causes Auction::bondForRebalance() to revert and prevents bonding.
The protocol assumes that token transfers always deliver the full amount, but fee-on-transfer tokens deduct a fee, so the protocol's internal accounting becomes incorrect. An attacker could exploit this to cause the protocol to misaccount balances, potentially leading to loss of funds or incorrect share calculations.
The contract calculates a fee ratio by dividing by totalSupply, which can be zero if all shares are burned. This causes a division-by-zero revert, making the basket unusable for future mints.
The basket validation allowed a publisher to create a basket with zero tokens and weights, then mint shares without depositing any tokens. After changing the weights, the publisher could burn the shares to steal funds from other depositors.
The bonding mechanism allows only one user to bond an auction, and that bond cannot be burned for 24 hours. A malicious user can listen for new auctions and immediately bond, preventing anyone else from settling and freezing the auction for 24 hours.
The createBasket function approves a basket contract for the full requested token amount after a transferFrom, but fee-on-transfer tokens deliver less than that amount, so the approval exceeds the actual balance received. This can cause accounting errors or grief the protocol when such tokens are used.
The fee calculation in Basket.sol divides by BASE minus feePct instead of BASE, causing more fees to be charged than intended. An attacker could exploit this to overcharge users on fees.
The Factory contract owner can change auction parameters at any time, allowing them to set the token requirement to near zero during an auction. This lets the owner acquire all underlying tokens from a Basket without transferring the required pending tokens.
The withdrawBounty function loads the bounty into memory, so setting bounty.active to false does not update the stored state. An attacker could reuse a bounty ID that appears active, causing settleAuction to revert and the bonder to lose their bond.
The license fee could be set higher than the BASE value, causing an underflow in the handleFees function and making it revert. This would prevent any function that calls handleFees from working, wasting gas and potentially burning bonds.
The settleAuction function in the Auction contract allows re-entrancy because it accepts arbitrary input tokens, including malicious ones. An attacker can re-enter the function multiple times to progressively lower the newRatio, thereby reducing the required token balance check and draining the basket's funds.
The auctionBurn function burns auction bonds without updating the internal exchange rate (ibRatio), so the proportional share of underlying tokens for those bonds remains stuck in the contract. An attacker could cause a failed auction and then call auctionBurn to permanently freeze a portion of the basket's funds.
The owner can set a divisor to zero, causing a division-by-zero revert in a bond calculation. This blocks the bondForRebalance function, leading to a denial of service.
The contract uses the ERC20 transfer function without checking its return value, so a token that returns false instead of reverting would make the contract treat a failed transfer as successful. This could leave funds stuck in the contract.
KC
Kuiper 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.