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.
The liquidation function allows a liquidator to set a small maximum repay amount, bypassing the bad debt handling that would otherwise reduce the liquidation reward. This lets the liquidator receive the full reward on a partial liquidation while leaving the protocol with bad debt.
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.
The rebalance function's access control requires the caller to be both the owner and the rebalancer, so if the owner assigns the rebalancer role to another address, rebalancing becomes permanently blocked. An attacker cannot directly exploit this, but the misconfiguration causes a denial of service for a core protocol function.
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.
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.
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.
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.
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.
The function _depositFeesToTwTap recomputes the fee amount from shares after withdrawal, which can differ from the actual withdrawn amount due to rounding, causing the transfer to revert. This can block fee withdrawals in some cases.
The exerciseOptionsReceiver function in TOFTOptionsReceiverModule does not handle a zero tapAmount correctly, which is a valid way to exercise the full option position. When tapAmount is zero, the function exercises the full position but sends no TAP tokens to the user, leaving them permanently frozen in the contract.
The buyCollateral() functions in BBLeverage and SGLLeverage remove the required funds from the user twice: once via the borrow and once via _addCollateral, but only record one collateral addition, causing an unconditional loss of the collateralShare amount for the user.
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.
A rounding error can cause the option exercise payment amount to be zero, and the receiver module's refund logic only triggers when the balance decreases, so the user's provided payment tokens are not refunded and can be stolen by a back-running attacker.
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.
The sellCollateral function in BBLeverage attempts to deposit the wrong asset identifier into YieldBox after swapping collateral for the underlying asset, causing the transaction to always revert. This makes the function unusable, preventing users from leveraging up on a borrow position.
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.
A wrong parameter in the remote transfer function causes the source chain sender to be set to an arbitrary owner address, allowing an attacker to impersonate a victim and burn their USDO tokens across chains. The attacker can then mint the stolen tokens to themselves on another chain.
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.
The sellCollateral function in BBLeverage and SGLLeverage leaves any excess proceeds from selling collateral in the contract instead of returning them to the user. An attacker can steal these funds by back-running and using the skim option.
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.
The protocol allows opening leveraged positions and removing collateral using a stale exchange rate within a validity window. An attacker could atomically create bad debt by exploiting a market price drop larger than the collateralisation buffer, without any prior position or investment.
The updatePause function allows resetting the accrual timestamp when unpausing, which can erase interest accrual for the period between the last accrual and the pause. An attacker could exploit this to cause a loss of yield for lenders if a long period without accrual occurred before pausing.
The leverage module does not call Penrose's reAccrueBigBangMarkets() when borrowing, so an attacker can still manipulate secondary Big Bang market interest rates by first borrowing a large amount in the ETH market and then accruing non-ETH markets. This allows profitable strategies and may affect users.
The AssetTotsDaiLeverageExecutor contract decodes swap data twice, causing the data to be misaligned and the functions to revert. An attacker could not exploit this; it is a functional bug that breaks the contract's intended operation.
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.
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.
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.
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.
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.
TA
Tapioca
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.