The PrizeVault contract ignores the boolean return value of ERC-20 transfer, so a token that returns false on insufficient balance does not revert. Combined with an ERC-4626 yield vault that returns fewer assets than requested on redeem, a user's withdrawal burns all shares but transfers no assets, locking the funds permanently.
A winner could set a hook that re-enters the Claimer contract to claim their prize without paying fees, forcing the original claimer to pay gas. The attacker gains the full prize while the claimer earns nothing.
The vault's maxDeposit() returns a limit based on the yield vault's maxDeposit(), but deposits actually use the yield vault's mint() function, which may have a stricter limit. An attacker could attempt to deposit the reported maximum and cause a revert, violating EIP-4626 compliance.
The function _maxYieldVaultWithdraw() used yieldVault.convertToAssets(), which per EIP-4626 is only approximate and may return too much. This could cause maxWithdraw(), maxRedeem(), and liquidatableBalanceOf() to return inflated values, violating EIP-4626 for the first two.
The depositWithPermit function in PrizeVault.sol calls the permit function with parameters that do not match DAI's permit signature, which includes a nonce and a boolean allowed flag. As a result, permit-based deposits with DAI or sDAI will revert, preventing users from using the signed-message deposit feature.
The vault's maxDeposit() function did not subtract accrued yield fees from the TWAB supply limit, so a user could deposit up to the full limit and leave no room to mint fee shares. The yield fee recipient then could not claim earned fees because the share mint would overflow.
The withdraw and redeem functions of the PrizeVault lack slippage protection, so if the underlying yield vault suffers a loss while a user's transaction is pending, the user receives fewer assets than expected. An attacker could exploit this by causing a loss or front-running to make the user accept a worse exchange rate.
The claimYieldFeeShares function subtracts the entire cached yieldFeeBalance from the stored balance instead of only the claimed amount, so any partial claim wipes out the remaining unclaimed fees. An attacker (or the fee recipient themselves) could claim a tiny amount and cause the rest of the accrued fees to be permanently locked in the contract.
A user who had delegated their vault balance to another address could reset delegation by passing the zero address, which the code treated as a valid delegate and moved their balance to it. This left the user unable to delegate back or withdraw, so their funds were lost forever.
The vault's setHooks function lets a user attach arbitrary hook contracts that are called during prize claims, and these hooks can make external calls and change state. An attacker could use a malicious hook to perform unauthorised side transactions, reentrant calls, or denial-of-service on claiming.
The depositWithPermit and mintWithPermit functions use msg.sender as the permit owner, so only the signer can call them. This prevents other contracts from executing these functions on behalf of a signer, breaking the intended permit workflow.
The TwabController._transferBalance function mishandles transfers to the SPONSORSHIP_ADDRESS, causing the total balance for a vault to decrease even though it should not. This breaks the invariant between individual and total twabs, skewing the odds in favour of winning and draining the reserve faster than intended.
The collateralization check in mintYieldFee() and liquidate() runs before the functions change state, so the vault can end up under-collateralized after they finish. An attacker could mint yield fee shares even when doing so leaves the vault under-collateralized, causing a loss of funds for depositors.
The Vault.mintYieldFee function lacks access control and lets the caller choose the recipient address, so anyone can mint the accrued yield fee shares to themselves or any address. This allows theft of the available yield fee as long as the vault is collateralised and the requested shares do not exceed the accrued fee supply.
The PRBMath library's pow() function, used in PoolTogether's DrawAccumulatorLib and TierCalculationLib, can return inconsistent values due to rounding errors. This could lead to incorrect tier odds and draw computations, potentially affecting prize distribution.
The claimer contract calculates fees per claim using only the standard prize pool claim count, ignoring canary claims. This inconsistency could lead to incorrect fee calculations for canary claims.
The contract only creates a new observation when the current period differs from the newest observation's period, so frequent small deposits within the same period overwrite the existing observation instead of adding a new one. An attacker could therefore manipulate their recorded average balance for a draw that ends within that period.
The vault factory used CREATE1, so a vault's address depended only on the factory's nonce. An attacker could front-run a deployment or exploit a chain reorg to place a malicious vault at the same address, causing users' deposits to go to the attacker's vault.
The vault's exchange rate calculation caps withdrawable assets at the recorded supply-to-assets value, so the rate can never rise above the asset unit and cannot recover after a temporary under-collateralisation. This prevents further deposits when the vault is under-collateralised, though the team later stated the cap is intentional to stop users claiming accrued yield.
The vault's exchange rate function returns a 1:1 rate when the yield vault has zero withdrawable assets, incorrectly marking the vault as collateralised. This could let users deposit or liquidate under false assumptions, though no direct loss of funds is shown.
The claimer fee was capped by the minimum prize size rather than the actual prize size, so when gas costs exceeded that minimum, solvers had no incentive to claim large prizes. As a result, high prizes could go unclaimed, causing a loss of reputation for the protocol.
The tier odds constants in the TieredLiquidityDistributor contract were incorrect: the highest standard prize tier did not have odds of 1 as intended, only the canary tier did. This meant prizes were not distributed according to the protocol's design.
In the liquidate function, the _amountOut argument is used both as an asset amount and as a share amount, which is impossible because a conversion rate exists between them. This causes the function to compare values representing different things, so it will not behave as intended.
The PrizePool contract calls TwabLib::getTwabBetween without ensuring the queried time range is safe, so it may use extrapolated balances that are not final. This could cause prizes to be awarded to the wrong users or not awarded to the right ones.
The vault mints shares based on the requested deposit amount rather than the amount actually received, so a fee-on-transfer token leaves the vault short of assets. When a user later redeems, the contract may not have enough assets to pay out and the transaction reverts.
The sponsor function in the Vault contract allowed anyone to force another user's delegation to the sponsor address by depositing zero tokens, removing their delegated power. An attacker could do this for every user, making the total delegated supply zero, and then hold all delegated power to manipulate the lottery.
The PrizePool contract's accounting does not update when someone calls increaseReserve, so the accounted balance remains lower than the actual token balance. This allows any vault to call contributePrizeTokens and effectively steal the reserve contribution, double-counting the tokens.
The PrizePool contract's setDrawManager function lacks access control, allowing anyone to set the drawManager address if it is not already set. An attacker could front-run the legitimate assignment to set a malicious drawManager, gaining control over functions like withdrawReserve and closeDraw.
PO
PoolTogether
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.