Skip to content

Immunefi

ZeroLend

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

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

Disclosed reports

Newest first. Only what ZeroLend chose to make public.

Audit finding

Price assets deposited manipulation

The protocol's oracle derives a token's price from a Uniswap-v2-style pair's getAmountOut, so an attacker can move the pair's reserves to inflate the reported price. The reporter claims this lets an attacker deposit the token, borrow more than the deposit is worth, and steal funds.

ZeroLend

Informational
Crypto

Lack of chainID validation allows reuse of sign

The AToken contract's permit function does not include the chain ID in its signature validation, so a permit signed on one chain can be replayed on another chain or fork where the contract has the same address. An attacker could use a replayed permit to gain an allowance and steal the signer's tokens on the other chain.

ZeroLend

Informational
Access control

Manta ReservesSetupHelper EOA as owner

The ReservesSetupHelper contract is owned by an externally owned account (EOA) rather than a multisig or timelock. If that account's private key were leaked, an attacker could tamper with protocol parameters such as supply and borrow caps, potentially leading to protocol insolvency.

ZeroLend

Informational
Access control

Manta ACLManager EOA as RISK_ADMIN

An externally owned account holds the RISK_ADMIN role in the protocol's ACLManager. If that account's private key were leaked, an attacker could change risk parameters such as supply and borrow caps, which the report says could lead to protocol insolvency.

ZeroLend

Informational
Access control

Manta ACLManager EOA as EMERGENCY_ADMIN

An externally owned account holds the EMERGENCY_ADMIN role on the Manta ACLManager contract. If that account's private key were leaked, an attacker could use the emergency powers to grief users or halt protocol assets.

ZeroLend

Informational
Access control

ZkSync ACLManager EOA as EMERGENCY_ADMIN

The zkSync ACLManager contract grants the EMERGENCY_ADMIN role to an externally owned account rather than a contract or multisig. If that account's private key were leaked, an attacker could use the emergency powers to grief users or temporarily halt protocol assets.

ZeroLend

Informational
Business logic

Use safeTransfer instead of transfer

The contract calls transfer() on an ERC20 token without checking the boolean return value. For tokens that return false instead of reverting on failure, the contract treats the transfer as successful, which could lead to permanent loss of funds.

ZeroLend

Informational
Access control

All NFTs can be stolen by calling VestedZeroNFT

The split function in VestedZeroNFT used _requireOwned only to check that the token exists, not that the caller owns it, so anyone could call split on any tokenId and take up to 99% of the pending and upfront amounts. An attacker could steal other users' vested NFT rewards.

ZeroLend

Critical
Business logic

MultiSigWalletremoveOwner - L The bug allows th

The removeOwner function in the multisig wallet loops only up to owners.length - 1, so an owner in the last array position is marked as not an owner but never removed from the owners array. This leaves a stale entry that cannot be removed or replaced, and if the same address is added again it appears twice, which can distort confirmation counts and voting.

ZeroLend

Medium
Business logic

The main functionality of the contract EarlyZER

The startVesting function of the EarlyZEROVesting contract calls into the vesting NFT contract, which tries to pull tokens from EarlyZEROVesting itself, but no allowance was ever granted between the two contracts. As a result the main vesting entry point always reverts, so the contract's core functionality does not work.

ZeroLend

High
Business logic

Wrong implementation causing some functions in

The registerGauge function in PoolVoter.sol checks if isPool[_asset] is true before adding the asset to the _pools array, but there is no setter to set isPool to true, so the array stays empty. As a result, the distribute and distributeEx functions that rely on the pool length become unusable.

ZeroLend

High
Business logic

Some users can get more rewards than others whi

The notifyRewardAmount function allows a second reward notification within the 14-day period to increase the reward rate for a token, so a user who stakes after the second call earns more rewards for the same staking duration than a user who staked earlier. An attacker monitoring the mempool could stake after the second call and receive a disproportionate share of rewards, effectively taking yield from other users.

ZeroLend

Informational
DoS

Using permit inside the function can lead to Do

The BaseLPVault contract's _takeTokens function calls ERC2612 permit before transferring tokens, allowing an attacker to front-run the permit call and cause the original transaction to revert. This results in a denial of service for functions that rely on _takeTokens.

ZeroLend

Informational
DoS

Using permit inside the function can lead to Do

The contract's internal token-taking function calls an ERC2612 permit, which is permissionless, so an attacker can front-run the transaction by submitting the same signature directly. This makes the original transaction revert, causing a denial of service that could temporarily or permanently freeze funds.

ZeroLend

Informational
Smart contracts

EarlyZEROVesting is having a rounding issue and

The EarlyZEROVesting contract splits a vesting amount into upfront and pending portions using two separate percentage calculations, so the two rounded parts can add up to less than the original amount. It also transfers a vested NFT to the staking bonus contract without first approving that contract, so the staking path always reverts.

ZeroLend

Informational
Business logic

The function always revert if _stakeNFT True d

When a user calls createLock with the _stakeNFT flag set to true, the transaction always reverts because the contract mints the NFT to itself and then tries to transfer it without approval. If the approval were added, the NFT would be owned by the contract and the user could not retrieve it, so the staking feature is broken.

ZeroLend

High
Business logic

Voting manipulation cause by the possibility to

The staking contract mints non-transferable voting tokens when a veNFT is deposited, but the underlying veNFT can be unstaked and moved to another address, which then deposits it again to mint a fresh voting balance. An attacker could therefore multiply voting power and manipulate governance outcomes.

ZeroLend

Critical
Business logic

Griefing attack to cause the rewards of a user

The penalty calculation in VestedZeroNFT always charges 50% of the pending reward regardless of when the user claims, even after the linear vesting period ends. An attacker can call the permissionless getReward function for another user, forcing their rewards into a vesting NFT with a penalty, so the user loses half their reward when claiming later.

ZeroLend

Medium
Smart contracts

Permanent freezing of up to wei of yield each

The LendingPoolGauge contract splits a reward amount into quarters and three-quarters using integer division, which rounds down. If the amount is not divisible by four, up to three wei of the token remain stuck in the contract with no way to recover them.

ZeroLend

Informational
Business logic

ZeroLendToken doesnt allow whitelisted users to

The ZeroLendToken contract's _update function incorrectly reverts transfers from whitelisted addresses even when the contract is not paused, due to a flawed require statement. This prevents whitelisted users from ever transferring their tokens, causing a temporary freezing of funds and griefing.

ZeroLend

High
Business logic

StakingBonuscalculateBonus wrongly utilizes BPS

The StakingBonus contract's calculateBonus function divides the bonus basis points by 100 instead of 10,000, causing bonuses to be 100 times larger than intended. An attacker could receive excessive bonuses, potentially up to 100 times the pending amount, leading to protocol insolvency.

ZeroLend

Informational
Business logic

ValidationLogicvalidateBorrow - L-L Incorrect i

The borrow validation in ValidationLogic uses a strict greater-than check against the health factor liquidation threshold, so users whose health factor equals the threshold are wrongly blocked from borrowing. An attacker does not need to act; the bug itself griefs users by preventing legitimate borrowing at the boundary value.

ZeroLend

Informational
Smart contracts

Tautology in PoolVoterregisterGauge makes it im

The PoolVoter contract's registerGauge function contains a tautology: it only adds a pool to the _pools array if isPool[_asset] is already true, but isPool is only set to true inside that same conditional, so the array remains empty. As a result, distribute functions that rely on _pools either do nothing or revert, preventing gauge distribution.

ZeroLend

High
Access control

Granting DEFAULT_ADMIN_ROLE to the deployer in

The contract grants the DEFAULT_ADMIN_ROLE to the deployer in its constructor, giving that account unrestricted control over the token. If the deployer's account were compromised, an attacker could mint or burn tokens, change ownership, or disable transfers.

ZeroLend

Informational
DoS

DoS by front-runnable externall call

The Pool contract's supplyWithPermit and repayWithPermit functions call the token's permit function using signature parameters supplied by the caller. An attacker who observes a pending transaction can copy those permit parameters and submit the permit call first, consuming the nonce so the victim's combined permit-and-supply transaction reverts.

ZeroLend

Medium
DoS

DoS in Zero Registry configuration updation

The ZeroRegistry contract's configuration update functions are incomplete: the internal helpers that read and write proxy implementations are commented out, so they always return zero and never store the new address. As a result, the owner cannot update the pool configurator implementation, causing a denial of service for configuration changes.

ZeroLend

Informational
Access control

ZeroLendToken is bricked to use for whitelisted

The zeroLendToken's _update function incorrectly negates the whitelist check, so whitelisted addresses cannot transfer tokens while non-whitelisted addresses can. This breaks the intended access control and could lock whitelisted users out of their tokens.

ZeroLend

High
Access control

Griefing attack to cause users to suffer penalt

The claim function of the VestedZeroNFT contract does not check that the caller owns the token, so anyone can trigger a claim on another user's vesting NFT. Because the NFT carries an early-withdrawal penalty, an attacker can force the victim to claim early and lose half of the pending tokens to the staking bonus contract.

ZeroLend

Medium
Business logic

ZeroLend token is not behaving properly while c

The ZeroLend token's transfer check used a condition that blocked whitelisted users whenever the contract was paused, instead of allowing them through. As a result, whitelisted users could not transfer tokens during the prelaunch paused phase, contrary to the intended design.

ZeroLend

High