Hunt prep
Before you test PoolTogether
What 104 disclosed reports say about PoolTogether: 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 15
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
Slippage bounds on vault withdraw and redeem paths
Business logic Read the lesson
Reports on this program flag missing slippage protection in withdraw and redeem, and a related finding on maxWithdraw using convertToAssets. Test every exit path of the PrizeVault, including partial withdrawals and the liquidate flow, to see whether a user-supplied minimum is actually enforced or silently ignored. The lessons on vault slippage checks show this class recurs across yield and staking protocols.
Backed byLack of Slippage Protection in withdraw / redeem Functions of th... (2024) _maxYieldVaultWithdraw() uses yieldVault.convertToAssets() (2024) _amountOut is representing assets and shares at the same time in... (2023)From the lessons: Check whether every swap, deposit or mint path enforces a user-supplie...; Withdraw or redeem from a vault and check whether a slippage bound is...; Mint or redeem shares and check whether the function enforces a minimu...
-
2
Fee-on-transfer and non-standard ERC20 handling in vault accounting
Smart contracts Read the lesson
Several reports here concern fee-on-transfer tokens breaking internal accounting and missing transfer checks. Test the PrizeVault and yield source paths with tokens that take a fee, return false, or return no value, and check whether credited balances match amounts actually received. The lessons on ERC20 variants and unchecked return values make this a recurring root cause.
Backed byIf the underlying asset is a fee on transfer token, it could bre... (2023) Funds locked due to missing transfer check (2024) Contract does not work with fee-on transfer tokens (2022)+1 more report
From the lessons: Test the protocol with several ERC20 variants (different decimals, no...; Use a fee-on-transfer token as the asset or collateral and check wheth...; Call every transfer and transferFrom path with a token that returns fa...; Use a token that returns false or no value from transfer and check whe...
-
3
Permit and permitAndMulticall authorisation boundaries
Access control Read the lesson
Reports show permit flows restricted to the permit creator and permitAndMulticall usable to steal funds when the sender is not the message sender. Test depositWithPermit, mintWithPermit and multicall combinations across the vault and claimer to see whether the caller identity is checked consistently. The access-control lessons on confused deputy patterns apply here.
-
4
Yield fee minting and claiming accounting
Business logic Read the lesson
Multiple reports describe yieldFeeBalance not being claimed after transfers, fee claims below the total balance being locked, and mintYieldFee callable by anyone. Test the fee lifecycle end to end: mint, transfer shares, claim partial amounts, and check whether balances and share units stay consistent. The rounding lessons suggest precision loss is worth probing alongside.
Backed byyieldFeeBalance wouldn’t be claimed after calling transferTokens... (2024) Any fee claim lesser than the total yieldFeeBalance as unit of s... (2024) Vault.mintYieldFee function can be called by anyone to mint Vaul... (2023)From the lessons: Reward accumulation updates in staking and vault contracts.; Compare the protocol's computed slippage bound against the true expect...
-
5
maxDeposit and maxMint consistency with actual deposit logic
Business logic Read the lesson
Reports note maxDeposit ignoring produced fees and maxDeposit using yieldVault.maxDeposit while deposit uses mint. Test the ERC4626 view functions against the real deposit and mint paths for mismatches, especially when the yield vault has caps or is paused. The lessons on vault deposit and mint slippage bounds are relevant.
Backed byPrizeVault.maxDeposit() doesn’t take into account produced fees (2024) maxDeposit() uses yieldVault.maxDeposit() but _depositAndMint()... (2024) The deposit function does not check for the maxMint amount (2023)From the lessons: Vault deposit, withdraw and redeem functions across yield and staking...; Deposit into a staking or vault function and check whether a slippage...
-
6
Rounding and precision in share conversions
Smart contracts Read the lesson
Rounding is a recurring technique in this program's reports, including loss of precision leading to under-collateralisation and fund loss in supplyTokenTo. Test share-to-asset and asset-to-share conversions in the vault and yield source at small and boundary amounts, and check whether rounding direction favours the user or the protocol. The lessons on vault conversions support this.
Backed byLoss of precision leads to under-collateralized (2023) User fund loss in supplyTokenTo() because of rounding (2022) Yield source does not correctly calculate share conversions (2022)From the lessons: Compare the protocol's computed slippage bound against the true expect...; Mint or redeem shares and check whether the function enforces a minimu...
-
7
Front-running of claim and prize distribution flows
Business logic Read the lesson
Reports show claimPrizes front-runnable to make losses for the claim bot and winners able to steal claimer fees. Test the claimer and prize claim paths for ordering dependencies, including canary claims and tier changes, to see whether a third party can alter the outcome or shift gas costs. The lessons on front-running liquidations and proposals apply.
Backed byClaimer.claimPrizes can be front-runned in order to make losses... (2023) The winner can steal claimer fees, and force him to pay for the... (2024) Inconsistent behavior for canary claims in the claimer (2023)From the lessons: Liquidation, repayment and debt takeover flows where front-running can...; Proposal creation and configuration functions that can be front-run.
-
8
Tier and canary claim effects on prize structure
Business logic Read the lesson
Reports describe tier counts always increasing after a single canary claim, threshold checks skipped at maximum tiers, and tiers maintained active for unfair advantage. Test the tiered liquidity distributor around canary claims and boundary tier counts to see whether the prize structure can be skewed. The business-logic lessons on state validation are relevant.
-
9
Delegation and TWAB balance invariants
Smart contracts Read the lesson
Reports show resetting delegation losing funds, delegated amounts forcefully removed, and the balance invariant between individual and total twabs broken. Test the TwabController around delegation changes, transfers and time boundaries to see whether per-user and aggregate balances stay consistent. The lessons on state validation in vaults support this.
Backed byResetting delegation will result in user funds being lost foreve... (2023) Delegated amounts can be forcefully removed from anyone in the T... (2023) Balance invariant between the individual and total twabs can be... (2023)From the lessons: Reward accumulation updates in staking and vault contracts.; Vault deposit, withdraw and redeem functions across yield and staking...
-
10
Vault factory deployment and configuration validation
Access control Read the lesson
Reports note the VaultFactory allowing non-authentic TwabController and PrizePool, and front-running of deployVault. Test the factory and vault initialisation for missing validation of dependencies and for front-running of setup, including whether a malicious drawManager can be set. The lessons on initialise and setup functions apply.
Backed byVaultFactory allows deployment of vaults with non-authentic Twab... (2023) An attacker can front-run deployVault to deploy at the same addr... (2023) drawManager can be set to a malicious address (2023)From the lessons: Initialise and setup functions on newly deployed contracts.; Front-run an initialise function on a newly deployed contract to take...
-
11
Liquidation pair pricing and auction parameters
Business logic Read the lesson
Reports describe incorrect ContinuousGDA implementation, near-zero purchase prices, and liquidators tricked into misconfigured pairs. Test the liquidation pair factory and auction pricing around boundary parameters and configuration changes to see whether price computation can be skewed. The lessons on AMM and vault settlement slippage are relevant.
Backed byThe ContinuousGDA implementation is incorrect leading to liquida... (2023) Potential Near-Zero Scenarios for purchasePrice in the Continuou... (2023) Liquidators can be tricked to operate with LiquidationPairs that... (2023)From the lessons: Swap, deposit, mint, withdrawal and settlement functions in AMMs, vaul...; Settle a vault and check whether the slippage control can be bypassed...
-
12
Cross-chain relayer fee and call cancellation handling
Smart contracts Read the lesson
Reports show excess submission fees lost, state not updated for failing transactions, and users unable to cancel L1 calls. Test the cross-chain relayer and executor paths for fee refunds, failure handling and cancellation, checking whether state stays consistent across chains. The lessons on bridge and gateway contracts apply.
Backed byWhen a smart contract calls CrossChainRelayerArbitrum.processCal... (2023) CrossChainExecutor contracts do not update the necessary states... (2023) An attacker can make users unable to cancel their L1 calls on Et... (2023)From the lessons: Cross chain routers, settlement handlers and bridge transfers.; Bridge and gateway contracts, including revert gas limits and token me...
-
13
Reward claim limits and epoch boundaries
Business logic Read the lesson
Reports show rewards claimed multiple times, claiming continuing after epochs end, and getRewardsAmount not checking claimed epochs. Test the rewards controller and promotion contracts around epoch boundaries and repeated claims to see whether claim limits are enforced. The limit-overrun technique and business-logic lessons support this.
-
14
Promotion lifecycle validation and cancellation
Business logic Read the lesson
Reports describe cancelPromotion too rigorous, inability to cancel unstarted promotions, and missing input validation on epoch duration freezing creator funds. Test the promotion creation, start and cancellation paths for validation gaps and stuck funds. The business-logic lessons on policy enforcement apply.
-
15
Yield source swap and approval handling
Smart contracts Read the lesson
Reports show old yield sources retaining infinite approval, setYieldSource causing temporary wrong results, and missing same-token checks in transferFunds. Test the swappable yield source and approval helpers for stale approvals and inconsistent state during swaps. The lessons on token approval helpers and strategy allocation apply.
Backed byOld yield source still has infinite approval (2021) setYieldSource leads to temporary wrong results (2021) SwappableYieldSource : Missing same deposit token check in trans... (2021)From the lessons: Token transfer and approval helpers in vaults and strategies.; Strategy allocation and deallocation functions in vaults.
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 | 68 | 0 | – | – | $0 |
| Access control lesson | 12 | 0 | – | – | $0 |
| Smart contracts lesson | 12 | 0 | – | – | $0 |
| DoS lesson | 5 | 0 | – | – | $0 |
| Race condition lesson | 3 | 0 | – | – | $0 |
| Crypto lesson | 1 | 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.
-
The winner can steal claimer fees, and force him to pay for the gas
The issue was fixed by updating the PrizePool and Claimer contracts so that a double prize claim reverts, preventing the griefer from receiving their prize.
Disclosed
-
Funds locked due to missing transfer check
The transfer should use OpenZeppelin's safeTransfer, and the yield vault withdrawal should use withdraw directly or follow redeem with a withdraw of any outstanding assets; the report says the safeTransfer addition was made in a pull request.
Disclosed
-
PrizeVault.maxDeposit() doesn’t take into account produced fees
The maxDeposit() calculation was changed to subtract the yield fee balance from the returned limit, and a mitigation was linked by the project.
Disclosed
-
maxDeposit() uses yieldVault.maxDeposit() but _depositAndMint() uses yieldVault.mint()
The suggested mitigation (using previewRedeem(maxMint())) was found to cause overflow issues, and the team decided to leave the code as-is, noting that if the yield vault's maxDeposit accounts for internal supply limits, compatibility issues are unlikely.
Disclosed
-
Any fee claim lesser than the total yieldFeeBalance as unit of shares is lost and locked in the PrizeVault contract
The code was fixed by subtracting only the claimed _shares from yieldFeeBalance instead of the entire cached balance.
Disclosed
-
Lack of Slippage Protection in withdraw / redeem Functions of the Vault
The project added slippage protection parameters to the withdraw and redeem functions, as shown in the linked mitigation pull request.
Disclosed
-
_maxYieldVaultWithdraw() uses yieldVault.convertToAssets()
The code should be fixed by using yieldVault.previewRedeem(yieldVault.maxRedeem(address(this))) instead of convertToAssets.
Disclosed
-
Permit doesn’t work with DAI
The report recommends adding a special case for DAI that uses its different permit implementation, but the project acknowledged the issue and chose not to apply a mitigation.
Disclosed
-
Inconsistent behavior for canary claims in the claimer
The fee calculation should include the canary claim count by adding `prizePool.canaryClaimCount()` to the claim count.
Disclosed
-
_amountOut is representing assets and shares at the same time in the liquidate function
The issue was fixed by correcting the conversion and naming of the field.
Disclosed
-
Improper handling of cases when withdrawable assets = 0
The issue was fixed by replacing the exchange rate function with a collateral check and making vault shares 1:1 with the underlying asset.
Disclosed
-
Loss of precision leads to under-collateralized
The exchange rate calculation should add one wei to the maxWithdraw value to avoid the rounding loss; the project later improved the share/asset calculation but the report notes it was not fully mitigated.
Disclosed
-
Users can manipulate the observation creation
The issue was mitigated by aligning TWAB queries on period boundaries.
Disclosed
-
The _currentExchangeRate of the Vault contract can’t increase and will always be lower than or equal to _assetUnit
The team said the behaviour was intentional and only added comments to clarify it, so no functional fix was applied.
Disclosed
-
Transfer of Vault tokens can cause accounting errors in other contracts
The issue was fixed by using OpenZeppelin's SafeCast library to convert uint256 to uint96.
Disclosed