Skip to content

Sherlock

Y2K

Every publicly disclosed report for Y2K and what kind of bugs they were.

disclosed reports
19
most reported class
Business logic
bug classes found
3
first disclosure
2023
Find Y2K on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Y2K chose to make public.

Business logic

Earlier users in rollover queue can grief later users

The rollover queue implementation allows a user earlier in the queue to delist after their own rollover is processed, which replaces their queue index with the last user's index, preventing that last user from having their funds rolled over until the next epoch. An attacker could deliberately grief later users by exploiting this ordering.

Y2K

High
Business logic

When rolling over, user will lose his winnings from previous epoch

When a user rolls over their position to the next epoch, the contract mints shares equal to their original deposit but burns all shares from the previous epoch, including any winnings. As a result, the user loses the rewards they earned in the previous epoch.

Y2K

High
DoS

User deposit may never be entertained from deposit queue

The deposit queue uses a first-in-last-out stack, so when a relayer processes a batch of deposits, the earliest entries can be skipped and remain stuck if new deposits keep arriving. An attacker could flood the queue with many small deposits to prevent a victim's deposit from ever being processed.

Y2K

Medium
Access control

Vault Factory ownership can be changed immediately and bypass timelock delay

The VaultFactoryV2 contract inherits OpenZeppelin's Ownable, which provides a public transferOwnership function that only the current owner can call. This function was not overridden to enforce the timelock delay, so the owner could transfer ownership instantly, bypassing the intended timelock protection.

Y2K

Medium
Business logic

Arbitrum sequencer downtime lasting before and beyond epoch expiry prevents triggering depeg

The depeg trigger function reverts when the Arbitrum sequencer is down or within its grace period, so if the sequencer goes down before an epoch expires and stays down past expiry, a depeg cannot be triggered. Collateral vault users can then end the epoch without a depeg and claim the premium, while premium vault users lose their payout.

Y2K

Medium
Business logic

Inconsistent use of epochBegin could lock user funds

Two functions compared the current block timestamp against the epoch start time with different strictness, so both could run in the same block at the exact start time. A deposit made after the null-epoch trigger in that block was left out of the recorded total, which could skew emission payouts and lock remaining funds.

Y2K

Medium
Business logic

Controller doesn't send treasury funds to the vault's treasury address

The Controller contract sends treasury fees to its own immutable treasury address instead of the treasury address stored in each vault. This prevents vaults from having different treasury addresses and makes the vault's setTreasury function ineffective.

Y2K

Medium
Business logic

Stuck emissions for nullified epochs

When a vault has zero total value locked (TVL) for an epoch that has emissions allocated, the epoch is nullified and the emissions become permanently stuck because no one can withdraw them. An attacker cannot directly exploit this, but the protocol loses the emissions tokens.

Y2K

Medium
Business logic

Null epochs will freeze rollovers

The rollover check in Carousel.sol incorrectly requires that a user's entitled shares exceed their assets, which fails when a null epoch occurs because no payout is made. This causes rollovers to halt after a null epoch, leaving users unable to roll over their positions.

Y2K

Medium
Business logic

mintRollovers should require entitledShares >= relayerFee

The mintRollovers function incorrectly checks queue[index].assets against relayerFee instead of entitledShares, so rollovers are skipped even when the user's entitled shares exceed the relayer fee. This prevents users from rolling over their assets despite having sufficient funds.

Y2K

Medium
DoS

`Carousel.mintRollovers` potentially mints `0` shares and can grief rollover queue

The Carousel.mintRollovers function can mint zero shares when a user's deposited assets equal the relayer fee, and if this is the only deposit for an epoch, the vault's total value locked (TVL) remains zero. This causes previewWithdraw to revert due to division by zero, permanently blocking the rollover queue unless the affected user delists their item.

Y2K

Medium
Business logic

VaultFactoryV2#changeTreasury misconfigures the vault

The changeTreasury function in VaultFactoryV2 set the vault treasury to the factory's own treasury variable instead of the address passed in by the caller. This could make the controller's triggerDepeg call fail when sending tokens, so a valid depeg event might not be paid out in time.

Y2K

Medium
Business logic

`depositFee` can be bypassed via deposit queue

The deposit fee charged on direct deposits could be avoided by depositing into the queue and then immediately minting the queued deposit in the same transaction. An attacker could thus pay zero fees instead of the required deposit fee, causing a loss of protocol fee revenue.

Y2K

High
DoS

Adversary can break deposit queue and cause loss of funds

The deposit queue in Carousel.sol uses ERC1155 _mint which calls the receiver's acceptance check, allowing a malicious user to make their receiver revert and block all subsequent deposits. Since deposits cannot be cancelled, users whose deposits are blocked lose their funds.

Y2K

High
DoS

Malicious user can make rolloverQueue never get processed

A single rollover queue is shared across all epochs, so a user can add many tiny entries that are never removed. This makes every round's rollover processing expensive and unprofitable for relayers, potentially stopping rollovers permanently.

Y2K

Medium