Skip to content

Sherlock

Tapioca

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

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

Disclosed reports

Newest first. Only what Tapioca chose to make public.

Access control

Unverified `_srcChainSender` parameter allows to impersonate the sender

The cross-chain message receiver function does not verify the `_srcChainSender` parameter for certain message types, allowing an attacker to execute modules on behalf of any user. This could let the attacker perform actions such as removing collateral and exiting positions for a victim.

Tapioca

High
Business logic

mTOFT's fees cannot be paid on native wrapping

The mTOFT contract attempts to pay mint fees twice when wrapping native tokens, causing the transaction to revert unless the contract holds extra funds. This makes native token wrapping unavailable in production.

Tapioca

Medium
Access control

Unprotected `executeModule` function allows to steal the tokens

The executeModule function in the Usdo contract allows any caller to execute any module with arbitrary parameters, enabling an attacker to perform operations on behalf of other users. By crafting a malicious market message, an attacker can steal a victim's tokens from a Singularity market.

Tapioca

High
Access control

Pending allowances can be exploited

The TOFT contract's marketRemoveCollateralReceiver function does not check the caller, so any user can use a victim's existing allowance to the TOFT to remove the victim's collateral and send it to an arbitrary address. This allows theft of collateral from users who have approved the TOFT contract.

Tapioca

High
Business logic

Liquidation fees are permanently frozen on Penrose YB account

Liquidation fees in the SGL market are deposited directly to Penrose's YieldBox account but are not included in the fee shares returned by refreshPenroseFees, so they are never distributed to stakers and remain frozen. This causes a protocol-wide loss of funds that would otherwise go to stakers.

Tapioca

High
Business logic

mTOFTReceiver MSG_XCHAIN_LEND_XCHAIN_LOCK unable to execute

A message handler for cross-chain lending and locking did not return true after executing its module, so the caller treated the message type as invalid and reverted. This meant that legitimate cross-chain lend and lock operations could never complete.

Tapioca

Medium
Access control

Multiple contracts cannot be paused

Several contracts use the whenNotPaused modifier but provide no public method to change the paused state, so the owner cannot pause them during a security incident. This prevents the protocol from stopping vulnerable functions when needed.

Tapioca

Medium
Business logic

Allowances is double spent in BBLeverage's and SGLLeverage's `sellCollateral()`

The sellCollateral functions in BBLeverage and SGLLeverage spend the caller's allowance twice: once when removing collateral and again when repaying debt. This causes users to lose approximately double the intended allowance, and operations with correctly set allowances are denied.

Tapioca

Medium
Access control

Recursive _lzCompose() call can be leveraged to steal all generated USDO fees

The recursive compose call in TapiocaOmnichainReceiver hardcodes the source chain sender as the USDO contract address, allowing an attacker to bypass the allowance check and burn USDO tokens held in the contract, then mint them on another chain to an attacker-controlled address. This lets the attacker steal all USDO fees accumulated in the contract.

Tapioca

High
Business logic

buyCollateral() does not work properly

The buyCollateral function in the leverage contract passes the wrong receiver and token to several internal calls, so the collateral bought through the executor is not deposited and credited to the user as intended. The result is that the function does not work properly, meaning the leverage-buy flow fails to deliver collateral to the borrower.

Tapioca

Medium
DoS

Balancer using safeApprove may lead to revert

The Balancer contract uses safeApprove to set an allowance for the router, but the router may not use the full allowance due to rounding down by convertRate. This leaves a residual allowance, causing subsequent safeApprove calls to revert and blocking future swaps.

Tapioca

Medium
DoS

Not considering fees when wrapping mtOFTs leads to DoS in leverage executors

The leverage executor contracts do not account for fees when wrapping mtOFT tokens, so the amount returned is larger than the actual minted amount. This causes the subsequent deposit into YieldBox to fail due to insufficient funds, resulting in a denial of service for leverage operations involving mtOFTs.

Tapioca

Medium
DoS

Gas parameters for Stargate swap are hardcoded leading to stuck messages

The Stargate swap gas parameter dstGasForCall was hardcoded to zero in the Balancer contract, so the destination sgReceive call failed and tokens were cached. Because mTOFT::sgReceive did not validate its parameters, an attacker could send a tiny swap to the same contract and make the cached clearCachedSwap call fail, causing a long-term denial of service.

Tapioca

Medium
Business logic

USDO’s MSG_TAP_EXERCISE compose messages where exercised options must be withdrawn to another chain will always fail due to wrongly requiring sendParam's to address to be whitelisted in the Cluster

The exerciseOptionsReceiver function wrongly requires the destination address for bridged exercised options to be whitelisted, so any attempt to bridge exercised options always fails. This prevents users from exercising options and bridging them in one transaction.

Tapioca

Medium
Business logic

`mTOFT` can be forced to receive the wrong ERC20 leading to token lockup

The Balancer contract's rebalance function did not validate the source and destination pool IDs supplied in the _ercData parameter, allowing a caller to specify mismatched pools. This could cause the destination mTOFT contract to receive a different ERC20 token than expected, locking those tokens permanently.

Tapioca

Medium
Business logic

`TOFTMarketReceiverModule::marketBorrowReceiver` flow is broken

The marketBorrowReceiver flow in TOFTMarketReceiverModule is broken because the Magnetar contract does not grant the Market contract an allowance through the Pearlmit contract before attempting to transfer ERC1155 tokens. This causes the transaction to revert when the Market contract tries to pull the tokens.

Tapioca

Medium
Business logic

Not properly tracking debt accrual leads mintOpenInterestDebt() to lose twTap rewards

The mintOpenInterestDebt() function calculates rewards by subtracting the current USDO supply from the total debt, but it does not track debt accrual or account for bridged USDO. An attacker could bridge USDO out before a reward distribution to inflate the minted rewards, or bridge in to prevent rewards from being distributed.

Tapioca

Medium