Hunt prep
Before you test Paradex
What 34 disclosed reports say about Paradex: 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 | 24 | 0 | – | – | $0 |
| Access control lesson | 4 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 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.
-
Incorrect token_assets_value in AccountLiquidated Event
The event should be populated with the liquidated account's token asset value, matching the field's documented meaning.
Disclosed
-
No Restriction on Self Transfer
The transfer restriction function should be updated to reject transfers where the sender and recipient are the same address.
Disclosed
-
Account_transfer_partial should not be enabled when transfer_registry_address is not configured.
The restriction check should revert when the transfer registry address is not configured instead of skipping the check.
Disclosed
-
Funds get stuck in the bridge if attempted to be deposited into a restricted address
The bridge deposit path should be exempted from the sender-based restriction check, or the restriction should be adjusted so bridge deposits to these account types are allowed.
Disclosed
-
The fee calculation in settle_market is unreasonable.
The settlement fee calculation should charge both the taker and maker fees to ensure the total fee is not negative and to prevent losses to the fee account.
Disclosed
-
If the counterparty happens to be their own referrer, the protocol does not take the referral fee into account during the risk check.
The risk check should include the referral fee that the account will receive from the counterparty when computing the account value.
Disclosed
-
Account_transfer_partial(...) function doesn't check that receiver has a registered account in the system
The function should check for and create a new account for the receiver if it does not exist, similar to the transfer function.
Disclosed
-
Account_transfer_partial(...) function doesn't check sender's health after transferring balances
The function should check the sender's account health after the transfer, similar to the transfer function's free balance check.
Disclosed
-
Transfer(...) function doesn't account for current USDC price
The transfer function should be fixed to apply the current USDC price to the transferred amount and compare it against the free balance, as the withdraw function does.
Disclosed
-
Type mishandling allows for users to withdraw FAST from vault instead of STANDARD
The free balance should be returned in a signed type, or the conversion should be checked so negative balances are not turned into large positive values before the vault compares them.
Disclosed
-
The is_risky check is improper.
The check should include the trade fee when deciding whether the account value stays non-negative.
Disclosed
-
Serveal bugs in function set_prices_and_funding_snapshot
The function should reject updates whose timestamps are older than the stored timestamp and require consistent timestamps across all entries.
Disclosed
-
Lack of position quantity limit for a single account.
A limit should be imposed on the number of positions a single account can hold.
Disclosed
-
The vault performs an unsafe conversion on the getAccountValue result.
The conversion should be made safe, for example by checking the sign of the account value and handling negative values explicitly rather than casting them to an unsigned integer.
Disclosed
-
Invalid trade side check
The check should explicitly verify that one side is 1 and the other is not 1.
Disclosed