Hunt prep
Before you test xETH - Versus Contest
What 10 disclosed reports say about xETH - Versus 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 | 7 | 0 | – | – | $0 |
| DoS 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.
-
Unspent allowance may break functionality in AMO
The fix was to change safeApprove to approve.
Disclosed
-
First 1 wei deposit can produce loss of user xETH funds in wxETH
The stake function should revert if the calculated mint amount is zero, and this was partially mitigated but not fully.
Disclosed
-
Rebalance amounts should be checked so that updated balances falls within thresholds
A check should be added so that after minting or burning xETH the resulting percentage falls within the accepted threshold range.
Disclosed
-
Inconsistent check for LP balance in AMO
The check should consider both the staked balance and the LP tokens held in the CVXStaker contract, or be removed since withdrawAndUnwrap() will fail if tokens are insufficient; the project mitigated by adding a getTotalBalance function.
Disclosed
-
Zero token transfer can cause a potential DoS in CVXStaker
The contract was fixed by adding a balance check before each transfer, as confirmed in the mitigation.
Disclosed
-
Virgin stake can claim all drops
The drip function should not accrue rewards when totalSupply() is zero; a check was added but the mitigation was not fully effective.
Disclosed
-
Inflation attack by token transfer
The contract should track staked funds internally instead of relying on its token balance, and consider a sweep function for unaccounted funds.
Disclosed
-
Incorrect slippage check in the AMO2.rebalanceUp can be attacked by MEV
The project partially mitigated by adding admin-controlled slippage values.
Disclosed
-
CVXStaker.sol Unable to process newly add rewardTokens
A setRewardTokens function was added to allow updating the rewardTokens array.
Disclosed
-
withdrawAllAndUnwrap() the clpToken transfer to AMO.sol may be locked in the contract
The function was changed to send tokens to the owner instead of the operator.
Disclosed