The PanopticFactory contract allows users to supply the salt used in CREATE2 when deploying new Panoptic pools, making the resulting pool address predictable. An attacker could brute-force a salt to find a collision with an address they control, then deploy a contract at that address, set an infinite allowance, self-destruct it, and later deploy the Panoptic pool to the same address, allowing them to drain all funds sent to the pool.
The contract converts a Uniswap pool fee into basis points by integer division, so any pool fee below 0.01% rounds down to zero. If Uniswap governance ever adds such a low fee level, the Panoptic pool would charge no swap commission on in-the-money positions.
The contract's accounting for removed liquidity uses an unchecked addition that can overflow a 128-bit integer when short and long positions are minted repeatedly. An attacker could cause the removed liquidity value to wrap around, leading to incorrect liquidity accounting and potentially allowing them to burn more liquidity than they should.
The token transfer function only checks that the sender's net liquidity (right slot) is fully transferred, ignoring the removed liquidity (left slot). This allows partial transfers that corrupt the stored account liquidity, causing incorrect premium calculations and, for naive users, an enormous removed liquidity value due to an unchecked subtraction.
An unchecked subtraction in the liquidity accounting of the SemiFungiblePositionManager can underflow, letting an attacker set the stored removed liquidity to a huge value. By front-running a victim's deposit with a crafted position, the attacker can make the victim's later withdrawal revert, locking their funds.
An attacker can reenter the pool initialisation function during a mint callback to burn a position before the mint completes, causing an underflow in removedLiquidity and making the premium owed appear extremely large. This only affects the optional premium accumulator and does not break core SFPM functionality.
The haircutPremia function always used leg index 0 when computing the chunkKey for settledTokens, so during liquidation only the first leg's premium was correctly accounted for. This caused an uneven distribution of the haircut, effectively refunding premium for other legs to the liquidatee.
The burn path flips the isLong bits of a tokenId before validating it, so a position whose legs have different risk partners can fail validation and revert. This prevents burning that tokenized position.
The settleLongPremium function incorrectly adds the premium to the option owner's account instead of deducting it, because the sign of the realized premium is wrong when passed to the collateral tracker. An attacker could receive premiums instead of paying them, draining funds from the protocol.
The mint function in CollateralTracker calculates required assets in an unchecked block, so a very large shares value overflows the multiplication and yields a tiny asset cost. An attacker can mint a huge number of shares for almost nothing and then withdraw all collateral.
The position list validation did not check for duplicate token IDs, allowing an attacker to repeat a single position many times and make an insolvent account appear solvent. This let users mint, burn, liquidate, or force-exercise options while insolvent, bypassing the protocol's solvency checks.
The liquidity spread check in Panoptic's option minting and burning logic is skipped when net liquidity is zero, allowing a buyer to mint a long leg that consumes all selling amount without paying the premium. When the long leg is later burned, the premium is not updated because net liquidity remains zero, so the buyer avoids paying.
The function _updateSettlementPostBurn only updates s_grossPremiumLast when legPremia is non-zero, so when a user burns a position with zero premium, the stored value is not reduced even though totalLiquidity changes. This leads to incorrect accounting of available premium for sellers.
The PanopticFactory contract uses the spot price from the Uniswap V3 pool when deploying a new pool, which can be manipulated via flash loans. This could cause the deployer to deposit an unbalanced amount of tokens, potentially leading to a significant loss.
The SFPM contract updates liquidity and feesBase in the wrong order when minting a short option, allowing an attacker with an ERC777 token to reenter via a hook and transfer the ERC1155 position before feesBase is set. The attacker can then burn the position and steal all outstanding fees belonging to the SFPM.
The premia calculation in the SemiFungiblePositionManager contract can revert when netLiquidity is very low and removedLiquidity is high, because the result of a multiplication and division cannot be cast to uint128. An attacker can cause a denial of service for specific addresses by manipulating liquidity to leave a dust amount, and normal operations can also lead to self-DoS due to rounding down.
Panoptic calculates collected fees as the difference of two separately rounded products, which can exceed the correct fee amount computed by Uniswap V3. An attacker could collect more fees than earned, potentially taking fees from other users in the same position.
The validateCallback function in the SemiFungiblePositionManager contract verifies a callback sender by computing a counterfactual address from pool features and truncating a keccak256 hash to 160 bits, which is vulnerable to a birthday attack. An attacker could theoretically find a collision between a malicious address and a legitimate pool address, allowing them to call uniswapV3MintCallback directly and transfer approved tokens from users.
PA
Panoptic
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.