Hunt prep
Before you test Munchables
What 12 disclosed reports say about Munchables: 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 | 10 | 0 | – | – | $0 |
| Access control lesson | 1 | 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.
-
Miscalculation in _farmPlots function could lead to a user unable to unstake all NFTs
The calculation of schnibblesTotal should be changed to apply the division by 100 only to the bonus part, so that the total remains positive.
Disclosed
-
in farmPlots() an underflow in edge case leading to freeze of funds (NFT)
The code should check if the landlord's lastUpdated is greater than the user's lastToilDate before using it as the timestamp, to differentiate between price changes and landlord unlocking.
Disclosed
-
Invalid validation in _farmPlots function allowing a malicious user repeated farming without locked funds
The check should use less-than-or-equal to also invalidate plot 0 when the number of plots is zero.
Disclosed
-
Single plot can be occupied by multiple renters
The fix is to update the plotId in toilerState when moving plots, as shown in the recommended mitigation steps.
Disclosed
-
Failure to update dirty flag in transferToUnoccupiedPlot prevents reward accumulation on valid plot
The function should reset the dirty flag to false and update lastToilDate when transferring from a dirty plot.
Disclosed
-
Malicious User can call lockOnBehalf repeatedly extend a users unlockTime , removing their ability to withdraw previously locked tokens
The lockOnBehalf function was fixed by restricting it to only be called by the MigrationManager contract.
Disclosed
-
Invalid validation allows users to unlock early
The check should compare lastLockTime + _duration with the current unlockTime, as shown in the recommended mitigation.
Disclosed
-
When LockManager.lockOnBehalf is called from MigrationManager , the user’s reminder will be set to 0, resulting in fewer received MunchableNFTs
The _lock function should not reset the remainder when called from MigrationManager; instead, it should accumulate and carry over the remainder correctly.
Disclosed
-
Players can gain more NFTs benefiting from that past remainder in subsequent locks
The unlock function should reset the remainder when tokens are unlocked, or the remainder should be adjusted proportionally.
Disclosed
-
User’s schnibbles rewards are not harvested in the setLockDuration function
The setLockDuration function should call accountManager.forceHarvest(msg.sender) before updating the lock duration; the report states this was fixed.
Disclosed