Hunt prep
Before you test Mycelium
What 5 disclosed reports say about Mycelium: 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 | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
| DoS 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.
-
Lack of sanity checks for new plugin address in `addPlugin()`
The addPlugin() function should check that the plugin's Vault equals this contract's address and that the plugin is not already registered.
Disclosed
-
Attacker can manipulate the pricePerShare to profit from future users' deposits
The vault should require a minimum initial share mint and allocate part of the initial shares to a permanent reserve to make the share price more resistant to manipulation.
Disclosed
-
When one of the plugins is broken or paused, `deposit()` or `withdraw()` of the whole Vault contract can malfunction
The recommendation is to add a method to pause a plugin from the Vault contract level and to make the Aave V2 plugin return 0 for availableForDeposit and availableForWithdrawal when the lending pool is paused.
Disclosed
-
Frontrun `deposit()` can cause the depositor to lose all the funds
The contract should check whether total shares are zero to determine if this is the first mint.
Disclosed
-
`_withdrawFromPlugin()` will revert when `_withdrawalValues[i] == 0`
Only call `_withdrawFromPlugin()` when the plugin's balance is greater than zero, and skip zero withdrawal values in rebalance.
Disclosed