Skip to content

Code4rena

Aura Finance contest

Every publicly disclosed report for Aura Finance contest and what kind of bugs they were.

disclosed reports
23
most reported class
Business logic
bug classes found
4
first disclosure
2022
Find Aura Finance contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Aura Finance contest chose to make public.

Business logic

Rewards distribution can be delayed/never distributed on AuraLocker.sol#L848

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.

Aura Finance contest

Medium
Business logic

Improperly Skewed Governance Mechanism

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.

Aura Finance contest

Medium
Business logic

User will lose funds

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.

Aura Finance contest

Medium
Business logic

Increase voting power by tokenizing the address that locks the token

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.

Aura Finance contest

Medium
Business logic

ConvexMasterChef : safeRewardTransfer can cause loss of funds

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.

Aura Finance contest

Medium
Business logic

CrvDepositor.sol Wrong implementation of the 2-week buffer for lock

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.

Aura Finance contest

Medium
DoS

massUpdatePools() is susceptible to DoS with block gas limit

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.

Aura Finance contest

Medium
Business logic

Locking up AURA Token does not increase voting power of individual

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.

Aura Finance contest

Medium
Audit finding

CrvDepositorWrapper.sol relies on oracle that isn’t frequently updated

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.

Aura Finance contest

Medium
Access control

User can forfeit other user rewards

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.

Aura Finance contest

High
DoS

DDOS in BalLiquidityProvider

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.

Aura Finance contest

Medium
Smart contracts

Integer overflow will lock all rewards in AuraLocker

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.

Aura Finance contest

Medium
Business logic

Duplicate LP token could lead to incorrect reward distribution

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.

Aura Finance contest

Medium
Business logic

ConvexMasterChef : When _lpToken is cvx, reward calculation is incorrect

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.

Aura Finance contest

Medium
DoS

Users can grief reward distribution

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.

Aura Finance contest

Medium
Business logic

Reward can be vested even after endTime

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.

Aura Finance contest

Medium