Skip to content

Code4rena

Y2k Finance contest

Every publicly disclosed report for Y2k Finance contest and what kind of bugs they were.

disclosed reports
25
most reported class
Business logic
bug classes found
4
first disclosure
2023
Find Y2k Finance contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Y2k Finance contest chose to make public.

ReportClassSeverityBountyCVSSVotesDisclosed
Depeg event can happen at incorrect price Business logic High – – – 9 Jan 2023
Risk users are required to payout if the price of the pegged asset goes higher than underlying Business logic High – – – 9 Jan 2023
LOSS OF PRECISION RESULTING IN WRONG VALUE FOR PRICE RATIO – High – – – 9 Jan 2023
A design flaw in the case of using 2 oracles (aka PegOracle) – High – – – 9 Jan 2023
StakingRewards.sol#stake is intended to be pausable but isn’t Business logic Medium – – – 9 Jan 2023
StakingRewards: Significant loss of precision possible – Medium – – – 9 Jan 2023
StakingRewards.sol#notifyRewardAmount() Improper reward balance checks can make some users unable to withdraw their rewards Business logic Medium – – – 9 Jan 2023
After the vault expires, users may still receive rewards through the StakingRewards contract Business logic Medium – – – 9 Jan 2023
function changeController() has rug potential as admin can unilaterally withdraw all user funds from both risk and insure vaults Access control Medium – – – 9 Jan 2023
Griefing attack on the Vaults is possible, withdrawing the winning side stakes Access control High – – – 9 Jan 2023
User funds lost because they can’t withdraw() their funds before epoch startTime and they are stuck in positions that become unprofitable even when epoch is not started Business logic Medium – – – 9 Jan 2023
Fees are taken on risk collateral Business logic Medium – – – 9 Jan 2023
timewindow can be changed unexpectedly that blocks users from calling deposit function Business logic Medium – – – 9 Jan 2023
It is possible that receiver and treasury can receive nothing when calling withdraw function due to division being performed before multiplication – Medium – – – 9 Jan 2023
StakingRewards: recoverERC20() can be used as a backdoor by the owner to retrieve rewardsToken Access control Medium – – – 9 Jan 2023
StakingRewards reward rate can be dragged out and diluted Business logic Medium – – – 9 Jan 2023
Different Oracle issues can return outdated prices – Medium – – – 9 Jan 2023
It’s possible to change for Vault and lost control on it Access control Medium – – – 9 Jan 2023
Fee-on-Transfer tokens cause problems in multiple places Business logic Medium – – – 9 Jan 2023
Oracle is tracked per token instead of per pair, leading to surprise results – Medium – – – 9 Jan 2023
Rewards are not rolled over Business logic Medium – – – 9 Jan 2023
Vault.sol is not EIP-4626 compliant Smart contracts High – – – 9 Jan 2023
Users who deposit in one vault can lose all deposits and receive nothing when counterparty vault has no deposits Business logic High – – – 9 Jan 2023
End epoch cannot be triggered preventing winners to withdraw DoS High – – – 9 Jan 2023
Incorrect handling of pricefeed.decimals() – High – – – 9 Jan 2023