Skip to content

Sherlock

ZeroLend One

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

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

Disclosed reports

Newest first. Only what ZeroLend One chose to make public.

Business logic

Interest rate is updated before updating the debt when repaying debt

The repay function updates interest rates before reducing the debt, so the new rate is calculated using the old debt amount. This causes suppliers to keep accruing interest based on the previous debt even after all borrows are repaid.

ZeroLend One

High
Audit finding

`GenericLogic.sol` contract assumes all price feeds has the same decimals but is a wrong assumption that leads to an incorrect health factor math

The contract assumes all Chainlink price feeds have the same number of decimals, but some feeds (e.g., AMPL/USD) use 18 decimals instead of the usual 8. This causes incorrect calculation of total collateral and debt in base currency, leading to a wrong health factor that affects liquidation, borrow, withdraw, and other operations.

ZeroLend One

Medium
Business logic

A Reserve Borrow Rate can be significantly decreased after liquidation

During liquidation, the borrow rate of the reserve is updated using the burnt debt shares instead of the remaining debt shares, causing the borrow rate to drop significantly. A malicious borrower can manipulate the borrow rate of their unhealthy position and repay debt at a much lower rate.

ZeroLend One

High
Business logic

Liquidation can be DOSed due to lack of liquidity on collateral asset reserve

The protocol allows collateral assets to be borrowed, so an attacker can drain the liquidity of a collateral reserve, preventing liquidators from seizing collateral and causing bad debt. This can lead to a denial of service on liquidations and potential loss of funds for lenders.

ZeroLend One

High
Race condition

Malicious actors can execute sandwich attacks during market addition with existing funds

When a market with existing assets is added or re-added to a vault, the vault's total assets increase immediately without minting new shares, allowing an attacker to sandwich the addition by depositing just before and withdrawing just after to profit from the changed asset-to-share ratio. This causes a loss for existing vault users proportional to the added market's assets.

ZeroLend One

Medium
Business logic

CuratedVaults are prone to inflation attacks due to not utilising virtual shares

The vault contract lacks virtual shares and assets, allowing an attacker to front-run a depositor and inflate the share price so that the depositor receives zero shares. The attacker can then redeem the single share to capture the depositor's funds, though the attack may also cause a loss to the attacker.

ZeroLend One

Medium
DoS

Using the same heartbeat for multiple price feeds, causing DOS

The protocol uses a single 30-minute heartbeat for all Chainlink price feeds across all chains, but different feeds have different heartbeats. On chains where the heartbeat is longer than 30 minutes, the staleness check fails and transactions revert, causing a denial of service.

ZeroLend One

Medium
Business logic

An attacker can hijack the `CuratedVault`'s matured yield

The vault's totalAssets function does not update the pool's liquidityIndex, so when an attacker deposits after yield has accrued, they receive shares based on the stale total assets and can redeem them to capture a portion of the matured yield. An attacker can use a flash loan to deposit and redeem in the same transaction, profiting at the expense of existing vault users.

ZeroLend One

High
DoS

Position Risk Management Functionality Missing in Position Manager and dos in certain conditions

The PositionManager contract used by protocol users does not expose the function that lets a user mark a reserve as collateral or not, so users cannot manage the risk of their positions. If an admin later sets the loan-to-value of one collateral reserve to zero, withdrawals of other reserves through the PositionManager revert, denying users the ability to reduce their exposure.

ZeroLend One

Medium
Business logic

`CuratedVaultSetters::_supplyPool()` does not consider the pool cap of the underlying pool, which may cause `deposit()` to revert or lead to an unintended reordering of `supplyQueue`

The curated vault's `_supplyPool()` function deposits assets into underlying pools but ignores each underlying pool's own supply cap. This can cause deposits to revert even when the underlying pools have combined capacity, or cause liquidity to be allocated to a different pool than intended.

ZeroLend One

Medium
Business logic

NFTPositionManager's `repay()` and `repayETH()` are unavailable unless preceded atomically by an accounting updating operation

The repay and repayETH functions in NFTPositionManager revert when called standalone because the debt balance check compares a stale previous debt (before interest accrual) with the current debt after repayment, causing a mismatch. This makes core repayment functionality unavailable unless preceded by another state-updating operation in the same block, potentially leading to liquidations.

ZeroLend One

Medium
Business logic

`LiquidationLogic@_burnCollateralTokens` does not account for liquidation fees when withdrawing collateral during liquidation leading to incorrect accounting and Pools insolvency

The liquidation logic burns collateral shares based only on the amount sent to the liquidator, ignoring the protocol fee that is also transferred out of the pool. This leaves the pool and the liquidated user with more supply shares than they should have, allowing the user to withdraw funds that were already paid as fees and potentially making the pool insolvent.

ZeroLend One

High
Business logic

Liquidated positions will still accrue rewards after being liquidated

The rewards distributor contract does not update a user's position when their NFT position is liquidated, so the liquidated user continues to accrue rewards based on an outdated balance. An attacker could exploit this to earn rewards without providing collateral, effectively stealing rewards from the protocol or other users.

ZeroLend One

High
Business logic

The rewards distribution in the NFTPositionManager is unfair

The NFTPositionManager calculates rewards based on the asset balance rather than the shares held in the pool, so users who do not update their position receive fewer rewards than those who make frequent small deposits or withdrawals. An attacker could repeatedly update their position to claim a disproportionate share of rewards.

ZeroLend One

Medium