Hunt prep
Before you test Tapioca Invitational
What 104 disclosed reports say about Tapioca Invitational: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing 14
Ideas drawn from this program's disclosed reports and our class lessons. None of them is a known bug: each is a place to look, and the reports linked under it are why. Check the current scope before testing anything.
-
1
Test Magnetar module approval checks across all remaining actions
Access control Read the lesson
Reports show repeated missing or broken approval checks in Magnetar modules (OFT action, helper contract, unwrap, tOLP participation). Test every Magnetar action that moves a user's tokens or NFTs to see whether it verifies the caller actually owns or is approved for the asset, since the same root cause keeps appearing in sibling modules.
Backed byAttacker can use MagnetarAction.OFT action of the Magnet to perf... (2024) Missing check on helper contract allows arbitrary actions and th... (2024) Incorrect approval mechanism breaks all Magnetar functionality (2024)From the lessons: Functions that make external calls to tokens, native currency or NFTs...; Any contract that calls transfer or transferFrom directly on an arbitr...; Call every transfer and transferFrom path with a token that returns fa...
-
2
Check cross-chain message decoding and msg type allowlists
Smart contracts Read the lesson
Several reports concern cross-chain modules failing because message types are not allowed or payloads are decoded incorrectly. Test the remaining Magnetar cross-chain entry points and the destination-side decoders for mismatched type checks and field ordering, since the same pattern recurs across modules.
Backed byMagnetarMintXChainModule will not work as msg type is not allowe... (2024) Cross chain messages in MagnetarAssetXChainModule and MagnetarMi... (2024) Incorrect decoding in decodeLockTwpTapDstMsg (2024)From the lessons: Cross chain routers, settlement handlers and bridge transfers.; Bridge and gateway contracts, including revert gas limits and token me...
-
3
Probe epoch boundary and timing logic in AirdropBroker and options
Business logic Read the lesson
Reports show off-by-one and timing issues around epoch boundaries, preemptive option exercise and single-second eligibility. Test the epoch transition comparisons and exercise windows in AirdropBroker and TapiocaOptionBroker for boundary conditions and delayed execution, since timing logic has repeatedly produced findings here.
-
4
Test slippage and minimum output enforcement on remaining swap paths
Smart contracts Read the lesson
Reports cover overly strict minAmountLD, wrong rounding in fraction helpers and missing slippage handling. Test the other swap, exercise and cross-chain transfer paths for whether the user-supplied minimum is actually read and correctly bounded, since slippage handling has produced multiple findings.
Backed bysendParam.minAmountLD slippage setting is too strict (2024) MagnetarHelper.getFractionForAmount uses the wrong rounding and... (2024) _internalRemoteTransferSendPacket() can’t send the difference ba... (2024)From the lessons: Check whether every swap, deposit or mint path enforces a user-supplie...; Compare the protocol's computed slippage bound against the true expect...; Set the slippage parameter to a value that passes the check but still...
-
5
Check reward accounting and index handling in twTAP claims
Smart contracts Read the lesson
Reports show wrong reward index use, reward tokens at index zero being stealable and duplicate reward addresses. Test the remaining reward claim and compounding paths in twTAP and TapiocaOptionBroker for index mix-ups and duplicate token handling, since reward accounting has repeatedly gone wrong.
Backed bytwTAP.claimAndSendRewards() will claim the wrong amount for each... (2023) twTAP.sol : Reward tokens stored in index 0 can be stolen (2023) Attacker can pass duplicated reward token addresses to steal the... (2023)From the lessons: Reward accumulation updates in staking and vault contracts.; Yield distribution and reward treasury contracts.
-
6
Probe twAML and twTAP lock weight manipulation and griefing
Business logic Read the lesson
Reports show weights can be griefed by burning tokens, max magnitude locks cause DoS and governance can be monopolised. Test the lock, participate and exit paths in twTAP and TapiocaOptionBroker for weight inflation and griefing, since the same weight logic keeps producing findings.
-
7
Test reentrancy through token callbacks in flash loan and participate paths
Smart contracts Read the lesson
Reports show reentrancy in USDO flashLoan and via _safeMint in twAML participate. Test the remaining external-call-before-state-update paths in flash loans, participation and reward distribution for reentrancy, since this technique has already worked twice here.
Backed byReentrancy in USDO.flashLoan() , enabling an attacker to borrow... (2023) twAML::participate - reentrancy via _safeMint can be used to bri... (2023) Attacker can specify any receiver in USD0.flashLoan() to drain r... (2023)From the lessons: Functions that make external calls to tokens, native currency or NFTs...; Re-enter a redemption or swap function through a callback and check wh...; Check withdrawal functions for a missing non-reentrancy modifier and r...; Re-enter through a token callback or a read-only call rather than the...
-
8
Check liquidation math and solvency checks across markets
Smart contracts Read the lesson
Reports show incorrect solvency checks, wrong closing factor formulas and excess liquidator rewards. Test the remaining liquidation and solvency computation paths in BigBang and Singularity for share-versus-amount mix-ups and reward overpayment, since liquidation math has produced many findings.
Backed byIncorrect solvency check because it multiplies collateralization... (2023) Incorrect formula used in function Market.computeClosingFactor() (2023) Incorrect liquidation reward computation causes excess liquidato... (2023)From the lessons: Liquidation and force repay paths.; Liquidation, repayment and debt takeover flows where front-running can...; Front-run a liquidation with a minimal repayment of the outstanding de...
-
9
Test strategy accounting and withdraw amounts in yield strategies
Smart contracts Read the lesson
Reports show strategies withdrawing insufficient or excessive amounts, accounted balances not matching withdrawable balances and swapper changes breaking contracts. Test the remaining strategy deposit, withdraw and compound paths for accounting mismatches, since strategy accounting has repeatedly failed here.
Backed byBalancerStrategy.sol : _withdraw withdraws insufficient tokens (2023) Accounted balance of GlpStrategy does not match withdrawable bal... (2023) Rewards compounded in AaveStrategy are unredeemable (2023)From the lessons: Strategy allocation and deallocation functions in vaults.; Trigger an internal outflow and check whether deposited share counters...; Allocate to a strategy without slippage control and check whether the...
-
10
Probe ERC20 variant handling in TOFT and YieldBox transfers
Smart contracts Read the lesson
Reports show wrong _sendToken implementation and fee or approval assumptions breaking transfers. Test the TOFT and YieldBox transfer and approval paths with tokens that return no value, return false or charge a fee, since token handling assumptions have caused losses here.
Backed by_sendToken implementation in Balancer.sol is wrong which will ma... (2023) A user with a TapiocaOFT allowance >0 could steal all the underl... (2023) BigBang::repay and Singularity::repay spend more than allowed am... (2023)+1 more report
From the lessons: Call every transfer and transferFrom path with a token that returns fa...; Use a token whose approve and transfer do not return a boolean and che...; Use a token that returns false or no value from transfer and check whe...; Use a fee-on-transfer token as the asset or collateral and check wheth...; Test the protocol with several ERC20 variants (different decimals, no...
-
11
Check LayerZero refund and gas handling on remaining send paths
Smart contracts Read the lesson
Reports show refund addresses not handled, _payNative returning wrong values and gas cost issues blocking the channel. Test the remaining cross-chain send and refund paths for incorrect refund routing and gas assumptions, since LayerZero integration has produced several findings.
Backed byLayerzero fee refund address is not handled correctly (2024) Incorrect return value of function BaseTapiocaOmnichainEngine._p... (2024) triggerSendFrom() will send all the ETH in the destination chain... (2023)From the lessons: Cross chain routers, settlement handlers and bridge transfers.; Bridge and gateway contracts, including revert gas limits and token me...
-
12
Test permit and nonce handling for replay and MEV exposure
Smart contracts Read the lesson
Reports show multi-permit standards cannot be solved as chosen and unordered nonces open MEV risks. Test the remaining permit and signature verification paths in Pearlmit and related contracts for nonce reuse and ordering issues, since permit handling has already produced findings.
Backed bySame contract multi permits fundamentally cannot be solved via t... (2024) Unordered Nonces open up to further MEV risks (2024) anyone with a Pearlmit approval to transfer TapToken can have th... (2024)From the lessons: Migration permit revocation and reactivation.; Two-step admin and ownership transfer functions.
-
13
Probe access control on host-chain-only and rescue operations
Access control Read the lesson
Reports show twTAP participate can be frozen due to missing access control on host-chain-only operations and rescue timestamps not reset. Test the remaining host-chain-only functions and rescue or unregister flows for missing caller checks, since access control gaps have caused freezes here.
Backed bytwTAP.participate() can be permanently frozen due to lack of acc... (2023) Rescue request timestamp not reset in TapiocaOptionLiquidityProv... (2024) After unregisterSingularity() , position has not been unlocked a... (2024)From the lessons: Initialise and setup functions on newly deployed contracts.; Two-step admin and ownership transfer functions.
-
14
Check option exercise accounting and vesting calculations
Smart contracts Read the lesson
Reports show vested claimable amount errors, extra exercise compared to lock duration and insufficient TAP to exercise in the same epoch. Test the remaining exercise and vesting calculation paths in TapiocaOptionBroker and AirdropBroker for off-by-one and accounting errors, since option math has repeatedly failed.
Backed by_vested() claimable amount calculation error (2024) Spearbit finding “It is possible to exercise TAP option an extra... (2024) Not enough TAP tokens to exercise if a user participates and exe... (2023)+1 more report
From the lessons: Reward accumulation updates in staking and vault contracts.; Mint or redeem shares and check whether the function enforces a minimu...
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 59 | 0 | – | – | $0 |
| Access control lesson | 26 | 0 | – | – | $0 |
| Smart contracts lesson | 10 | 0 | – | – | $0 |
| DoS lesson | 5 | 0 | – | – | $0 |
| Race condition lesson | 3 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Missing unwrap configuration when withdrawing cross-chain in the depositYBLendSGLLockXchainTOLP() function of MagnetarAssetXChainModule results in being unable to lock and participate on the destination chain
The function should call _withdrawToChain with unwrap set to true; the project confirmed it was fixed.
Disclosed
-
_lockOnTOB function of MagnetarMintCommonModule will not work due to the missing approved asset for YieldBox before depositing
The fix is to approve the singularity token for YieldBox before calling depositAsset; the report notes a PR was submitted.
Disclosed
-
burst() does not return eth when action fails
The burst function should return any remaining ETH balance to the caller after the loop, and the project confirmed a fix was made.
Disclosed
-
tOLP positions created through MagnetarAction.Permit can be stolen
The report recommends letting callers declare a receiver in participate and exerciseOption, rethinking or removing MagnetarAction.Permit, and removing the general MagnetarAction.OFT call.
Disclosed
-
MagnetarHelper.getFractionForAmount uses the wrong rounding and will yield the wrong result
The rounding direction should be changed to round down, matching the withdrawal logic.
Disclosed
-
Incorrect return value of function BaseTapiocaOmnichainEngine._payNative()
The function should be changed to return msg.value instead of _nativeFee.
Disclosed
-
After unregisterSingularity() , position has not been unlocked and will be locked in the contract
The unregister function should require that the pool's totalDeposited is zero before deleting its registration.
Disclosed
-
AirdropBroker : Airdrops in epoch 4 can participate and exercise options in subsequent epochs
The phase4Users mapping should be cleared in newEpoch(), or separate mappings should be used for each sub-epoch.
Disclosed
-
Adversary can utilise approved to Magnetar oTAP and tOLP NFTs
Add checks within Magnetar that the user owns the NFT on which they’re making a call.
Disclosed
-
Adversary can steal user’s NFT’s if they have set Magnetar as isApprovedForAll == true
The report recommends disallowing calls with the ERC721.approve selector.
Disclosed
-
MagnetarMintXChainModule.sol : mintBBLendXChainSGL can be used to manipulate user positions by abusing whitelist privileges
The cross-chain mint function should require the composed message's user to equal the original caller, and the broader whitelist-based authorisation for cross-chain calls should be reworked; the report notes a fix was submitted.
Disclosed
-
Missing check on helper contract allows arbitrary actions and theft of assets
The helper contract should be checked against a whitelist, as is done in other modules.
Disclosed
-
Absence of restrictions on the sender of the twTAP.claimsReward() function could enable attackers to freeze reward tokens within the Tap token contract
The project should restrict who can call claimRewards, but the suggested mitigation of checking msg.sender was noted by the project as not working because msg.sender equals _to in this context.
Disclosed
-
Magnetar unwrap operations broken due to bad ownership and checks
The unwrap functionality should transfer the token from the msg.sender to itself first, and the _checkSender check for the unwrap case should be removed.
Disclosed
-
depositYBLendSGLLockXchainTOLP function of the MagnetarAssetXChainModule will not work because it transfers Singularity tokens to the user before _withdrawToChain
The _wrapSglReceipt function should deposit the wrapped TOFT tokens into YieldBox for the contract instead of transferring them to the user; the project confirmed and linked a fix PR.
Disclosed