PirexGmx.initiateMigration can be blocked
Redacted Cartel contest
MediumCode4rena
Every publicly disclosed report for Redacted Cartel contest and what kind of bugs they were.
Newest first. Only what Redacted Cartel contest chose to make public.
Redacted Cartel contest
MediumA rounding error in the reward calculation causes users with small stakes to receive zero rewards when claiming, while their accrued rewards are cleared. An attacker can trigger the claim on behalf of a victim at the right moment to cause this loss.
Redacted Cartel contest
HighThe PirexGmx contract's redeem functions can be blocked because GMX's GlpManager enforces a cooldown period after deposits, during which redemptions fail. An attacker could repeatedly deposit tiny amounts to keep the cooldown active, preventing users from retrieving their funds.
Redacted Cartel contest
HighThe depositGlp() function assumes the full tokenAmount is received after safeTransferFrom, but if a whitelisted token charges a transfer fee, the contract receives less and the subsequent mintAndStakeGlp call fails. This would prevent users from depositing fee-charging tokens and receiving pxGlp.
Redacted Cartel contest
MediumThe AutoPxGlp::compound function is callable by anyone and accepts caller-controlled minimum amounts for GLP and USDG, which can be set to near-zero. An attacker could exploit this to cause the vault to lose assets during compounding, especially when market prices are volatile or manipulated.
Redacted Cartel contest
MediumThe compound function in AutoPxGmx allows any caller to supply swap parameters, including the fee tier and minimum output amount, which can direct the swap to an illiquid pool and accept large slippage. An attacker could use this to perform a sandwich attack and profit at the expense of the protocol.
Redacted Cartel contest
MediumThe PirexRewards contract keeps its own owner-editable list of reward tokens, while PirexGmx hard codes a different list used to actually transfer rewards. If the owner removes a hard-coded token, adds an unsupported one, or empties the list, the claim function still zeroes the user's reward state and emits a Claim event without sending anything, so users silently lose rewards.
Redacted Cartel contest
MediumThe AutoPxGmx and AutoPxGlp vaults are vulnerable to a share price manipulation attack where an attacker can steal underlying tokens from other depositors by exploiting rounding in share calculation. An attacker can deposit a tiny amount, then donate a large amount to inflate the share price, causing subsequent depositors to receive fewer shares and lose funds when redeeming.
Redacted Cartel contest
HighDuring a contract migration, the reward producer in PirexRewards still pointed at the old PirexGmx contract, so a bot calling compound could route a claim through the old contract, which returned zero rewards. This meant pending rewards for AutoPxGmx could be lost.
Redacted Cartel contest
MediumThe reward calculation in PirexGmx divides by the reward tracker's total supply without checking for zero, so when any of the four trackers has zero supply the calculation reverts. This makes claimRewards, harvest and claim revert, preventing users from claiming rewards.
Redacted Cartel contest
MediumThe configureGmxState function approves the new stakedGmx address for unlimited GMX spending but never resets the allowance of the previous stakedGmx address, unlike setContract. This leaves a stale unlimited approval that a compromised old stakedGmx contract could use to drain the contract's GMX balance, and repeated calls can revert or leave the contract stuck.
Redacted Cartel contest
MediumThe vault grants a maximum token allowance to the platform only in its constructor, so when the owner updates the platform address via setPlatform, the new platform cannot pull tokens. This breaks the deposit feature, preventing any deposits until the platform is reset.
Redacted Cartel contest
MediumThe maxWithdraw function in AutoPxGmx and AutoPxGlp does not account for the withdrawal penalty, so it returns an amount that is too large to withdraw. Calling withdraw with that amount causes the transaction to revert because the penalty increases the shares to burn beyond the user's balance.
Redacted Cartel contest
MediumThe contract AutoPxGmx calls a compound function during withdraw, redeem, and depositGmx, which swaps a reward token for GMX with a minimum output of 1. An attacker can send a tiny amount of the reward token directly to the contract, causing the swap to revert because the output is less than 1, thereby blocking all users from withdrawing or depositing.
Redacted Cartel contest
MediumThe AutoPxGmx and AutoPxGlp vaults only calculate protocol fees and update pxGmx reward accrual inside their compound() function, which measures rewards received during its own claim calls. An attacker can call PirexRewards.claim() directly for the vault address, transferring rewards to the vault without compound() running, so the protocol loses its fee and AutoPxGlp users lose their pxGmx reward accrual.
Redacted Cartel contest
HighThe vault's withdrawal function rounds down the number of shares to burn, so a small withdrawal can require zero shares. An attacker could withdraw assets repeatedly without burning shares, draining the vault.
Redacted Cartel contest
HighThe reward calculation in PirexRewards assumes a constant emission rate, so when the rate changes, some users receive fewer rewards than they earned while others receive more. An attacker could exploit this by timing their stake to benefit from the miscalculation, though the report does not detail an active attack.
Redacted Cartel contest
HighThe SWAP_ROUTER address in AutoPxGmx.sol is hardcoded to the Uniswap V3 router on Arbitrum, but on Avalanche that address is an externally owned account with no code. As a result, the compound function reverts when called on Avalanche, preventing the auto-compounding feature from working there.
Redacted Cartel contest
Medium