Access control
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.
Business logic
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.
Business logic
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.
Business logic
The swap_collateral function creates new reserve positions without enforcing the per-user reserve cap or the minimum first deposit that supply and borrow enforce. An attacker could use cheap dust swaps to fragment their account across many reserves, potentially making an underwater account unliquidatable and stranding bad debt.
Business logic
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.
Business logic
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.
Business logic
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.
Business logic
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.
Business logic
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.
Business logic
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.
Audit finding
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.
Business logic
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.
Business logic
Business logic
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.
Business logic
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.
Business logic
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.
Business logic
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.
Business logic
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.
Business logic
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.
Business logic
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.
Business logic
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.
Business logic
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.
DoS
The protocol assigns each new market a unique ID from a counter that only increases, and dropping a market retires its ID without recycling it. After 64 cumulative markets, the counter reaches the hard limit and any new market creation permanently fails, even if many markets were dropped.
Business logic
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.
Business logic
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.
DoS
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.
Access control
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.
Smart contracts
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.
Access control
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.
Business logic
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.