Hunt prep
Before you test Venus Prime
What 23 disclosed reports say about Venus Prime: 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 | 13 | 0 | – | – | $0 |
| DoS lesson | 5 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
| Access control 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.
-
The owner is a single point of failure and a centralization risk
The project should use a multi-signature setup or role-based authorisation rather than a single owner; the team says the owner is already a governance timelock contract.
Disclosed
-
DoS and gas griefing of calls to Prime.updateScores()
The loop counter should be incremented in the for loop statement to ensure it increments even when continue is executed.
Disclosed
-
Scores.sol: Incorrect computation of user’s score when alpha is 1
The guard should only return zero when either value is zero and alpha is not 1; the project fixed it by disallowing alpha values of 0 or 1.
Disclosed
-
A malicious user can avoid unfavorable score updates after alpha/multiplier changes, resulting in accrual of outsized rewards for the attacker at the expense of other users
The mint function should increment pendingScoreUpdates if it is nonzero, to prevent manipulation.
Disclosed
-
Fix utilization rate computation
The utilization rate computation should return 1 if reserves > cash.
Disclosed
-
Comptroller.healAccount doesn’t distribute rewards for a healed borrower
The Comptroller should distribute rewards to the account that were earned before setting the debt to zero.
Disclosed
-
Potential Unjust Liquidation After Exiting Market
The preSeizeHook should be updated to check that the borrower has enabled the market as collateral before allowing seizure; the project confirmed they will add this check.
Disclosed
-
ShortFall contract might transfer an incorrect amount of tokens to the highest bidder.
The contract should query the oracle for the convertibleBaseAsset price and convert the bid amount into that token's units before transferring, and the report says this should be done even for USD-pegged tokens.
Disclosed
-
Malicious actor can win an auction unfavorably to the protocol by block stuffing
The bidding window should be made longer, decreasing over time, or dependent on the amount at stake to discourage block stuffing.
Disclosed
-
placeBid() Possible participation in auctions that have been modified
The placeBid function should accept an auctionStartBlock parameter and revert if it does not match the current auction's start block, ensuring the auction has not been restarted.
Disclosed
-
Incorrect blocksPerYear constant in WhitepaperInterestRateModel
The blocksPerYear constant should be changed to 10512000 to match the 3-second block time on BNB Chain.
Disclosed
-
It’s possible to borrow, redeem, transfer tokens and exit markets with outdated collateral prices and borrow interest
The Comptroller should update the price and accrue interest for every collateral asset involved in the calculation, not just the one that triggered the action.
Disclosed
-
liquidateAccount will fail if the transaction is not included in the current block
The check should be loosened to verify the account's liquidity snapshot shows no shortfall instead of requiring a zero borrow balance.
Disclosed
-
RiskFund.swapPoolsAsset does not allow the user to supply deadline, which may cause swap revert
The function should be changed to accept a user-supplied deadline parameter and pass it to the swap call.
Disclosed
-
_ensureMaxLoops causes liquidateAccount to fail in certain conditions
The team will apply the mitigation suggested by the warden, which involves adjusting the loop limit check.
Disclosed