The reward-claiming function loops over every epoch since the user's last claim, so if a user waits long enough the loop consumes more gas than a block allows and the claim transaction always fails. The report claims rewards could then be locked forever, though the team noted the weekly reward cadence makes this take years.
An attacker can send a tiny amount of a reward token to the staking proxy and then call the distribution function, which resets the reward period and dilutes the reward rate. This can be repeated to delay or prevent rewards from being distributed.
The contract's governance checkpointing tracks total voting supply as the sum of all locked balances, but individual voting power only counts delegated balances. An attacker could hold voting power without delegating it, making it harder to meet governance percentage thresholds and potentially disrupting the DAO.
A missing else condition in the claimRewards function causes a user's CVX tokens to be transferred to the contract but not locked when the LockCvx option is false, leaving the funds stuck. An attacker cannot exploit this; it is a user error that results in lost funds.
The locker contract did not restrict which kind of address could lock tokens, so a smart contract could lock tokens and then be tokenised, making the supposedly untransferable locked tokens liquid. A bad actor could also attract users to lock through his wrapper contract with incentives and then direct the accumulated voting power to an address of his choosing.
The safeRewardTransfer function in ConvexMasterChef can silently send less reward tokens than owed if the contract lacks sufficient cvx tokens, causing depositors to lose funds. The report claims this is unsafe because the shortfall is not reflected in accounting.
When the AuraLocker is shut down, users claiming rewards from AuraBalRewardPool cannot lock their rewards and are forced to take a 20% penalty. An attacker cannot exploit this; it is a design flaw that unfairly penalises users due to admin actions.
The add() and set() functions in the staking contract can change the total allocation points without first updating pending rewards, so the reward accounting for every pool can be calculated incorrectly. An owner who calls these functions with the update flag off could cause pools to receive wrong reward amounts.
The lock-extension logic in CrvDepositor compared a value in seconds against the number 2, so the intended two-week buffer behaved like a two-second buffer. This let the lock be extended as soon as a new week began rather than waiting two weeks.
The massUpdatePools() function loops over all pools without a bound, so if the number of pools grows large enough, the transaction can exceed the block gas limit and fail. This could prevent the pools from being updated, potentially causing accounting errors and loss of earned rewards.
Locking AURA tokens did not increase a user's voting power unless they had previously delegated to an address. An attacker could not exploit this, but affected users might miss governance votes because their locked tokens were not counted as votes.
The CrvDepositorWrapper contract relies on a Balancer pool's TWAP oracle that is infrequently updated due to low trading volume, causing the oracle price to often not reflect true asset value. Combined with a 2% trading fee, this can lead to high slippage, failed transactions, or sandwich attacks when the distribute function is called.
The getReward function allowed any caller to specify another user's account and an arbitrary start index, causing the contract to mark that user's rewards as claimed from epoch zero up to the returned index. An attacker could therefore forfeit other users' unclaimed rewards by calling getReward on their behalf with a higher start index.
The kick reward calculation in AuraLocker only uses the last locked amount instead of the user's total locked balance, so kickers receive less reward than they should. This leads to unnecessary fund loss over time and reduces the incentive to kick expired locks.
The contract required its asset balance to exactly equal a caller-supplied maximum amount, so anyone could send a tiny amount of the asset to break that equality. An attacker could repeatedly front-run liquidity providers, causing their function calls to always revert.
A potential integer overflow in the reward-per-token calculation could cause the updateReward function to always revert, permanently locking all reward tokens in the contract. An attacker could trigger this by manipulating the reward rate and total supply, but the report notes it requires specific conditions such as low total supply or high reward rate.
The add function in ConvexMasterChef does not check for duplicate lpToken addresses, allowing two pools to share the same lpToken. This causes lpSupply to be calculated incorrectly, leading to wrong reward distribution.
The ConvexMasterChef contract allows the owner to add a staking pool where the staked token is the same as the reward token (cvx). Because reward calculation uses the contract's balance of the staked token, minting rewards inflates that balance and makes the calculated reward per share too low for that pool.
A smart contract function that adds rewards to an epoch requires that the new epoch be later than the last recorded epoch, preventing backdating. An attacker can front-run a legitimate transaction that tries to add a reward to a past epoch by calling the same function with a tiny amount for a later epoch, causing the legitimate transaction to revert.
The reward distributor contract credits the full amount of a fee-on-transfer token as rewards, but the contract receives less due to the fee. As a result, early claimants can drain the reward pool, leaving later claimants unable to claim their rewards.
The deposit and withdraw functions update reward accounting after transferring rewards, allowing reentrancy if the reward token permits transfer flow control. An attacker could repeatedly reenter with a tiny amount to drain all reward tokens from the contract.
The reward vesting contract allowed funding after the vesting end time, so any funds added then would never be distributed as rewards. An attacker could deposit funds that become permanently stuck, causing a loss to the depositor.
AF
Aura Finance 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.