Skip to content

Code4rena

Munchables

Every publicly disclosed report for Munchables and what kind of bugs they were.

disclosed reports
12
most reported class
Business logic
bug classes found
3
first disclosure
2024
Find Munchables on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Munchables chose to make public.

Business logic

Single plot can be occupied by multiple renters

The LandManager contract's transferToUnoccupiedPlot function fails to update the plotId in the ToilerState struct when moving a staked token to a new plot. This allows a user to move their token while the contract still believes it is in the original plot, leading to incorrect plot occupancy and potential reward misattribution.

Munchables

High
Access control

Malicious User can call lockOnBehalf repeatedly extend a users unlockTime , removing their ability to withdraw previously locked tokens

The lockOnBehalf function allows anyone to lock tokens on behalf of another user, which resets the recipient's unlock time and can be called repeatedly with zero quantity to indefinitely delay withdrawal. An attacker could also prevent a user from reducing their lock duration by making a small deposit on their behalf.

Munchables

High
Business logic

Invalid validation allows users to unlock early

The setLockDuration function incorrectly validates the new unlock time by comparing block.timestamp + duration with the current unlockTime, but then sets unlockTime to lastLockTime + duration. This allows a user to repeatedly reduce their lock duration and unlock tokens earlier than intended, potentially receiving bonuses as if they had locked for the original period.

Munchables

High
Business logic

When LockManager.lockOnBehalf is called from MigrationManager , the user’s reminder will be set to 0, resulting in fewer received MunchableNFTs

When the MigrationManager calls LockManager.lockOnBehalf, the _lock function skips the remainder calculation and resets the stored remainder to zero. This causes users to lose any previously accumulated remainder, resulting in fewer MunchableNFTs being minted and also resets the unlock time, preventing users from accessing their funds.

Munchables

Medium
Business logic

User’s schnibbles rewards are not harvested in the setLockDuration function

The setLockDuration function updates a user's lock duration without first harvesting accrued schnibbles rewards, so the new duration is applied retroactively to the entire period since the last harvest. This lets a user change their lock duration and receive more rewards than they should.

Munchables

Medium