A miscalculation in the _farmPlots function causes schnibblesTotal to become negative when finalBonus is negative, leading to an overflow that reverts the transaction. This blocks unstaking of NFTs that have been staked in certain realms, potentially locking them permanently.
A user's staked plot can become invalid when the price per plot is increased, causing a timestamp underflow in the farming calculation that reverts the transaction. This prevents the user from farming or unstaking, effectively freezing their funds.
The _farmPlots function fails to invalidate plot 0 when the landlord unlocks all funds, allowing a user to keep farming and collecting rewards from that plot without any locked funds. An attacker could repeatedly farm plot 0 to gain unearned rewards, unbalancing the game economy.
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.
The transferToUnoccupiedPlot function moves a Munchable to a valid plot but fails to clear the dirty flag, so the user continues to earn no rewards. An attacker could exploit this to keep a user unfairly penalised, though the report frames it as a bug affecting legitimate users.
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.
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.
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.
The approveUSDPrice function in LockManager.sol lacks a check to prevent a price feed from approving a price after it has already disapproved it. An attacker with a price feed role could vote both for and against the same proposal, potentially manipulating the voting outcome.
The lock manager contract fails to reset the remainder of locked tokens when a player unlocks, allowing the remainder to carry over to future locks. An attacker can exploit this to receive more NFTs than deserved by strategically locking and unlocking tokens.
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.
MU
Munchables
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.