Hunt prep
Before you test Mute Switch - Versus contest
What 12 disclosed reports say about Mute Switch - Versus 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 | 7 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Smart contracts 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.
-
Bond max-buyer might end up buying the max buy of the next epoch
The user should be required to specify the epoch number for a max buy, and the transaction should revert if it does not match the current epoch.
Disclosed
-
Award is still distributed when there aren’t any stakers, allowing users to get reward without staking
The fix should ensure _mostRecentValueCalcTime is always updated, even when totalCurrentStake is zero, or enforce a minimum staking duration.
Disclosed
-
A user can ‘borrow’ dMute balance for a single block to increase their amplifier APY
The contract should require users to hold the dMute balance over a longer period, for example by sampling multiple blocks and using the minimum balance.
Disclosed
-
Attacker can front-run Bond buyer and make them buy it for a lower payout than expected
Add a minimum payout parameter so users can specify the expected payout and the transaction reverts if the actual payout is lower.
Disclosed
-
MuteBond is susceptible to DOS
Start a new epoch if maxDeposit() is smaller than a certain threshold.
Disclosed
-
MuteAmplifier.rescueTokens() checks the wrong condition for muteToken
The rescueTokens function should also subtract totalReclaimed and add a check for when totalStakers is zero but staking is still active.
Disclosed
-
dMute.sol : Attacker can push lock items to victim’s array such that redemptions are forever blocked
The contract should track underlying token amounts in a mapping instead of looping, and RedeemTo should only iterate over the user-supplied index array rather than the whole lock array.
Disclosed