Skip to content

Sherlock

Cork Protocol

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

disclosed reports
18
most reported class
Business logic
bug classes found
4
first disclosure
2024
Find Cork Protocol on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Cork Protocol chose to make public.

Business logic

Wrong accounting of locked RA when repurchasing DS+PA with RA

The repurchase function incorrectly accounts for the RA fee when updating the locked RA balance, leading to an inflated locked amount. This can cause over-distribution of rewards and potentially prevent the last users from redeeming their assets.

Cork Protocol

High
Smart contracts

Admin will not be able to upgrade the smart contracts, breaking core functionality and rendering the upgradeable contracts useless

The AssetFactory and FlashSwapRouter contracts inherit UUPSUpgradeable but use the notDelegated modifier on their initialize and _authorizeUpgrade functions, preventing them from being called through a proxy. As a result, the admin cannot upgrade these contracts, breaking core functionality and potentially causing stuck or lost funds.

Cork Protocol

Medium
Smart contracts

Lack of slippage protection leads to loss of protocol funds

The protocol's liquidity removal and token swap functions lacked slippage protection, using zero as the minimum output amount. An attacker could front-run these transactions to manipulate prices, causing the protocol to suffer heavy slippage and lose funds.

Cork Protocol

High
Business logic

LV token holders receive proportional fees, when they shouldn't

The protocol's fee distribution to Liquidity Vault (LV) token holders is not time-weighted, so a user who deposits just before fees are distributed receives the same share as a user who held tokens from the start. This allows late depositors to effectively steal fees from earlier depositors.

Cork Protocol

High
Business logic

Incoming Redemption Assets not being tracked when repurchase is called

The repurchase function transfers redemption assets into the contract without updating the internal locked balance, so the accounting understates the actual redemption assets held. After expiry, when liquidity is separated, the untracked assets remain stuck in the contract, causing a loss of funds.

Cork Protocol

High
Business logic

Users will steal excess funds from the Vault due to `VaultPoolLib::redeem()` not always decreasing `self.withdrawalPool.raBalance` and `self.withdrawalPool.paBalance`

The redeem function in the vault pool library fails to decrease the withdrawal pool balances when a user redeems excess funds from the AMM pool, causing those funds to be double-counted in the next issuance. This allows users to withdraw more funds than they are entitled to, potentially making the vault insolvent.

Cork Protocol

High
Business logic

Attacker Can Decide The Initialization Ratio Of The AMM Pair

The protocol creates a Uniswap V2 pool for a new asset pair but does not add initial liquidity, leaving the pool empty. An attacker can add liquidity first at an arbitrary ratio, causing subsequent protocol deposits to use this manipulated price and enabling the attacker to profit via arbitrage.

Cork Protocol

Medium