Skip to content

Sherlock

LEND

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

disclosed reports
39
most reported class
Business logic
bug classes found
3
first disclosure
2025
Find LEND on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what LEND chose to make public.

Business logic

Users will lose funds due to token decimal mismatches across chains

The protocol fails to normalise token decimals when processing cross-chain borrow requests, so a borrow amount is interpreted with the destination chain's decimals. A borrower could receive far more tokens than intended (or far fewer) when the same token has different decimals on the two chains.

LEND

High
Business logic

Outdated Exchange Rate Utilization

The supply function uses a stale exchange rate that ignores pending interest, so users receive more lTokens than the contract actually mints. This can cause losses for other users and reduce the underlying assets received when redeeming.

LEND

High
DoS

Transfers will fail when using USDT

The protocol uses standard ERC20 transfer calls that expect a boolean return value, but tokens like USDT do not return a boolean, causing those calls to revert. This makes core functions such as borrowing impossible to use with USDT, resulting in a denial of service.

LEND

Medium
Business logic

User may not be able to borrow even if they provide sufficient collaterals

When a user supplies collateral, the protocol does not add the corresponding market to the user's account, so the collateral is not counted when they later try to borrow. As a result, a user with sufficient collateral cannot borrow and the transaction reverts.

LEND

Medium
Business logic

Incorrect liquidity check on destination chain

The destination chain in a cross-chain lending protocol incorrectly validates that the collateral provided by the source chain covers all of the user's borrows on the destination chain, including same-chain and cross-chain borrows originating there. This causes valid cross-chain borrow requests to be rejected even when the user has sufficient collateral on the source chain.

LEND

Medium
Business logic

Incorrect maxClose Calculation in Liquidation

The liquidation function calculates the maximum repayable amount using the historical borrow balance without accrued interest, rather than the current debt. This prevents liquidators from repaying the full allowable amount, reducing their rewards and potentially delaying debt recovery.

LEND

Medium
Business logic

Cross chain debt accrues incorrectly

The cross-chain borrow interest calculation uses the same-chain LToken's borrow index instead of the correct cross-chain index, causing inaccurate debt accrual. This can lead to incorrect interest amounts and break cross-chain functionality.

LEND

High
Business logic

Cross chain repayment updates wrong borrow balance

The cross-chain repayment path calls a shared internal repayment routine that updates the borrower's same-chain borrow balance instead of the cross-chain borrow record. This leaves cross-chain debt accounting wrong, which could prevent repayment or liquidation of cross-chain borrows.

LEND

High
Business logic

The liquidation validation logic is wrong

The cross-chain liquidation check on Chain A incorrectly treats the number of collateral tokens to seize as an additional borrow amount, so a healthy position can be marked liquidatable. An attacker could liquidate valid accounts that should not be eligible.

LEND

High
Business logic

User can redeem collateral immediately after initiating the borrow, leading undercollateralization

A cross-chain borrow is recorded on the destination chain only after a message is delivered, but the source chain does not lock the user's collateral while that message is pending. The user can redeem collateral immediately after starting the borrow, so the position becomes undercollateralised once the borrow completes, and the text claims this can be repeated to drain the pool.

LEND

High
Business logic

Incorrect `srcEid` check in `borrowWithInterest()`

The borrowWithInterest() function on the source chain filters borrow records using the wrong chain identifier field, so it never matches existing cross-chain borrows and always returns zero. This makes cross-chain liquidations on that chain impossible because the liquidation check sees no outstanding debt.

LEND

High
Business logic

incorrect distribution of Lend tokens to users

The cross-chain borrow handler updates the user's collateral record before distributing LEND rewards, but the reward calculation reads that same record. As a result, the protocol distributes an incorrect amount of LEND tokens to borrowers.

LEND

High
Business logic

Incorrect srcToken Used When Cross-Chain Liquidation

In the cross-chain liquidation flow, the destination chain's borrowed token address is passed back and used as the source chain's borrowed token when locating the borrower's collateral record. Because token addresses can differ across chains, the lookup can fail and the repayment step can revert after collateral has already been seized, leaving the debt unchanged.

LEND

High
Business logic

Incorrect Debt Tracking in `_updateRepaymentState`

The repayment function checks the length of the collateral array after removing an entry, so a full repayment of a single debt leaves the token in the borrowed-assets list, while repaying one of two debts removes it prematurely. This incorrect debt tracking could let a user withdraw collateral without proper validation or cause liquidation errors.

LEND

High
Business logic

Incorrect LEND reward distribution for cross-chain borrows

The reward distribution function uses the wrong borrow records, so users who borrowed on this chain via cross-chain requests get no LEND rewards, while users who borrowed elsewhere but originated the request here receive rewards they should not get.

LEND

High
Business logic

Protocol rewards tokens permanently stuck

During liquidations the protocol records a 2.8% share of seized collateral in a protocolReward mapping, but no function can ever withdraw or use those tokens. The protocol's earned revenue therefore accumulates permanently locked in the contract.

LEND

High
Business logic

User can evade liquidation and bridge funds by exploiting cross-chain borrow/collateral invariant

A user can populate both cross-chain borrow and collateral mappings for the same asset on both chains by supplying collateral on one chain and borrowing on the other, then doing the reverse with dust amounts. This causes the borrowWithInterest function to revert, preventing liquidation and allowing the user to bridge out nearly all collateral.

LEND

High
Business logic

wrong calculation of amount of Ltokens to seize in liquidateCrossChain function

The liquidateCrossChain function calculates the number of collateral tokens to seize using the exchange rate of the destination chain's LToken instead of the source chain's LToken. This can result in seizing an incorrect amount of collateral, potentially causing liquidation to fail or seizing too little or too much.

LEND

High
Business logic

Cross-chain borrow ignores existing debt in collateral validation

The cross-chain borrow function sends only the raw collateral value to the destination chain, ignoring existing borrows on the source chain. An attacker could borrow against the same collateral on multiple chains, exceeding their borrowing capacity and leaving the protocol undercollateralised.

LEND

High
Business logic

CoreRouter Prone to Fund Depletion or Trapping Due to Miscalculated Redemption Payouts

The CoreRouter contract calculates the amount of underlying tokens to return to a user during redemption using a potentially stale exchange rate, without verifying the actual amount received from the LToken. This can cause the CoreRouter to overpay and drain its reserves, or underpay and trap excess funds.

LEND

High
Business logic

Malicious Liquidator Can Liquidate Without Providing Collateral

In the cross-chain liquidation flow, the destination chain never pulls the underlying repayment token from the liquidator before sending the seize message to the source chain. A liquidator who does not approve the token can still receive the borrower's seized collateral on the source chain while the repayment on the destination chain fails, so the borrower's debt is not reduced.

LEND

High
Business logic

If CoreRouter is liquidated, some user may suffer more loss than expected

The CoreRouter contract calculates the underlying tokens a user receives when redeeming based on a fixed exchange rate, ignoring that CoreRouter itself can be liquidated and have less collateral. If CoreRouter is liquidated, early redeemers can withdraw fully while later users suffer greater losses than expected.

LEND

High
Race condition

Multiple Cross-Chain borrows using same collateral

The borrowCrossChain function does not lock collateral before sending a cross-chain borrow request, so a user can submit multiple borrow requests on different chains using the same collateral. This allows the user to borrow more than the collateral's capacity and default, causing a loss to the protocol.

LEND

High
Business logic

Cross-chain collaterals are wrongly calculated in the borrowWithInterest function

The borrowWithInterest function incorrectly checks that both source and destination chain IDs equal the current chain ID, which is always false for cross-chain collaterals. This causes cross-chain collateral amounts to be excluded from repayment calculations, potentially leading to incorrect or failed repayments.

LEND

High
Business logic

Incorrect Collateral Check Logic in CoreRouter.sol#borrow()

The borrow function in CoreRouter.sol incorrectly recalculates the borrow amount using the user's historical borrow index, which can be zero for a first-time borrow in a market, bypassing the collateral check. An attacker could borrow assets even when their total debt exceeds their collateral, creating undercollateralized positions and bad debt for the protocol.

LEND

High