Skip to content

Hunt prep

Before you test K2

What 60 disclosed reports say about K2: 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 15

Ideas drawn from this program's disclosed reports and our class lessons. None of them is a known bug: each is a place to look, and the reports linked under it are why. Check the current scope before testing anything.

  1. 1

    Rounding mismatch between allowance deduction and scaled share movement

    Business logic Read the lesson

    The aToken transfer_from path deducts allowance in nominal units while moving rounded-up scaled shares, and a sibling report shows the router validating transfers against rounded nominal views. Test other allowance and balance paths (transfer, withdraw, borrow) for the same nominal-versus-scaled mismatch, since the rounding technique recurs in this codebase.

    From the lessons: Swap, deposit, mint, withdrawal and settlement functions in AMMs, vaul...; Test the protocol with several ERC20 variants (different decimals, no...

  2. 2

    Reserve deficit omitted from other risk-limit checks

    Business logic Read the lesson

    Borrow-cap and debt-ceiling checks ignore the stored reserve deficit, and a related report shows the interest-rate update also treats deficit as available liquidity. Test every place that reads total debt or available liquidity (caps, ceilings, rate updates, reserve queries) to see whether the deficit is consistently excluded or included.

    From the lessons: Solidity lending and commitment pool contracts with maturity borrows,...; Liquidation and force repay paths.

  3. 3

    Pause flag coverage across entry points

    Access control Read the lesson

    Several reports show the global pause is checked inconsistently: repayments blocked but interest accrues, flash loans and direct aToken transfers still work. Enumerate every state-changing entry point (supply, withdraw, borrow, repay, transfer, flash loan, liquidation, swap) and check which ones consult the global pause versus only per-reserve state.

    From the lessons: Frozen-market liquidation and voluntary close paths during the weekend...; Flash loan entry points and their interaction with frozen pools and ut...

  4. 4

    Oracle cache freshness and config invalidation

    Business logic Read the lesson

    Cached prices ignore per-asset max_age, bypass disabled assets and survive oracle config changes, and a related report shows the router caches oracle config keyed only by address. Test every consumer of cached prices (borrow, withdraw, liquidation, swap) after admin config changes and after per-asset heartbeat expiry to see whether stale data is still trusted.

    From the lessons: Check whether the oracle can return a stale price or a deprecated pool...; Price feeds, pool share weights and Curve or Balancer pool oracles use...

  5. 5

    Liquidation accounting when seizure equals or exceeds collateral

    Business logic Read the lesson

    Reports show exact-match seizure skips deficit accounting, deeply underwater positions panic, and per-asset exhaustion forgives all debt. Test liquidation with collateral exactly equal to the bonus-inclusive seizure, with multiple collateral assets where one is dust, and with deeply underwater positions to see whether deficit and remaining debt are recorded correctly.

    From the lessons: The liquidation routine that seizes collateral, deducts a liquidator f...; Liquidation and force repay paths.

  6. 6

    Close-factor and minimum-remaining-debt interaction

    Business logic Read the lesson

    One report shows the close factor is validated before the minimum-remaining-debt bump, and another shows the engine forwards uncapped debt. Test the liquidation entry points with amounts just under and just over the close-factor cap, with and without a configured minimum remaining debt, to see whether the final debt covered matches the validated amount.

    From the lessons: Liquidation and force repay paths.; Front-run a liquidation with a minimal repayment of the outstanding de...

  7. 7

    Reward index checkpointing across config and balance changes

    Business logic Read the lesson

    Reports show stale reward indexes accrue across inactive periods, config setters rewrite unaccrued rewards, claims use stale balances and post-exit settlement erases pending rewards. Test reward configuration changes, deactivation and reactivation, and full exits to see whether the index is checkpointed before each state change and whether the prior balance is used for settlement.

    From the lessons: Staking contracts with reward indexes, vesting periods, native reward...; Reward accumulation updates in staking and vault contracts.

  8. 8

    Reserve slot and collateral-bit invariants across entry points

    Business logic Read the lesson

    Reports show the slot-limit check uses the wrong predicate, transfers auto-enable collateral without consent, and swap_collateral skips the reserve cap and minimum first deposit. Test every path that can set a collateral bit or create a reserve position (supply, transfer, swap_collateral, manual enable) against the 15-reserve limit and pause/freeze state.

    From the lessons: Solidity lending and commitment pool contracts with maturity borrows,...; Initialise and setup functions on newly deployed contracts.

  9. 9

    Cross-contract ABI and caller forwarding in configurator and incentives

    Access control Read the lesson

    Reports show the configurator forwards the wrong caller, calls cap setters with an extra argument, and the incentives contract decodes scaled_total_supply with the wrong type. Test every configurator-to-router and incentives-to-token call for argument count, caller identity and return type, since these silent failures disable admin and reward paths.

    From the lessons: Two-step admin and ownership transfer functions.

  10. 10

    ACL list bounds and membership enforcement

    Access control Read the lesson

    One report shows ACL membership checks only examine the first 64 entries while setters store unbounded lists, and another shows liquidation bypasses reserve-level access rules. Test whitelist and blacklist enforcement at the boundary (entries beyond 64, tail entries) and across liquidation and settlement paths that may skip reserve-level checks.

  11. 11

    Health-factor threshold and overflow edge cases

    Business logic Read the lesson

    Reports show the configurable health-factor threshold is ignored in key paths and that tiny nonzero debt with large collateral overflows the health-factor calculation. Test liquidation and collateral-management paths with a non-default threshold and with dust debt plus large collateral to see whether the stored threshold is read and whether the calculation saturates.

    From the lessons: Solidity lending and commitment pool contracts with maturity borrows,...; Liquidation and force repay paths.

  12. 12

    Token transfer accounting for non-standard reserve tokens

    Business logic Read the lesson

    One report shows minting and collateral credit use the requested amount rather than the received balance, and a sibling shows swap output is trusted without settlement verification. Test supply, swap and liquidation settlement with fee-on-transfer and non-returning tokens to see whether the actual balance delta is measured before crediting.

    From the lessons: Use a fee-on-transfer token as the asset or collateral and check wheth...; Use a token that returns false or no value from transfer and check whe...; Any contract that calls transfer or transferFrom directly on an arbitr...

  13. 13

    Dust repayment and burn result handling

    Business logic Read the lesson

    Reports show zero-scaled repay clears debt and dust cleanup burns more than callers account for. Test repay and liquidation settlement at the boundary where the scaled repayment floors to zero or one, and check whether the router uses the actual burn result rather than the requested amount for borrow flags and deficit accounting.

    From the lessons: Liquidation and force repay paths.; The liquidation routine that seizes collateral, deducts a liquidator f...

  14. 14

    Flash liquidation repayment verification and pause state

    Business logic Read the lesson

    Reports show flash liquidation drains the debt reserve because repayment only checks the aToken balance is restored, and prepared flash liquidation bypasses collateral pause at execution. Test the two-step flash liquidation flow for net-new funds verification and for pause checks at execution time, since both steps reload reserves but only one validates state.

    From the lessons: Flash loan entry points and their interaction with frozen pools and ut...; Re-enter borrower operations or a flash loan path and check whether fu...

  15. 15

    Reserve ID and asset-list lifecycle bounds

    DoS Read the lesson

    Reports show reserve IDs are retired without recycling until creation permanently fails, and the oracle asset list can grow past its cap and truncate on removal. Test reserve creation and drop cycles and oracle asset add and remove sequences to see whether counters and list invariants are preserved across the full lifecycle.

    From the lessons: Initialise and setup functions on newly deployed contracts.

Public bounties only; many reports disclose without the amount.

ClassReportsPaidMedianHighestIn all
Business logic lesson 40 0 – – $0
DoS lesson 8 0 – – $0
Access control lesson 7 0 – – $0
Smart contracts lesson 4 0 – – $0

What was fixed

All reports

The 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.