Skip to content

Code4rena

Panoptic: Next Core

Every publicly disclosed report for Panoptic: Next Core and what kind of bugs they were.

disclosed reports
22
most reported class
Business logic
bug classes found
4
first disclosure
2026
Find Panoptic: Next Core on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Panoptic: Next Core chose to make public.

DoS

Liquidations can be permanently blocked via getLiquidationBonus() unsigned underflow (Insolvent-but-unliquidatable accounts)

The liquidation bonus calculation subtracts a cross-denominated collateral balance from a required threshold in unsigned arithmetic, assuming the threshold is always at least the balance. When an account is insolvent only by distribution (one token short while the other has a surplus) and cross-margining is disabled, the balance can exceed the threshold, so the subtraction underflows and reverts, making the account unliquidatable.

Panoptic: Next Core

Medium
Business logic

High divergence check in isSafeMode is unreachable dead code providing false sense of security

The highDivergence check in the risk engine's safe mode logic compares the median tick against a slow moving average, but both values are derived from the same clamped input, so their divergence is mathematically bounded well below the trigger threshold. This makes the check dead code, so the intended third layer of oracle-manipulation protection never activates and minting may proceed when it should be blocked.

Panoptic: Next Core

Medium
DoS

Wide-range short legs can revert solvency checks and block liquidations ( Errors.InvalidTick )

A short option leg with a very wide tick range causes the solvency calculation to revert when the current price is inside that range, because the code computes a square-root ratio for the range width, which can exceed the supported tick domain. An attacker could create such a position and later block liquidation or collateral-withdrawal checks, leaving an insolvent account unliquidatable.

Panoptic: Next Core

Medium
Smart contracts

An attacker can manipulate oracle easily

The oracle update function can be called by anyone and only accepts one update per 64-second epoch, so an attacker can frontrun legitimate updates with a flash-loan-manipulated tick and lock that value in for the rest of the epoch. Repeating this across epochs lets the attacker shift the oracle by up to 149 ticks each time, distorting pricing and solvency checks for all positions.

Panoptic: Next Core

Medium
Business logic

Self-settlement via dispatchFrom bypasses refund mechanism allowing underfunded debt settlement

The settlement and force-exercise functions allow a position owner to act as the caller, but the refund mechanism assumes the caller is a distinct third party who can cover any shortage. When the caller is the same as the account, the refund becomes a self-transfer that injects no real value, so settlement can succeed even when the user lacks sufficient real balance to cover the debt.

Panoptic: Next Core

Medium
Business logic

State-price mismatch in liquidation

The liquidation function values a user's collateral using a stale stored interest figure while valuing their debt with interest calculated up to the current block, so the user's net worth is underestimated. This can cause the protocol to overstate its loss and revoke premiums from sellers, and can underpay liquidators.

Panoptic: Next Core

Medium
Business logic

Commission share-burn distribution is JIT-capturable when builderCode == 0 (default)

When builderCode is zero, commission fees are burned as shares from the option owner without removing assets, which instantly raises the share price for all current shareholders. An attacker can deposit just before such a burn to capture most of the value, or a fee payer can recapture their own fee.

Panoptic: Next Core

Medium
Business logic

Force exercise lacks caller-side bounds for exercise fee

The force exercise function calculates a fee from current and time-weighted ticks and settles it without letting the caller set a maximum they are willing to pay. A caller could therefore pay more than expected when the fee changes with price movement.

Panoptic: Next Core

Medium
Business logic

Solvency tick divergence blind spot in RiskEngine.getSolvencyTicks

The getSolvencyTicks function uses a squared-distance gate that can be bypassed by symmetric tick configurations, causing solvency to be checked at only one tick even when the spot and current ticks diverge significantly. An attacker could exploit this to have a position pass solvency checks while actually being insolvent at the current price.

Panoptic: Next Core

Medium
Business logic

Commission fees can always be bypassed

The commission fee calculation in settleBurn uses the minimum of the premium fee and notional fee, but when called from _settleOptions the notional fee is zero, so the commission becomes zero. Also, if realizedPremium is zero, the commission calculation is skipped entirely, allowing users to avoid commission fees by settling premium first and then burning.

Panoptic: Next Core

High
Business logic

TWAP misweights EMAs in RiskEngine, anchoring liquidation price to slow EMA and letting insolvent accounts dodge liquidation

The twapEMA function in RiskEngine destructured the return values of getEMAs in the wrong order, causing the TWAP to be weighted 60% slow EMA, 30% fast EMA, and 10% spot EMA instead of the intended 60% fast, 30% slow, and 10% eons. This misweighting anchored the TWAP to stale prices, allowing insolvent accounts to appear solvent and block liquidation or force-exercise.

Panoptic: Next Core

Medium
DoS

Division-by-zero in long-leg collateral requirement can block solvency checks and dispatchFrom (liquidation/force-exercise) for tickSpacing==1 pools

For pools with tickSpacing equal to one, a long position with a one-tick-wide leg evaluated at a tick equal to its strike causes a division-by-zero revert in the risk engine's margin calculation. Because dispatchFrom always includes the current tick, liquidation, force-exercise and settlement actions can hard-revert when the current tick equals the strike, potentially blocking third-party resolution at those prices.

Panoptic: Next Core

Medium
DoS

dispatchFrom() liveness DoS via StaleOracle : spot price manipulation blocks liquidations, force exercises, and premium settlements

The dispatchFrom function in PanopticPool unconditionally reverts with StaleOracle when the spot tick deviates from the TWAP by more than a threshold, blocking all liquidations, force exercises, and premium settlements. An attacker can front-run a liquidation with a swap to push the price out of range, causing the liquidation to revert and delaying it indefinitely.

Panoptic: Next Core

Medium
Business logic

Incorrect collateral calculation for delayed swap strategies

The RiskEngine contract's delayed swap collateral calculation used the maximum of the loan requirement and credit value instead of netting the credit against the loan. This inflated collateral requirements, making solvent accounts appear insolvent and potentially triggering unfair liquidations.

Panoptic: Next Core

Medium