Bribe providers must fund a BribeRewarder contract with enough tokens for all bribe periods, but if some tokens remain unused (e.g., no voters or rounding), they become permanently stuck because there is no recovery function. An attacker could not directly exploit this, but the briber loses funds.
The Voter contract's vote function did not check that a staking position's remaining lock period was longer than the voting epoch, so a user could vote with a position that expired during the epoch and then withdraw, re-stake and vote again in the same epoch. This allowed double voting with the same stake amount and broke the one-vote-per-balance invariant.
During an emergency unlock, the addToPosition function remains unrestricted, allowing owners of existing staking positions to increase their voting power and manipulate the voting outcome. An attacker could pre-create many small positions and later add large amounts to them, gaining a monopoly on votes and unfairly capturing bribe rewards.
When an approved actor renews or extends a staking position, the rewards are sent to the approved actor instead of the position owner. This could cause reward tokens to be lost or sent to the wrong user, especially if the approved actor is a smart contract.
A permissionless bribe rewarder contract could be funded with a custom token minted to the maximum supply, causing an arithmetic overflow in the reward accounting when a user votes. This blocked all votes to a chosen pool for the period, letting the attacker steer rewards toward pools they favoured.
The Voter contract allows anyone to register up to five BribeRewarder instances per pool per voting period without permission or token whitelisting. An attacker can deploy worthless tokens and register five rewarders for many future periods, blocking genuine rewarders from being added and disrupting the incentive mechanism.
The protocol does not properly handle ERC20 tokens that charge a fee on transfer, rebase, or modify balances outside of transfers. This can cause accounting errors, failed withdrawals, and potential loss of funds.
The claim function in BribeRewarder iterates over all voting periods from the start to the latest finished period, but the rewards array only has entries up to the last bribing period plus one extra. If a user does not claim within two periods after the last bribing period, the claim call reverts with an out-of-bounds error, permanently locking all unclaimed rewards.
The addToPosition function recalculates the lock duration as a weighted average but keeps the original lock multiplier, allowing users to retain a high multiplier with a shorter lock time. This creates an unfair advantage and an arbitrage opportunity when combined with renewLockPosition.
The BribeRewarder contract's deposit function incorrectly checks that the caller is the NFT owner, but the caller is actually the Voter contract. This causes all vote transactions to revert for any pool that has a bribe rewarder.
The harvestPositionsTo function contains a contradictory check that only allows the token owner to call it, even though an earlier check permits an approved address. As a result, an approved address cannot harvest on behalf of the NFT owner.
The documented call order for setting top pool weights causes new pools to accrue rewards for time before they were added, inflating LUM emissions. An attacker could exploit this to drain extra rewards from the protocol.
The access control check in `addToPosition` always passes because it compares the caller to themselves, so any user can add a tiny amount to another user's staking position. This recalculates the victim's lock duration, potentially making them ineligible to vote and earn rewards.
MT
MagicSea - the native DEX on the IotaEVM
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.