Skip to content

Code4rena

Starknet Perpetual

Every publicly disclosed report for Starknet Perpetual and what kind of bugs they were.

disclosed reports
5
most reported class
Business logic
bug classes found
2
first disclosure
2025
Find Starknet Perpetual on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Starknet Perpetual chose to make public.

Business logic

Liquidatable long positions can be forced into short positions and vice versa

The liquidation validation only checks that total risk decreases and the TV/TR ratio improves, allowing a liquidator to buy or sell more synthetic assets than the position holds. This can flip a liquidatable long position into a short position (or vice versa) without the owner's consent.

Starknet Perpetual

Medium
Access control

A malicious signed price can be injected in assets.price_tick()

The price tick function did not check that the signer's public key was registered for the asset, so an attacker could use an arbitrary key to sign a fake price and inject it. This allowed setting any price for a synthetic asset without governance approval.

Starknet Perpetual

High
Business logic

Deleveragable Positions Cannot Be Fully Liquidated

The liquidation function fails when fully liquidating a deleveragable position because the post-liquidation total risk becomes zero, triggering a panic in the health check. This prevents liquidators from closing insolvent positions, forcing the protocol to rely on deleverage and risking bad debt.

Starknet Perpetual

Medium