The first staker in the AmmGauge may receive fewer rewards than expected because the pool is not checkpointed immediately after their stake, causing their accumulated reward to be calculated incorrectly. An attacker could exploit this by being the first staker and then claiming rewards after others stake, potentially receiving less than deserved.
The token's total supply is not deterministic because the inflation update uses the old rate before checking if the decay period has passed, so if no one mints or calls the update for a while around the decay point, the total available grows too much. An attacker could mint more than the stated cap of 268435456 tokens.
The BkdLocker contract's fee burning function fails when the contract holds ETH but none of the liquidity pools use ETH as their underlying token. An attacker could send a small amount of ETH to the contract to cause the fee burning to revert, blocking fee deposits.
The contract uses the deprecated transfer function to send ETH, which forwards a fixed gas stipend of 2300. If the recipient is a contract that needs more gas to process the payment, the transfer reverts, causing the swap to fail.
The migrate function lacks a check that the new reward token differs from the current one, so if governance migrates to the same token, the token is added twice to the replaced list. When users claim fees, their shares are counted twice for that token, allowing them to receive more fees than they should.
The initialisation guard in the BkdLocker contract checked a configuration value that the caller could set to zero, so the contract could be initialised more than once. A malicious governance caller could change boost and withdraw-delay settings, leading to unfair reward distribution and loss of yield.
When a pool is delisted, its reference is removed from the address provider, so the reward handler's dynamic list of pools no longer includes it. Consequently, unclaimed fees for that pool remain stuck in the contract and cannot be burned or distributed.
The Minter contract updates the inflation rate before checkpointing the gauges, so rewards accrued since the last checkpoint are calculated using the new, lower rate. This causes users to receive fewer rewards than they should.
The FeeBurner contract initiates token swaps through SwapperRouter, which uses a Chainlink oracle to set a minimum output amount for slippage protection. If the oracle fails, the minimum output is set to zero, allowing an attacker to sandwich the swap and extract value.
The LpGauge contract's poolLastUpdate variable was never initialised, so it defaulted to zero. A user who staked before the gauge was initialised could be credited with an enormous share of rewards, letting them claim most available governance tokens or block everyone else from claiming.
The report describes several ways a malicious admin or governance could steal user funds or lock balances, such as by setting a migration pool that forwards funds to an attacker-controlled address, adding unlimited reward tokens to cause out-of-gas errors on withdrawal, or setting a malicious fee burner. An attacker with admin privileges could therefore rug users.
The KeeperGauge contract's claim functions divide by perPeriodTotalFees[i] without checking for zero, so if an epoch has no fees, a division by zero reverts and blocks all reward claims. An attacker or normal operation could trigger this by advancing or killing an epoch without fees, causing a denial of service until fees are reported.
The view functions for checking claimable rewards are inconsistent: one function includes an inflation recipient's share while others do not. A user could see a larger claimable amount than they actually receive.
Removing a keeper gauge in the InflationManager does not check whether a TopUpActionFeeHandler still references it, so the killed gauge makes fee reporting revert. Any top-up execution then fails until governance points the fee handler at a new gauge, which the text says could delay or block top-ups during volatile markets.
When pool weights are updated, only the changed pool is checkpointed, so other pools use an outdated total weight for the entire period since their last checkpoint, leading to incorrect token distribution. This can cause users to lose part of their claims or too many tokens to be distributed, preventing some from claiming.
A strategy contract can transfer staked tokens to a non-strategy address, which then claims rewards as a normal user. Because the vault's accounting is not updated on transfer, the non-strategy address receives more rewards than it should, and the reward system pays out more than designed.
The depositFees function adds rewards to a pool without a time-based vesting, so an attacker can front-run the deposit by locking a large amount of tokens, then immediately claim a disproportionate share of the new rewards. This allows the attacker to steal a significant portion of the newly added reward tokens that were intended for existing stakeholders.
The first staker in the AMM Gauge can manipulate share calculations by staking a tiny amount and frontrunning subsequent stakers, causing later stakers to receive fewer shares than they should. This allows the first staker to capture a disproportionate share of rewards.
The smart contracts use the deprecated transfer() function to send Ether, which forwards only 2300 gas. If the recipient is a contract that needs more gas (e.g., a multisig wallet or a proxy), the transfer will fail, potentially locking funds or breaking functionality.
The constructor for a smart contract strategy did not enforce the same validation on the slippage tolerance parameter as the setter method did. An attacker could deploy or configure the contract with an invalid slippage tolerance, potentially causing trades to fail or execute at unfavourable prices.
The withdrawal fee decay timer is reset whenever a user receives LP tokens, even a tiny amount. An attacker can send 1 wei of LP tokens to another user to reset their lastActionTimestamp, extending the time they must wait for their withdrawal fee to decrease.
The top-up action uses a default swap slippage of 5% and allows up to 40%, which lets malicious keepers or owners sandwich the swap and profit at the user's expense.
The CEthInterface incorrectly declared that mint() returns a uint256, but Compound's CEther.mint() returns nothing. As a result, calling topUp() with the native token always reverts.
The CompoundHandler's topUp() function calls mint with a uint256 argument on a native cToken (CEther), but CEther's mint takes no arguments, so the function selector is wrong and the call always reverts. This prevents native token top-ups from ever succeeding.
The contract uses OpenZeppelin's safeApprove to set token allowances without first resetting them to zero, so a second top-up call reverts because the allowance is already non-zero. This prevents customers from topping up again, potentially leading to liquidation.
The smart contracts used Chainlink's latestRoundData without checking whether the returned price was stale or from an incomplete round. An attacker could exploit stale prices to cause incorrect valuations, potentially leading to financial loss.
The CvxCrvRewardsLocker contract performs a token swap through the CRV cvxCRV pool without any slippage protection, because the minimum output value is set to zero. An attacker could front-run or sandwich the swap to extract value, causing a loss of funds for the contract.
A staker can cause a keeper's top-up transaction to revert by deploying a contract at the payer address that reverts on receiving ether. This prevents the keeper from earning rewards and wastes their gas.
BT
Backd Tokenomics contest
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.