Hunt prep
Before you test Popcorn contest
What 47 disclosed reports say about Popcorn 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 | 25 | 0 | – | – | $0 |
| Access control lesson | 8 | 0 | – | – | $0 |
| Smart contracts lesson | 8 | 0 | – | – | $0 |
| Race condition 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.
-
BeefyAdapter() malicious vault owner can use malicious \_beefyBooster to steal the adapter’s token
The _beefyBooster should be checked against the permission registry's endorsed list, just like _beefyVault.
Disclosed
-
Lost Rewards in MultiRewardStaking Upon Third-Party Withdraw
The `_withdraw` function should call `_accrueRewards(owner, receiver)` instead of accruing on the caller, and a test should verify the owner can still claim rewards after a third-party withdrawal.
Disclosed
-
Attacker can deploy vaults with a malicious Staking contract
The deployVault function should verify that the staking contract was deployed by the system and uses an approved template.
Disclosed
-
Modifier VaultController._verifyCreatorOrOwner does not work as intented
Change the condition to use logical AND so that access is granted when the caller is either the creator or the owner.
Disclosed
-
Total assets of yearn vault are not correct
The adapter should use the vault's totalIdle value instead of the token balance.
Disclosed
-
Adapters logic contracts can be destroyed
Add a constructor that calls _disableInitializers() to the logic contracts, and do the same for MultiRewardStaking and Vault.
Disclosed
-
VaultController() Missing call DeploymentController.nominateNewDependencyOwner()
setDeploymentController should call nominateNewDependencyOwner on the old controller and acceptDependencyOwnership on the new one before storing it.
Disclosed
-
Management Fee for a vault is charged even when there is no assets under management and subject to manipulation.
The fee should be calculated and taken more frequently, such as on each deposit and withdrawal, so that the fee accrual period matches the time assets were actually managed.
Disclosed
-
vault.changeAdapter can be misused to drain fees
The function should be restricted to the owner or should clear the proposed adapter state after execution so it can only be called once per proposal.
Disclosed
-
erc777 cross function re-entrancy
The contract should either explicitly state that ERC777 tokens are not supported, or change the function flow to transfer assets before minting shares.
Disclosed
-
Vault fees can be set to anything when initializing
The initialize function should revert if any fee is greater than or equal to 1e18.
Disclosed
-
DOS any Staking contract with Arithmetic Overflow
The report recommends restricting which staking contracts a vault may use, capping the number of reward tokens, and replacing the per-token loop with a single global reward index; it does not say the issue was fixed.
Disclosed
-
Vault.maxWithdraw returns asset amount that is too big for Vault.withdraw
The withdrawal fee should be calculated and deducted in maxWithdraw, and the same should be done for deposit and withdrawal fees in all max* functions.
Disclosed
-
Vault::takeFees can be front run to minimize accruedPerformanceFee
Fees should be taken before adding or removing shares and assets on every deposit, mint, redeem, and withdraw.
Disclosed
-
Any user can drain the entire reward fund in MultiRewardStaking due to incorrect calculation of supplierDelta
The calculation of deltaIndex and supplierDelta should use the same number of decimals.
Disclosed