Skip to content

Code4rena

K2

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

disclosed reports
60
most reported class
Business logic
bug classes found
4
first disclosure
2026
Find K2 on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what K2 chose to make public.

Access control

Factory reserve tokens cannot be upgraded through the intended path

Factory-deployed reserve tokens are assigned the configurator contract as their upgrade admin, but the documented upgrade path routes the call through the router, which does not satisfy that admin check. As a result, governance cannot reliably upgrade these tokens through the intended workflow.

K2

Medium
Business logic

Protocol fee is significantly overcharged upon liquidations

The liquidation code calculates the protocol fee from the debt being repaid rather than from the collateral bonus, contradicting the code's own comment and the intended design. This overcharges the protocol fee, since the debt to cover is usually much larger than the collateral bonus.

K2

Medium
Business logic

Stale collateral indices understate health factor

The router values collateral using a stored liquidity index that may be stale, while debt is accrued to the current time, so the two sides of an account are measured at different timestamps. This understates the health factor, which could let healthy positions be liquidated prematurely or block withdrawals, borrowing and swaps.

K2

High
Business logic

Single-asset cap check wrongfully forgives all remaining debt

The liquidation function treats exhaustion of one selected collateral asset as exhaustion of the entire collateral portfolio, clearing the user's remaining debt as bad debt. An attacker can liquidate a dust-sized secondary collateral to trigger this, causing the protocol to forgive debt still backed by other assets.

K2

High
Business logic

Every flash liquidation permanently drains the debt-asset reserve, making depositors unable to withdraw their funds

The flash liquidation mechanism in the Kinetic Router mints an internal flash loan from the aToken to fund debt repayment, but the repayment verification only checks that the aToken's balance is restored, not that net-new funds were added. As a result, each liquidation leaves the borrowed amount stranded in the router, permanently reducing the reserve's solvency and preventing depositors from withdrawing their full funds.

K2

High
Business logic

internal_liquidation_call validates close factor before min_remaining_debt bump, allowing liquidators to seize 100% of debt when only 50% is permitted

The liquidation function validates the close factor against the caller-supplied debt amount, then silently bumps that amount to the full debt if the remainder would fall below a configured minimum. A liquidator can therefore pass the 50% check and still have 100% of the debt liquidated, seizing all of the borrower's collateral.

K2

High
Business logic

Deficit treated as available liquidity

After a bad-debt liquidation, the reserve's deficit is removed from total debt without restoring liquidity, yet the interest-rate update still treats total supply minus total debt as available liquidity. This makes the reserve look healthier than it is, so borrowers can keep debt at an undercharged interest rate while the deficit persists.

K2

High
Business logic

Swap output is trusted without settlement verification

The swap adapter trusted the external pool's reported output amount without checking its own token balance change, so a malicious or buggy pool could make the adapter pay out from its existing inventory. This could drain residual funds or disrupt swaps if the adapter lacked enough tokens.

K2

High
Business logic

Stale price cache bypasses oracle config changes

The batch price function returns cached prices before checking whether an asset is enabled or its oracle source has changed, and admin functions that update oracle configuration do not clear the cache. An attacker could keep using a stale or manipulated price for borrow, withdraw, swap or liquidation flows until the cache expires, even after an admin has disabled the asset or rotated the oracle.

K2

High
Audit finding

Cached oracle prices ignore per-asset freshness limits

Cached oracle prices were validated only against the global staleness threshold and cache TTL, ignoring the stricter per-asset max_age limit that fresh reads enforce. An attacker could warm the cache while a favourable quote was valid, wait for the asset-specific heartbeat to expire, and keep using the stale price to over-borrow, delay liquidations or liquidate at an unfair bonus.

K2

High
Business logic

Zero-scaled repay clears debt

A repayment smaller than the borrow index divided by RAY floors to zero scaled debt, and the debt token's dust-cleanup branch then wipes the entire remaining debt. A borrower can repay a tiny amount and clear more debt than they actually paid, leaving the reserve short.

K2

High
Business logic

Self-liquidation with receive_a_token = true bypasses collateral seizure via from == to self-transfer in transfer_on_liquidation , socializing residual debt to reserve deficit

The router allowed a borrower to act as their own liquidator, and the aToken's transfer function did not handle self-transfers, so the collateral seizure became a no-op while the router still recorded it as removed. This let an underwater borrower wipe their residual debt into the reserve deficit and keep collateral that should have gone to an external liquidator.

K2

High
Business logic

Dust cleanup burns more debt than callers account for

The debt token's burn function can turn a partial repayment into a full debt wipe when the remaining scaled debt is one or less, but the router still assumes only the requested amount was burned. A borrower can repay a small amount and have more debt cancelled than they paid, and the router's borrow flag and deficit accounting become inconsistent.

K2

High
Business logic

Unchecked token transfers mint unbacked collateral

The router mints aTokens and grants collateral credit based on the requested amount rather than the amount of tokens actually received, so a fee-on-transfer or otherwise faulty reserve token lets a user obtain unbacked claims. The attacker could then borrow backed assets or withdraw honest liquidity, leaving remaining suppliers with bad debt.

K2

High
Business logic

Exact-collateral liquidation skips deficit accounting

The liquidation code only treats collateral exhaustion as a cap event when the computed seizure is strictly greater than the borrower's balance, so an exact-match seizure is processed as an ordinary partial liquidation. A borrower could self-liquidate to reclaim all remaining collateral while leaving untracked bad debt on the account.

K2

High
Business logic

Same-Asset Borrow Positions Can Become Insolvent With No Working Liquidation Path

The borrow path lets a user open a position where the collateral and the borrowed asset are the same reserve, but the liquidation paths cannot resolve such a position once it becomes unhealthy. Over time the growing debt index can push the position into bad debt that ordinary liquidators cannot clear.

K2

High
Business logic

MIN_LEFTOVER_BASE Prevents Valid Max-Close-Factor Liquidations

A hardcoded $1,000 minimum leftover threshold in the liquidation logic rejects partial liquidations that are otherwise valid under the protocol's 50% close factor, because the liquidation bonus can push remaining collateral below that floor. Liquidators cannot reliably repay the maximum permitted amount, which reduces liquidation throughput during stressed markets.

K2

High
Business logic

Post-exit settlement erases pending incentive rewards

The incentives contract settles rewards using the post-action balance rather than the balance held during the elapsed interval, so a full exit can reduce the settled amount to zero. Users can permanently lose incentive emissions that accrued since their last settlement when they withdraw, repay, transfer, or are liquidated.

K2

Medium
Business logic

Collateral can be enabled despite pause/freeze or invalid pricing

Collateral eligibility checks are applied inconsistently: a transfer of aTokens auto-enables the received reserve as collateral, and users can re-enable a reserve as collateral, without honouring pause/freeze state or oracle validity. An attacker could use paused or frozen reserves as backing for new borrows, and could force a reserve into a victim's collateral set during a pricing outage to block their actions.

K2

Medium
Business logic

Configured health-factor threshold is ignored in key paths

The contract stores a configurable health-factor liquidation threshold, but several liquidation and collateral-management paths still compare against a hardcoded value of 1.0. When governance sets a non-1.0 threshold, liquidators can seize collateral from positions that should be healthy, or users can become stuck in inconsistent states.

K2

Medium
Business logic

Global pause does not stop flash loans

The protocol-wide pause flag set by the emergency pause function is never checked by the flash-loan path, which only verifies per-reserve pause and active state. After admins pause the protocol, any external user could still take flash liquidity from reserves that remain individually active and run arbitrary receiver callback logic in the same transaction.

K2

Medium
Business logic

Emission updates retroactively rewrite unaccrued rewards

Reward-configuration setters in the Incentives contract change emission parameters without first checkpointing accrued rewards, so new settings apply retroactively to time that has already elapsed. An attacker or admin action could cause users to lose already-earned rewards or over-credit the prior interval, leaking excess rewards from the incentive program.

K2

Medium
DoS

Reserve-slot squatting DoS via forced aToken recipient collateral bit

The router automatically marks any aToken transfer recipient as using that reserve as collateral, without consent. An attacker can send dust aTokens from 15 reserves to fill a victim's reserve bitmap, causing future supplies to revert and blocking liquidators from receiving aTokens.

K2

Medium
Access control

Emergency admin can unpause reserves, breaking pause asymmetry

The reserve pause function in the PoolConfigurator allows the emergency admin to unpause reserves, even though the design intends that only the pool admin can unpause. A compromised emergency admin key could therefore re-enable trading on a reserve that was deliberately paused.

K2

Medium
Smart contracts

Incentives silently skip reward checkpointing by querying scaled_total_supply() with the wrong ABI type

The incentives contract queries the token's scaled_total_supply() expecting a u128, but the token returns i128, so the cross-contract call fails and the contract silently treats supply as zero. This causes claim_all_rewards() to skip the latest reward interval and set_emission_per_second() to skip checkpointing the old emission rate, leading to underpayment and retroactive mispricing of rewards.

K2

Medium
Access control

Admin transfer leaves stale emergency pause authority

The admin handoff flow leaves the previous admin's address as the emergency admin because accept_admin rotates only the pool admin and upgrade admin, not EMERGENCY_ADMIN. A former admin can still pause reserves or halt reserve deployment, blocking user actions such as supply, withdraw, borrow, repay and liquidation.

K2

Medium
Business logic

Users can bypass the first deposit check

The first-supply check in the router relied on the user's scaled token balance being zero, so anyone could send a victim a tiny amount of aToken to make that balance non-zero and skip the minimum first deposit, the oracle price check and the collateral flag. This let a user supply into an unpriced reserve, earn yield while health-factor maths reverted, and potentially open a share inflation attack.

K2

Medium