Skip to content
Business logic Audit finding Advanced

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.

v12 Follow with 0xAmmie, 0xDemon and 14 others

Originally disclosed on Code4rena

Submitted by v12, also found by 0xAmmie, 0xDemon, Agontuk, binbin2803, coinsspor, fuzious, gh7rx0k3p7, hezze, legat, miinee, qed, ret2basic, Stakeados, TrudentHunter, Trynax, and Willy_Petrus

Found by V12

  • contracts/kinetic-router/src/router.rs #L1840
  • contracts/kinetic-router/src/router.rs #L1256
  • contracts/a-token/src/contract.rs #L579

Targets

  • KineticRouter::validateandfinalize_transfer
  • KineticRouterContract::setuserusereserveas_coll
  • ATokenContract::transfer_internal

Affected Locations

  • KineticRouter.validateandfinalize_transfer: Automatically marks the recipient as using the reserve as collateral when to_balance_after > 0, but does not apply the same collateral-eligibility checks used on other enablement paths.
  • KineticRouterContract.setuserusereserveas_coll: Lets users re-enable a reserve as collateral without rejecting reserves that are paused or frozen, so emergency reserve state is not consistently enforced.
  • ATokenContract.transfer_internal: Allows existing aTokens to be transferred into another account without enforcing reserve pause/freeze or validating whether the received balance should be eligible collateral before downstream state updates.

Description

Collateral eligibility is enforced inconsistently across the protocol’s entrypoints. ATokenContract::transfer_internal can move existing aTokens to any recipient, and KineticRouter::validate_and_finalize_transfer then auto-enables the received reserve as collateral whenever to_balance_after > 0 without checking whether the reserve is paused, frozen, or otherwise ineligible. KineticRouterContract::set_user_use_reserve_as_coll likewise allows collateral re-enablement without honoring pause/freeze, while the transfer path additionally skips the oracle validation expected on normal collateral-enabling flows. Downstream borrow and health-factor accounting then trusts the UserConfiguration collateral bit, so paused or frozen reserves can still support fresh borrowing and reserves with broken pricing can be force-enabled through unsolicited dust transfers. The same inconsistency therefore defeats emergency reserve controls and creates a griefing path during oracle outages or misconfiguration windows.

Root Cause

Collateral-enable logic is fragmented, so validate_and_finalize_transfer and set_user_use_reserve_as_coll can set UserConfiguration collateral bits without one shared eligibility check for pause/freeze and oracle validity, while later accounting treats those bits as authoritative.

Impact

A user can still use paused or frozen reserve positions as backing for new borrows in other markets, undermining incident-response controls and potentially extracting healthy assets while risky collateral remains counted. If the reserve was disabled because of a depeg, oracle issue, or market stress, this can leave the protocol exposed to undercollateralized debt. Separately, during a missing, zero, or stale-price condition, an attacker with dust aTokens can repeatedly force that reserve into a victim’s collateral set and block borrow or withdraw actions until the victim clears the flag.

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 collateral-enable logic is duplicated across entrypoints, so the transfer path and the manual enable function set the collateral bit without a shared check for pause/freeze state and oracle validity.

Impact

Paused or frozen reserves could still back new borrows, risking undercollateralised debt, and during a missing, zero or stale price an attacker with dust aTokens could repeatedly force a reserve into a victim's collateral set and block their borrow or withdraw actions.

What the attacker needed

Dust aTokens of the affected reserve; reserve paused, frozen or mispriced

The fix

Collateral enablement should go through one shared eligibility check that enforces pause/freeze state and oracle validity on every path, including transfers and manual re-enablement.

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.

In lending protocols, collateral is the asset you put up to back a loan. The protocol is supposed to refuse certain assets as collateral when they are paused, frozen, or badly priced. Here, two code paths switch collateral on without running those checks, so a risky asset can still count as backing for borrowing, and a tiny transfer can flip the setting on someone else's account.

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.