The ShortToken contract burns a short position when its short amount reaches zero, even if collateral remains, causing the owner to lose that collateral permanently. An attacker can front-run a user's closeTrade transaction with a liquidation to force the position's short amount to zero and burn it, or a user can mistakenly close without withdrawing all collateral.
The KangarooVault contract's getTokenPrice() function divides by totalSupply without checking if it is zero, causing a division-by-zero error when all vault tokens are withdrawn but funds remain. This locks the remaining funds permanently because deposits and withdrawals are blocked.
The LiquidityPool contract fails to deduct hedging fees from usedFunds when opening or closing trades, causing usedFunds to be overstated. This reduces available funds and lowers the token price, shortchanging liquidity providers.
The hedgePositions function calculates the new position without including the queuedPerpSize, which is the total pending size delta. This causes the hedging to be incorrect and the LiquidityPool could lose funds unexpectedly.
The liquidation logic in ShortCollateral.sol halves a position's debt when its safety ratio is between 0.95 and 1, but the liquidation bonus reduces the collateral ratio so much that the position immediately becomes fully liquidatable. An attacker could exploit this to liquidate a barely unhealthy position completely in two transactions.
When liquidating a short position, the collateral returned to the liquidator is capped at the remaining collateral, so if the position is undercollateralised, the liquidator may receive less than expected or nothing. An attacker (or any liquidator) could fully liquidate a position with no collateral and receive no reward.
The LiquidityPool contract uses a logical OR instead of AND when checking whether the asset price is valid, so trades can proceed even when the price feed marks the price as invalid. An attacker could open or close positions using an untrusted price, potentially causing financial loss.
The LiquidityPool's getTokenPrice() function divides by totalSupply, which can become zero after a complete withdrawal while totalFunds remains non-zero due to rounding. This causes a division-by-zero revert, blocking further deposits and requiring redeployment.
The deposit and withdrawal queues in the KangarooVault and LiquidityPool contracts process requests sequentially, so an attacker can queue many tiny deposits cheaply and block everyone behind them. Users then must pay enormous gas fees to process the whole queue before their own funds can be withdrawn.
The LiquidityPool's hedging mechanism can be blocked by an attacker who repeatedly opens or closes a small position immediately after the pool's delayed order is executed, causing the pool to submit a new order for only the current trade size and preventing it from submitting the accumulated queued size. This leaves the pool unhedged for subsequent trades.
The exchange allows opening a short position with zero amount and zero collateral, which creates a short token. An attacker can spam these zero-value short tokens to a victim, preventing the victim from opening a long position because the contract requires no short position to exist before opening a long.
The vault's token price drops after a deposit is invested because trading fees are paid, so later depositors can buy vault tokens at a discount and receive more tokens for the same funds. The report claims this disadvantages early depositors, though the project disputed that the price drop is intended behaviour.
The liquidation and order-fee code paths read prices from Synthetix without checking the returned 'isInvalid' flag, unlike other functions in the same contract that do check it. An attacker could trigger a liquidation while the price feed is momentarily invalid or stale, causing under- or over-liquidation and a loss of funds for the user or the protocol.
Several functions in KangarooVault and LiquidityPool ignore the isInvalid flag returned by the external perp market's remainingMargin function, so they use a margin value that should not be trusted. This can allow deposits and withdrawals to proceed with an inaccurate token price.
The KangarooVault contract tracks usedFunds and totalFunds without ensuring totalFunds stays at least usedFunds. If someone sends funds directly to the vault, usedFunds can exceed totalFunds, causing underflow reverts that prevent closing trades and user withdrawals.
The canLiquidate() function returns false for short positions with exactly the minimum collateral, but maxLiquidatableDebt() treats the same positions as liquidatable, allowing half their debt to be liquidated. An attacker could liquidate such positions even though the protocol's own check says they are safe, causing users to lose collateral.
The openShort() function in LiquidityPool.sol fails to increase totalFunds by the net fees collected, so availableFunds is understated and the token price is lower than it should be. This causes liquidity pool token holders to lose part of their token value.
The LiquidityPool contract always transfers a positive margin to the Synthetix perpetual market for every trade, even when reducing position size. An attacker can repeatedly open and close a position in one transaction to drain the pool's SUSD balance into margin, preventing users from withdrawing or trading until the pool is rebalanced.
The PowerPerp token supply can be drained because liquidations burn tokens, reducing total supply and raising the token price, which makes more positions underwater and harder for long traders to close. An attacker could exploit this by triggering liquidations to strain the supply and profit from the price increase.
A queued withdrawal can be made to revert by setting the receiver to the sUSD token contract, which the token refuses to transfer to. Because the queue processes entries in order and stops at the first failure, all later withdrawals are blocked and those users lose their vault tokens without receiving sUSD.
Some functions that call Exchange.getMarkPrice do not check if the returned markPrice is zero. When the underlying spot price is zero, markPrice becomes zero, which can make collateral checks pass incorrectly and allow removal of collateral that should not be allowed.
When closing a short trade, a user could accidentally enter a collateral amount smaller than the position's collateral, causing the position to be burned while some collateral remains locked in the contract. The user could then permanently lose access to that collateral because the ownership check for withdrawal fails after the token is burned.
The protocol has no way to remove a previously approved collateral token. If an approved token later starts charging a fee on transfers, the deposit logic still credits the user with the full amount even though the contract receives less, creating an accounting mismatch.
The liquidation function burns the full requested debt amount of powerPerp tokens from the liquidator, but if the collateral returned is capped at the user's available collateral, the liquidator receives less collateral than the burned tokens are worth. An attacker (or unlucky liquidator) could lose powerPerp tokens because the burn amount is not adjusted to the actual collateral received.
During liquidation of a short position, the Exchange contract burns power perp tokens and reduces the short position, but also calls the LiquidityPool's liquidate function, which hedges the pool by the same amount. This causes the LiquidityPool to be over-hedged, leading to an incorrect position and potential loss of funds.
The KangarooVault.removeCollateral function updates internal accounting without calling the exchange to actually remove collateral, so the collateral remains in the exchange but is no longer tracked. When the position is later closed, the vault receives less collateral than it should, causing a loss of funds.
The KangarooVault contract charges a performance fee on premiumCollected when closing all positions, but the token price calculation includes premiumCollected without subtracting the fee. An attacker can withdraw before the fee is deducted, avoiding their share of the fee and leaving remaining users to bear it, reducing their token value.
The slippage fee calculation in the liquidity pool scales linearly with trade size without any upper bound, so for very large trades the total fee (open plus close) can exceed the trader's collateral. An attacker (or any user) could open and close a large position and lose essentially all of their collateral to fees.
PP
Polynomial Protocol contest
High
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.