Skip to content

Code4rena

Redacted Cartel contest

Every publicly disclosed report for Redacted Cartel contest and what kind of bugs they were.

disclosed reports
18
most reported class
Business logic
bug classes found
5
first disclosure
2023
Find Redacted Cartel contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Redacted Cartel contest chose to make public.

Smart contracts

User’s Accrued Rewards Will Be Lost

A 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

High
Business logic

The redeem related functions are likely to be blocked

The 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

High
Business logic

Tokens with fees will break the depositGlp() logic

The 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

Medium
Business logic

Assets may be lost when calling unprotected AutoPxGlp::compound function

The 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

Medium
Business logic

Anyone can call AutoPxGmx.compound and perform sandwich attacks with control parameters

The 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

Medium
Business logic

Reward tokens mismanagement can cause users losing rewards

The 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

Medium
Smart contracts

Underlying assets stealing in AutoPxGmx and AutoPxGlp via share price manipulation

The 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

High
Business logic

PirexGmx#migrateReward() may cause users to lose Reward.

During 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

Medium
DoS

_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 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

Medium
Access control

broken logic in configureGmxState() of PirexGmx contract because it doesn’t properly call safeApprove() for stakedGmx address

The 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

Medium
DoS

Deposit Feature Of The Vault Will Break If Update To A New Platform

The 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

Medium
DoS

Preventing any user from calling the functions withdraw , redeem , or depositGmx in contract AutoPxGmx

The 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

Medium
Business logic

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 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

High
Smart contracts

Malicious Users Can Drain The Assets Of Auto Compound Vault

The 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

High
Business logic

Users Receive Less Rewards Due To Miscalculations

The 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

High
Misconfiguration

SWAP_ROUTER in AutoPxGmx.sol is hardcoded and not compatible on Avalanche

The 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