Skip to content
Business logic Audit finding Intermediate

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.

v12 Follow

Originally disclosed on Code4rena

Submitted by v12

Found by V12

  • contracts/kinetic-router/src/operations.rs #L11
  • contracts/kinetic-router/src/swap.rs #L38
  • contracts/kinetic-router/src/validation.rs #L331

Targets

  • KineticRouter::supply
  • KineticRouter::swap_collateral
  • KineticRouterContract::validatesupplycapafterinterest

Affected Locations

  • KineticRouter.supply: Calls external token transfer logic and mints based on the requested amount without verifying how much underlying actually arrived.
  • KineticRouter.swap_collateral: Performs the same nominal-amount minting flow during collateral swaps after only checking transfer success.
  • KineticRouterContract.validatesupplycapafterinterest: Validates supply caps against the caller-provided amount instead of a measured post-transfer balance delta.

Description

The router crosses a trust boundary when interacting with listed SEP-41 reserve tokens, but it treats a successful transfer or transfer_from call as proof that the full requested amount was delivered. In supply, it mints aTokens and grants collateral credit for the nominal amount even though the reserve token may be fee-on-transfer, rebasing, faulty, upgradeable, or malicious. The same issue exists in swap_collateral, where amount_to_supply is minted after checking only call success rather than the actual balance increase at a_token_address. validate_supply_cap_after_interest does not mitigate this because it also reasons about the user-supplied amount instead of measured funds received. As a result, the protocol can mint claims against assets it never received and drift into undercollateralized accounting.

Root Cause

The code uses the caller-supplied amount as the source of truth across transfer, cap validation, and minting instead of verifying the actual post-transfer balance delta after calling an external token contract.

Impact

A user can obtain unbacked aTokens and inflated collateral credit by depositing or swapping into a listed reserve token that transfers less than requested. They can then borrow other backed assets or withdraw honest liquidity when available, leaving the pool with a shortfall that is ultimately borne by remaining suppliers as bad debt.

Proof of Concept

See this gist for full Proof of Concept


The original report as published on Code4rena, by v12. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the code uses the caller-supplied amount as the source of truth across transfer, cap validation and minting instead of measuring the actual post-transfer balance delta.

Impact

A user could obtain unbacked aTokens and inflated collateral credit, then borrow other backed assets or withdraw honest liquidity, leaving a shortfall borne by remaining suppliers as bad debt.

What the attacker needed

A listed reserve token that delivers less than requested; ability to call supply or swap_collateral

The fix

The router should measure the actual post-transfer balance delta and mint and validate caps against that measured amount rather than the requested amount.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When you deposit money into a lending pool, the pool should check how much actually arrived before giving you credit. Here it trusts the number the user typed in instead, so a token that quietly delivers less than asked still earns full credit, letting someone borrow against money that was never really there.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by v12

View all

37 more disclosed reports, best first.

More from K2

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.