Hunt prep
Before you test Kuiper contest
What 47 disclosed reports say about Kuiper contest: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 24 | 0 | – | – | $0 |
| DoS lesson | 13 | 0 | – | – | $0 |
| Smart contracts lesson | 5 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| Race condition lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Fee calculation is slightly off
The fee calculation should be adjusted to use compound interest or otherwise ensure consistent fees regardless of collection frequency.
Disclosed
-
Wrong fee calculation after totalSupply was 0
Set lastFee to the current block timestamp when startSupply is zero.
Disclosed
-
Basket:handleFees fee calculation is wrong
The fee calculation should be fixed to divide only by BASE.
Disclosed
-
Change in auctionMultiplier/auctionDecrement change profitability of auctions and factory can steal all tokens from a basket abusing it
The auction parameters should be saved to global variables in Auction.sol when startAuction is called, and additional protections (potentially via timelock) should be added.
Disclosed
-
Basket.sol#auctionBurn calculates ibRatio wrong
The new ibRatio should be calculated using the current total supply after fees, for example by using supply = totalSupply() and newIbRatio = ibRatio * (supply + amount) / supply.
Disclosed
-
Lost fees due to precision loss in fees calculation
The fix is to perform all multiplications first and do the division only at the end of the calculation.
Disclosed
-
Publisher can lock all user funds in the Basket in order to force a user to have their bond burned
The report does not provide a specific fix, but suggests the auction mechanism is shaky and should account for changes in token values over time.
Disclosed
-
Basket:handleFees(): fees are overcharged
The fee calculation should track and subtract the amount of tokens paid as fees before computing new fees, and update this tracker when those tokens are burned.
Disclosed
-
Basket can be fully drained if the auction is settled within a specific block
The code should verify that newRatio is not zero, and the publisher should set minIbRatio above zero.
Disclosed
-
settleAuction may be impossible if locked at a wrong time.
The contract should calculate the new ratio in bondForRebalance and prevent locking tokens when the auction is doomed to fail.
Disclosed
-
Incorrect data location specifier can be abused to cause DoS and fund loss
The storage specifier should be used instead of memory for the bounty variable to ensure changes affect the actual storage.
Disclosed
-
Scoop ERC20 tokens from basket contract
The settleAuction function should check that each outputToken is part of the basket's token list.
Disclosed
-
Basket.sol#handleFees() could potentially cause disruption of minting and burning
The fee percentage should be capped, and the judge recommended capping the licence fee so reverting cases are easier to predict.
Disclosed
-
Basket becomes unusable if everybody burns their shares
Add a check in handleFees to return early if totalSupply is zero, and optionally reset ibRatio to BASE.
Disclosed
-
onlyOwner Role Can Unintentionally Influence settleAuction()
All functions affecting protocol execution should get a timelock delay, or bondForRebalance() should snapshot the factory's auctionMultiplier and auctionDecrement values for its external calls.
Disclosed