Hunt prep
Before you test ZeroLend
What 62 disclosed reports say about ZeroLend: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 31 | 0 | – | – | $0 |
| Access control lesson | 17 | 0 | – | – | $0 |
| DoS lesson | 6 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 0 | – | – | $0 |
| Race condition lesson | 2 | 0 | – | – | $0 |
| Crypto lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Manta ACLManager EOA as EMERGENCY_ADMIN
The emergency admin role should be held by a multi-signature wallet or timelocked contract rather than a single externally owned account.
Disclosed
-
All NFTs can be stolen by calling VestedZeroNFT
The split function should be fixed to require that the caller is the owner of the token before allowing a split.
Disclosed
-
MultiSigWalletremoveOwner - L The bug allows th
The loop bound should include the last index so the final owner is also swapped and popped; the report shows this corrected condition makes removal succeed.
Disclosed
-
The main functionality of the contract EarlyZER
The startVesting function should approve the vesting NFT contract for the required amount before calling mint.
Disclosed
-
Wrong implementation causing some functions in
The condition should be changed to check if isPool[_asset] is false before adding the asset and setting it to true.
Disclosed
-
Using permit inside the function can lead to Do
The contract should avoid using permit inside a function that can be front-run, or handle the case where the permit has already been used.
Disclosed
-
EarlyZEROVesting is having a rounding issue and
The report recommends computing the upfront share first and subtracting it from the total to get the pending share, and adding an approve call before the transfer; the text does not say whether this was applied.
Disclosed
-
The function always revert if _stakeNFT True d
The contract should approve itself before transferring the NFT, or better, mint the NFT directly to the staking contract so that ownership and unstaking work correctly.
Disclosed
-
Voting manipulation cause by the possibility to
The staking contract should prevent the same veNFT from being unstaked and redeposited to mint additional voting tokens, for example by tracking deposited NFTs or by making voting power non-transferable at the NFT level.
Disclosed
-
Griefing attack to cause the rewards of a user
The penalty calculation should account for the linear duration and unlock date, so that no penalty is applied after the vesting period ends.
Disclosed
-
Permanent freezing of up to wei of yield each
The contract should calculate the borrow share as the total amount minus the supply share, so no remainder is left behind.
Disclosed
-
ZeroLendToken doesnt allow whitelisted users to
The require statement should be changed to only enforce whitelist status when the contract is paused, for example by using an if statement that checks paused first.
Disclosed
-
StakingBonuscalculateBonus wrongly utilizes BPS
The calculation should divide by 10,000 instead of 100 to correctly interpret basis points.
Disclosed
-
ValidationLogicvalidateBorrow - L-L Incorrect i
The comparison should be changed from strict greater-than to greater-than-or-equal so that the threshold value is accepted.
Disclosed
-
Tautology in PoolVoterregisterGauge makes it im
The condition should be inverted to check if isPool[_asset] is false before adding the pool and setting isPool to true.
Disclosed