Malicious pool deployer can set a malicious interest rate contract to lock funds of vault depositors
ZeroLend One
HighSherlock
Every publicly disclosed report for ZeroLend One and what kind of bugs they were.
Newest first. Only what ZeroLend One chose to make public.
ZeroLend One
HighThe function executeMintToTreasury incorrectly reduces totalSupply.supplyShares without updating any user's balance, causing a mismatch between total shares and the sum of individual shares. This can lead to an underflow when the last users try to withdraw, locking their funds.
ZeroLend One
HighThe 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
HighThe 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
MediumThe withdrawal mechanism transfers funds to the treasury without updating the interest rate, causing the next user to deposit at an inflated rate and receive fewer shares. An attacker could exploit this by depositing after a withdrawal to gain more shares than they should.
ZeroLend One
MediumThe liquidation process transfers a protocol fee to the treasury without first updating the interest rate, leaving an inflated liquidity index. The next user to deposit, withdraw, or borrow may receive fewer shares or an incorrect debt because the stale rate is used.
ZeroLend One
MediumThe protocol's global reserve factor can be changed, but the interest accrual and treasury minting use different values for the same update, causing a mismatch between user interest and treasury shares. This can lead to protocol insolvency or locked funds.
ZeroLend One
MediumThe reallocate() function in a curated vault sets the withdrawal amount to zero when an allocator tries to empty a pool, causing the underlying pool's withdraw call to revert. This prevents allocators from fully removing liquidity from a pool, which is the intended first step to disable a market.
ZeroLend One
MediumThe NFTPositionManager's repayment function can revert due to a rounding mismatch between the debt balance change and the repaid assets. An attacker could exploit this to cause a denial of service, preventing legitimate repayments.
ZeroLend One
MediumDuring 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
HighThe 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
HighWhen 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
MediumThe 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
MediumThe 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
MediumThe 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
HighThe 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
MediumThe protocol calculates interest on borrows using compounding but interest on supplies using a linear method, so borrowers repay more than suppliers can claim. The excess tokens accumulate in the pool and become permanently locked because no function exists to skim or rebase them.
ZeroLend One
MediumThe treasury's accrued fees are stored as shares and earn supply interest, so the treasury eventually claims more than the intended reserve factor. Under frequent index updates, the treasury's claim can exceed available liquidity, preventing suppliers from withdrawing.
ZeroLend One
MediumThe 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
MediumThe 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
MediumThe liquidation function incorrectly treats debt and collateral shares as asset amounts, so a full liquidation leaves residual debt and wrongly marks the borrowing status as false. This can corrupt debt, LTV, and health factor calculations for the pool.
ZeroLend One
HighThe 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
HighThe functions that calculate a position's supply and debt balances return the share amount instead of the asset amount, causing incorrect balances throughout the system. This can prevent full repayment of debt, cause withdrawals to fail, and lead to incorrect reward distribution.
ZeroLend One
HighThe protocol does not socialise bad debt among suppliers; instead, the first suppliers to withdraw receive their full share, leaving later withdrawers with a severe loss. An attacker (or any early withdrawer) can effectively steal funds from other suppliers by withdrawing before the bad debt is realised.
ZeroLend One
HighThe 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
HighThe 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