Hunt prep
Before you test Panoptic
What 18 disclosed reports say about Panoptic: 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
Not written yet for this program. The numbers below are up to date.
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 | 9 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 0 | – | – | $0 |
| Race condition lesson | 2 | 0 | – | – | $0 |
| Crypto lesson | 1 | 0 | – | – | $0 |
| DoS 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.
-
CREATE2 address collision during pool deployment allows for complete draining of the pool
The salt should not be user-controlled; instead, it should be derived from block.timestamp and block.number combined with the user's salt to make the attack require precise timing.
Disclosed
-
Panoptic pool can be non-profitable by specific Uniswap governance
The code should use Uniswap's own decimal scale (1e6) instead of 10,000 and update all related code.
Disclosed
-
Removed liquidity can overflow when calling SemiFungiblePositionManager.mintTokenizedPosition function
The unchecked block should be removed so that the addition is checked and reverts on overflow.
Disclosed
-
Partial transfers are still possible, leading to incorrect storage updates, and the calculated account premiums will be significantly different from what they should be
The transfer restriction should be widened to also prevent transfers when the sender's removed liquidity (left slot) is greater than zero.
Disclosed
-
removedLiquidity can be underflowed to lock other user’s deposits
The code should check that removedLiquidity is greater than or equal to chunkLiquidity before subtracting.
Disclosed
-
Premium owed can be calculated as a very big number due to reentrancy on uninitialized pools
Validate the Uniswap pool ID before the _mint call, or do not explicitly set the locked flag to false when initializing the pool.
Disclosed
-
Wrong leg chunkKey calculation in haircutPremia function
The code was fixed to use the correct leg index when calculating the chunkKey.
Disclosed
-
When Burning a Tokenized Position validate should be done before flipping the isLong bits in _validateAndForwardToAMM()
Validate the tokenId before flipping the isLong bits so the flip cannot break the validation checks.
Disclosed
-
SettleLongPremium is incorrectly implemented: premium should be deducted instead of added
The realized premium should be negated before being passed to the collateral token's exercise function.
Disclosed
-
Overflow in CollateralTracker allows minting shares for free
The unchecked block should be removed so the multiplication is checked for overflow.
Disclosed
-
_validatePositionList() does not check for duplicate tokenIds, allowing attackers to bypass solvency checks
The recommendation was to add a check in _validatePositionList that the list length is shorter than MAX_POSITIONS (32).
Disclosed
-
Incorrect validation during checking liquidity spread
The check should revert when net liquidity is zero and total liquidity is positive.
Disclosed
-
_updateSettlementPostBurn() may not correctly reduce s_grossPremiumLast[chunkKey]
The update of s_grossPremiumLast should be moved outside the legPremia != 0 condition and executed whenever the leg is not long (tokenId.isLong(leg) == 0).
Disclosed
-
PanopticFactory uses spot price when deploying new pools, resulting in liquidity manipulation when minting
The recommendation is to use the TWAP price instead of the spot price, and the developer agreed that adding slippage checks would be prudent.
Disclosed
-
Attacker can steal all fees from SFPM in pools with ERC777 tokens
The contract should update liquidity after minting/burning and optionally add a reentrancy lock to registerTokenTransfer.
Disclosed