Skip to content

Code4rena

Kuiper contest

Every publicly disclosed report for Kuiper contest and what kind of bugs they were.

disclosed reports
47
most reported class
Business logic
bug classes found
5
first disclosure
2022
Find Kuiper contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Kuiper contest chose to make public.

Smart contracts

Reentrancy vulnerability in Basket contract’s initialize() method.

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.

Kuiper contest

Medium
Business logic

Basket:handleFees(): fees are overcharged

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.

Kuiper contest

Medium
Business logic

Basket:handleFees fee calculation is wrong

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.

Kuiper contest

Medium
Business logic

Basket can be fully drained if the auction is settled within a specific block

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.

Kuiper contest

Medium
Business logic

Wrong fee calculation after totalSupply was 0

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.

Kuiper contest

High
Business logic

Change in auctionMultiplier/auctionDecrement change profitability of auctions and factory can steal all tokens from a basket abusing it

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.

Kuiper contest

Medium
Business logic

Fee calculation is slightly off

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.

Kuiper contest

Medium
Audit finding

Lost fees due to precision loss in fees calculation

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.

Kuiper contest

Medium
Smart contracts

Basket.sol#auctionBurn calculates ibRatio wrong

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.

Kuiper contest

Medium
DoS

Incorrect data location specifier can be abused to cause DoS and fund loss

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.

Kuiper contest

Medium
DoS

Basket.sol#handleFees() could potentially cause disruption of minting and burning

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.

Kuiper contest

Medium
DoS

Basket becomes unusable if everybody burns their shares

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.

Kuiper contest

Medium
Business logic

Fee on transfer tokens do not work within the protocol

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.

Kuiper contest

Medium
DoS

Basket becomes unusable if everybody burns their shares

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.

Kuiper contest

Medium
Business logic

Zero weighted baskets are allowed to steal funds

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.

Kuiper contest

Medium
DoS

Bonding mechanism allows malicious user to DOS auctions

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.

Kuiper contest

Medium
Business logic

Fee on transfer tokens can lead to incorrect approval

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.

Kuiper contest

Medium
Business logic

Fee calculation is potentially incorrect

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.

Kuiper contest

Medium
Business logic

Owner can steal all Basket funds during auction

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.

Kuiper contest

Medium
DoS

licenseFee can be greater than BASE

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.

Kuiper contest

Medium
Smart contracts

Re-entrancy in settleAuction allow stealing all funds

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.

Kuiper contest

High
Business logic

Basket.sol#auctionBurn() A failed auction will freeze part of the 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.

Kuiper contest

High
Business logic

Use safeTransfer instead of transfer

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.

Kuiper contest

Medium