Hunt prep
Before you test Hubble contest
What 20 disclosed reports say about Hubble contest: 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 | 6 | 0 | – | – | $0 |
| DoS lesson | 5 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 0 | – | – | $0 |
| Race condition 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.
-
Hidden governance
Unify governance into a single model, either VanillaGovernable or role-based.
Disclosed
-
Oracle.getUnderlyingPrice could have wrong decimals
The code should read the decimals from the Chainlink aggregator and scale the price accordingly, rather than using a hardcoded divisor.
Disclosed
-
ClearingHouse margin calculations will break up if an AMM returning non-6 decimals positions be white listed
The code should remove hard-coded decimals, add decimals variables, and scale AMM-returned results so that position and margin values always have 6 decimals as ClearingHouse expects.
Disclosed
-
All AMMs have to be past nextFundingTime to update
The report recommends not reverting in that case but returning instead, so the other AMMs can still be updated; the project confirmed and resolved it.
Disclosed
-
Assets sent from MarginAccount to InsuranceFund will be locked forever
Add a governance function to sweep non-VUSD tokens out of the InsuranceFund.
Disclosed
-
Liquidations can be run on the bogus Oracle prices
Add a non-zero price check and use additional oracle feed information to ensure the price is fresh, and consider tracking TWAP or introducing a time delay for liquidations.
Disclosed
-
[WP-H7] InsuranceFund#syncDeps() may cause users’ fund loss
The report recommends making vusd unchangeable or adding a balance check after changing the token address to ensure the fund's balance does not decrease.
Disclosed
-
settleFunding will exceed block gas with more markets and activity
The function should be changed to allow settling funding per market or for a subset of markets, so gas cost does not grow with the total number of markets.
Disclosed
-
After debt seizure from InsuranceFund , user can dilute all past participants.
The report suggests tracking total historical contributions for calculations, or making 1 vUSD equal 1 share when the pool total is below the total number of shares.
Disclosed
-
Ownership of Swap.vy cannot be transferred
The ownership transfer function should be restored so the owner can be updated over time, improving security and decentralisation.
Disclosed
-
Blocking of the VUSD withdrawals is possible if the reserve token doesn’t support zero value transfers
The withdrawal processing should check that the withdrawal amount is greater than zero before attempting the transfer, so zero-value entries are skipped.
Disclosed
-
Users are able to front-run bad debt settlements to avoid insurance costs
The withdrawal should be made a two-step process with a time delay between request and completion, and each request should have an expiry and recharge time to prevent constant pending withdrawals.
Disclosed
-
AMM Cannot Be initialize() Except By Governance
The recommended mitigation is to replace the syncDeps call with direct registry lookups inside initialize.
Disclosed
-
USDC blacklisted accounts can DoS the withdrawal system
The withdrawal system should be changed to skip blacklisted users or use a two-step withdrawal process where users withdraw their own funds.
Disclosed
-
Update initializer modifier to prevent reentrancy during initialization
The dependency should be upgraded to OpenZeppelin contracts 4.4.1 or later; the report notes the team confirmed and resolved it.
Disclosed