Hunt prep
Before you test xTRIBE contest
What 7 disclosed reports say about xTRIBE 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 | 4 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| Smart contracts 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.
-
FlywheelCore ’s setFlywheelRewards can remove access to reward funds from current users
The function should require that the new rewards contract's flywheel address equals the current flywheel address.
Disclosed
-
First xERC4626 deposit exploit can break share calculation
The vault should be initialised with a sufficiently large first deposit, or a small amount of shares should be permanently burned, to make the manipulation impractical.
Disclosed
-
Incorrect accounting of free weight in _decrementWeightUntilFree
The code should be fixed by removing the special treatment of deprecated gauges and including their weight in the total freed weight.
Disclosed
-
FlywheelCore.setBooster() can be used to steal unclaimed rewards
The flywheelRewards should be made immutable, or only allowed to change if there are no current users.
Disclosed
-
ERC20Gauges : The _incrementGaugeWeight function does not check the gauge parameter enough, so the user may lose rewards
The function should also check that the gauge is in the _gauges set and revert if it is not.
Disclosed
-
xERC4626.sol Some users may not be able to withdraw until rewardsCycleEnd the due to underflow in beforeWithdraw()
The code should be changed to handle withdrawals that exceed storedTotalAssets by adjusting lastRewardAmount and storedTotalAssets based on totalAssets, or by overriding maxWithdraw to return storedTotalAssets.
Disclosed