Hunt prep
Before you test Yieldy contest
What 31 disclosed reports say about Yieldy 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 | 22 | 0 | – | – | $0 |
| DoS lesson | 6 | 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.
-
Denial of Service by wrong BatchRequests.removeAddress logic
The removeAddress function should use pop and move the last element into the removed position instead of using delete.
Disclosed
-
Unsecure transferFrom
The fix was to add a check that the from account has sufficient credit balance before subtracting.
Disclosed
-
MINTER BURNER ROLE can burn any amount of Yieldy from an arbitrary address
The role should be removed and the burn function changed to only burn from the caller's own address.
Disclosed
-
Arbitrage on stake()
The yield token amount should be burned in the instant unstake reserve function.
Disclosed
-
Withdrawals initiated after cycle withdrawal request won’t be withdrawn in the correct cycle
The requirement in L362 should be removed, as overwriting the withdrawal amount is acceptable because it uses a cumulative measure.
Disclosed
-
No way to set CURVE_POOL approval after setting new curve pool address
Set approvals for the new curve pool address inside the setCurvePool() function.
Disclosed
-
Inconsistent balance when fee-on transfer tokens.
The contract should measure the balance before and after the transfer to account for any fees, or explicitly not support fee-on-transfer tokens.
Disclosed
-
Incorrect rebase percentage calculation
The code should reduce _profit by the excess over the maximum supply before calling _storeRebase, as shown in the recommended mitigation.
Disclosed
-
token transfers in LiquidityReserve and Staking contract don’t support deflationary ERC20 tokens, and user funds can be lost if stacking token was deflationary
The contracts should check the actual amount of tokens received after the transfer and use that amount for minting or crediting, or explicitly document that deflationary tokens are not supported.
Disclosed
-
Removal of liquidity from the reserve can be griefed
The contract should keep track of submitted amounts during the cooldown and batch-submit them during the next open window, rather than making it first-come-first-served.
Disclosed
-
User fund lose in addLiquidity() of LiquidityReserve by increasing (totalLockedValue / totalSupply()) to very large number by attacker
Add more precision when calculating IrToken so this attack wouldn’t be feasible to perform.
Disclosed
-
Incorrect withdrawal requested
The code was fixed by changing the call to use amountToRequest instead of _amount.
Disclosed
-
coolDown & warmUp period do not work when a low _firstEpochEndTime is passed to initialize
The constructor should require the first epoch end time to be greater than the current block timestamp, or set the first epoch's expiry to the current time plus the epoch duration.
Disclosed
-
instantUnstake fee can be avoided
The fee should be calculated using a muldiv operation over (1 - fee) so that the fee is rounded up instead of down.
Disclosed
-
User can initiate withdraw for previous epoch if rebase hasn’t been called since end of epoch
The rebase call should not be optional when calling unstake, or a cooldown mechanism should be used to prevent early withdrawal.
Disclosed