Hunt prep
Before you test Aura Finance contest
What 23 disclosed reports say about Aura Finance contest: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 14 | 0 | – | – | $0 |
| DoS lesson | 4 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Reward may be locked forever if user doesn’t claim reward for a very long time such that too many epochs have been passed
The claim functions should accept an end epoch index and only calculate rewards from the start index up to the minimum of the current epoch count and that end index, and should support partial reward claiming.
Disclosed
-
Rewards distribution can be delayed/never distributed on AuraLocker.sol#L848
A similar protective check to the one in queueNewRewards should be added to the reward notification logic, so a new period only starts if the added reward is over 120% of the remaining distribution.
Disclosed
-
Improperly Skewed Governance Mechanism
The total voting supply should track only delegated balances, as recommended by the warden and the judge.
Disclosed
-
User will lose funds
The condition should be changed to only transfer CVX if the LockCvx option is enabled, as shown in the recommended mitigation.
Disclosed
-
Increase voting power by tokenizing the address that locks the token
The team added a check so the owner can blacklist non-EOA addresses from making further locks, and the issue was resolved via the linked pull requests.
Disclosed
-
ConvexMasterChef : safeRewardTransfer can cause loss of funds
The report recommends using a standard safeTransfer instead of safeRewardTransfer, which was addressed in a pull request.
Disclosed
-
ConvexMasterChef : When using add() and set() , it should always call massUpdatePools() to update all pools
The _withUpdate flag was removed from add() and set() so massUpdatePools() is always called before totalAllocPoint changes, and the fix was merged.
Disclosed
-
CrvDepositor.sol Wrong implementation of the 2-week buffer for lock
The team confirmed and resolved it by keeping the unlock time in weeks and comparing week counts, as the report recommended.
Disclosed
-
massUpdatePools() is susceptible to DoS with block gas limit
The function should be fixed by limiting the maximum number of loop iterations to prevent hitting the block gas limit.
Disclosed
-
Locking up AURA Token does not increase voting power of individual
The _lock function should be updated so that if a user has no delegatee, it automatically delegates to the user and checkpoints the locked tokens, converting them to voting power immediately.
Disclosed
-
CrvDepositorWrapper.sol relies on oracle that isn’t frequently updated
The project resolved to use the CrvDepositorWrapper price as a guideline and let the keeper provide a minOut, but the report recommends using Chainlink oracles for a real-time estimate.
Disclosed
-
AuraLocker kick reward only takes last locked amount into consideration, instead of whole balance
The fix was to change the reward calculation to use the total locked balance instead of the last locked amount.
Disclosed
-
DDOS in BalLiquidityProvider
The exact-equality check should be removed or changed to require the balance to be greater than or equal to the requested maximum amount; the project resolved it in linked pull requests.
Disclosed
-
Integer overflow will lock all rewards in AuraLocker
The fix was to increase the size of rewardPerTokenStored to uint256 or uint224, and optionally enforce rewardRate < 1e17 in notifyRewardAmount.
Disclosed
-
Duplicate LP token could lead to incorrect reward distribution
The add function should track all lpTokens in a global variable and reject any duplicate.
Disclosed