In ERC20Gauges , contribution to total weight is double-counted when incrementGauge is called before addGauge for a given gauge.
xTRIBE contest
MediumCode4rena
Every publicly disclosed report for xTRIBE contest and what kind of bugs they were.
Newest first. Only what xTRIBE contest chose to make public.
xTRIBE contest
MediumThe setFlywheelRewards function does not verify that the new rewards contract points back to the same FlywheelCore, so if an admin sets a mismatched contract, all reward funds become permanently inaccessible to users. An attacker with admin access could intentionally cause this, or it could happen by mistake.
xTRIBE contest
MediumThe xERC4626 vault's share price can be manipulated right after creation by depositing a tiny amount and then transferring tokens directly to the vault to inflate total assets. This forces later depositors to receive fewer shares, giving the early depositor a disproportionate share of the vault.
xTRIBE contest
MediumThe function _decrementWeightUntilFree incorrectly calculates free weight by excluding deprecated gauges from the total freed weight, causing it to free more user gauge weight than necessary. An attacker could exploit this to free excessive weight, potentially disrupting gauge allocations.
xTRIBE contest
MediumThe setBooster function allows an authorised user to replace the booster contract with a malicious one that returns inflated balances for the attacker, enabling them to claim more rewards than earned and steal unclaimed rewards from other users.
xTRIBE contest
MediumThe _incrementGaugeWeight function only checks that the gauge is not deprecated, but does not verify that the gauge exists in the _gauges set. If a user accidentally passes a wrong gauge address, the function executes without warning and the user loses rewards.
xTRIBE contest
MediumThe xERC4626 contract's beforeWithdraw function subtracts the withdrawal amount from storedTotalAssets, which does not include unlocked rewards from the current cycle. If a user tries to withdraw more than storedTotalAssets, the subtraction underflows and reverts, temporarily locking funds until the rewards cycle ends.
xTRIBE contest
Medium