Hunt prep
Before you test Redacted Cartel contest
What 18 disclosed reports say about Redacted Cartel contest: 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 |
| DoS lesson | 4 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Misconfiguration 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.
-
User’s Accrued Rewards Will Be Lost
The reward calculation should use a reward-per-token approach, or the contract should not clear the user's reward state when the computed amount is zero (e.g., revert or skip clearing).
Disclosed
-
The redeem related functions are likely to be blocked
The text recommends reserving a time range for redemption only, such as one day out of every seven.
Disclosed
-
Tokens with fees will break the depositGlp() logic
The code should measure the contract's balance before and after the transfer and use the difference as the actual token amount.
Disclosed
-
Assets may be lost when calling unprotected AutoPxGlp::compound function
The compound function should not rely on user-supplied minimum amounts; instead it should use a reliable price oracle (such as GMX's oracle cross-checked with Chainlink) to enforce sensible minimums.
Disclosed
-
Anyone can call AutoPxGmx.compound and perform sandwich attacks with control parameters
The recommended mitigation is to use a fixed pool fee and an on-chain price oracle to calculate the minimum output amount.
Disclosed
-
Reward tokens mismanagement can cause users losing rewards
The team said it would add a pause check to claimUserReward and zero the PirexRewards address during migration; the report recommends a single source of reward tokens and updating reward state only after a successful distribution.
Disclosed
-
Underlying assets stealing in AutoPxGmx and AutoPxGlp via share price manipulation
The report recommends requiring a reasonably high minimal amount for the first deposit, minting a fixed high amount of shares on first deposit, seeding the pools during deployment, or sending the first 1000 wei of shares to the zero address.
Disclosed
-
PirexGmx#migrateReward() may cause users to lose Reward.
The reporter suggested setting PirexRewards' producer to the new PirexGmx during completeMigration, or clearing the old PirexGmx's pirexRewards reference in migrateReward so it cannot be used to claim.
Disclosed
-
_calculateRewards() in PirexGmx don’t handle reward calculation properly, and it would revert when totalSupply() is zero which will cause claimRewards() to revert if one of 4 rewardTracker’s totalSupply was zero
The calculation should check that totalSupply() is not zero before using it as a divisor.
Disclosed
-
broken logic in configureGmxState() of PirexGmx contract because it doesn’t properly call safeApprove() for stakedGmx address
The function should reset the allowance of the old stakedGmx address to zero before approving the new one, as setContract does; the team said it was intended to run only once and planned to rename it to initializeGmxState.
Disclosed
-
Deposit Feature Of The Vault Will Break If Update To A New Platform
The setPlatform function should revoke the old platform's allowance and grant a maximum allowance to the new platform.
Disclosed
-
AutoPxGmx.maxWithdraw and AutoPxGlp.maxWithdraw functions calculate asset amount that is too big and cannot be withdrawn
Override maxWithdraw in AutoPxGmx and AutoPxGlp to subtract the withdrawal penalty from the calculated assets.
Disclosed
-
Preventing any user from calling the functions withdraw , redeem , or depositGmx in contract AutoPxGmx
The parameter amountOutMinimum should be set to zero when compound is called, or a minimum amount that depends on the input should be used.
Disclosed
-
fee loss in AutoPxGmx and AutoPxGlp and reward loss in AutoPxGlp by calling PirexRewards.claim(pxGmx/pxGpl, AutoPx*) directly which transfers rewards to AutoPx* pool without compound logic get executed and fee calculation logic and pxGmx wouldn’t be executed for those rewards
The vault should track its own token balances across deposits, withdrawals and claims so it can detect rewards that arrive without compound() being called and process fees and accrual for them.
Disclosed
-
Malicious Users Can Drain The Assets Of Auto Compound Vault
The previewWithdraw function should round up instead of down when computing the number of shares to burn, ensuring at least one share is burned.
Disclosed