Skip to content

Code4rena

ParaSpace contest

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

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

Disclosed reports

Newest first. Only what ParaSpace contest chose to make public.

Business logic

Interest rates are incorrect on Liquidation

The liquidation function transfers the repaid debt asset to the xToken before calling updateInterestRates, so the interest rate calculation counts the same liquidity twice. This makes the computed currentLiquidityRate higher than it should be.

ParaSpace contest

High
Audit finding

Attacker can manipulate low TVL Uniswap V3 pool to borrow and swap to make Lending Pool in loss

The protocol values Uniswap V3 LP positions using the spot price from the position's own pool, which can be a low-liquidity pool created by an attacker. An attacker can manipulate that pool's price to inflate the collateral value of their LP position and borrow more than the position is worth, causing a loss to the lending pool.

ParaSpace contest

High
Smart contracts

NFTFloorOracle’s asset and feeder structures can be corrupted

The NFTFloorOracle contract stores array indices in uint8 fields, which truncate when the number of assets or feeders exceeds 255. An attacker could not directly trigger this, but over time the indices would corrupt, causing removal of the wrong element and breaking the oracle's asset and feeder structures.

ParaSpace contest

High
Smart contracts

Semi-erroneous Median Value

The NFT floor oracle's median calculation returns the upper middle value when there is an even number of valid prices, instead of averaging the two middle values. This can produce an incorrect median price, affecting any function that relies on the finalised time-weighted average price (twap).

ParaSpace contest

Medium
Business logic

New BAKC Owner Can Steal ApeCoin

The BAKC owner can close a paired staking position, sending the staked APE to the BAYC owner, which in ParaSpace is the NTokenBAYC reserve pool. Any user who stakes a BAYC can then call withdrawBAKC and sweep the entire APE balance of that pool to themselves, stealing other users' staked APE.

ParaSpace contest

Medium
DoS

Adversary can force user to pay large gas fees by transfering them collateral

When a user transfers collateral to another user who has no existing balance, the receiver's collateral is automatically enabled. This increases the gas cost for the receiver on any action that requires a health check, and with enough collateral types it could become a denial of service.

ParaSpace contest

Medium
Business logic

Users can be locked out of providing Uniswap V3 NFTs as collateral

A balance limit on Uniswap V3 NFTs used as collateral can be filled by an attacker with zero-liquidity NFTs, preventing a victim from adding more collateral. This could allow the attacker to front-run and liquidate the victim's position.

ParaSpace contest

Medium
Business logic

Rewards are not accounted for properly in NTokenApeStaking contracts, limiting user’s collateral

The staking balance calculation for a paired Bored Ape Kennel Club token omitted the pending rewards earned by that paired token, so the reported balance was lower than the user's real position. Because this balance feeds the collateral figure used by the lending protocol, users had less borrowing power than their actual stake was worth.

ParaSpace contest

Medium
Business logic

LooksRare orders using WETH as currency cannot be paid with WETH

The LooksRare adapter converts a WETH currency in a maker order to the native currency, but the credit token remains WETH, causing a type mismatch check to fail. As a result, users cannot buy NFTs from LooksRare via Paraspace when the order requires WETH.

ParaSpace contest

Medium
Smart contracts

MintableIncentivizedERC721 and NToken do not comply with ERC721, breaking composability

The contract's supportsInterface function only reports support for the ERC721Enumerable and ERC721Metadata extensions, not for the base ERC721 interface. As a result, contracts that check for ERC721 compliance will not interoperate with these tokens, so marketplaces and other NFT facilities will not operate with them.

ParaSpace contest

Medium
Business logic

Oracle will become invalid much faster than intended on non-mainnet chains

The NFT floor price oracle uses a fixed number of blocks (1800) to decide if a price is still valid, assuming 12-second blocks. On chains with faster block times, prices expire much sooner than the intended six hours, so the oracle may reject valid prices.

ParaSpace contest

Medium
Access control

Anyone can steal CryptoPunk during the deposit flow to WPunkGateway

The WPunkGateway contract's supplyPunk function allowed anyone to deposit a CryptoPunk that had been offered for sale to the gateway at zero price, minting the resulting nTokens to the caller. An attacker could monitor for such offers and call supplyPunk with themselves as the beneficiary, stealing the deposited CryptoPunk.

ParaSpace contest

High
Business logic

Interactions with AMMs do not use deadlines for operations

The smart contract passes the current block timestamp as the deadline when decreasing liquidity in an AMM pool, so the transaction never expires. A malicious miner could delay including the transaction until slippage is maximal, potentially causing the user to receive less than intended.

ParaSpace contest

Medium
Access control

Centralization Risks

The report compiles several centralisation findings in a lending protocol: privileged roles (owner, poolAdmin, feeder) can call powerful functions without timelocks or multisig protection, letting them move user collateral, change contract implementations, or manipulate NFT floor prices. A compromised or malicious key holder could therefore drain or lock user funds.

ParaSpace contest

Medium
Smart contracts

NFTFloorOracle’s assets will use old prices if added back after removal

When an asset is removed from the NFTFloorOracle, its nested feederPrice mapping is not cleared, so if the asset is later re-added, old prices are reused if their timestamps are still within the expiration period. This can lead to incorrect NFT valuations and potentially the liquidation of healthy accounts.

ParaSpace contest

Medium
DoS

Data corruption in NFTFloorOracle ; Denial of Service

The NFTFloorOracle contract's feeder removal logic fails to update the index mapping after swapping and popping, causing corrupted data and out-of-bounds reverts. This prevents removal of some feeders, potentially leading to denial of service.

ParaSpace contest

High
Business logic

Bad debt will likely incur when multiple NFTs are liquidated

The protocol values a user's ERC721 collateral by multiplying the number of NFTs by the floor price, ignoring the price impact of selling many NFTs at once. If a large position is liquidated, the actual sale proceeds could be much lower, leading to bad debt.

ParaSpace contest

Medium
Business logic

Attacker can abuse victim’s signature for marketplace bid to buy worthless item

The credit structure signed by a maker in the ParaSpace marketplace lacks a marketplace identifier, so a signature intended for one marketplace order can be reused against a different order. An attacker could then use the victim's signature to make the victim buy a worthless item through a credit loan.

ParaSpace contest

Medium
Audit finding

Discrepency in the Uniswap V3 position price calculation because of decimals

The Uniswap V3 oracle wrapper hard-codes a denominator of 1E9 when computing the square root price, ignoring the difference between token decimals. When token1 has more decimals than token0, the calculated position price is inflated by many orders of magnitude, which could misprice collateral.

ParaSpace contest

High
Business logic

User can pass auction recovery health check easily with flashloan

The auction recovery health check only verifies the account's health factor at the moment of the transaction, so a user can temporarily inflate their collateral with a flash loan to cancel an auction and then withdraw the funds. This allows the user to bypass the recovery requirement and delay liquidation.

ParaSpace contest

High
Business logic

UniswapV3 tokens of certain pairs will be wrongly valued, leading to liquidations

The UniswapV3 oracle wrapper calculates a square-root price by dividing token prices before scaling, which can round to zero when one token's price is more than 10^18 times the other's. This zero price causes the liquidity calculator to value the position as if it held only the cheaper token, undervaluing the collateral and enabling wrongful liquidations.

ParaSpace contest

High
Business logic

Attacker can drain pool using executeBuyWithCredit with malicious marketplace payload

The LooksRare adapter built the order price from the maker's price but the exchange charged the taker's price, so an attacker acting as both maker and taker could set a low maker price and a high taker price to drain the pool. The attacker could steal any ERC20 token held by the pool.

ParaSpace contest

High
Business logic

Value can be stuck in Adapters

The marketplace adapter functions are payable and forward a separate value argument to the marketplace without checking that it equals the ETH actually sent. If a caller sends more ETH than the value argument, the excess is not refunded and becomes stuck in the adapter.

ParaSpace contest

Medium
Smart contracts

safeTransfer is not implemented correctly

The safeTransfer function in the ERC721 implementation does not call the onERC721Received hook on the recipient, so tokens can be transferred to contracts that cannot handle them, potentially locking them forever. The data parameter is also ignored.

ParaSpace contest

Medium
Smart contracts

Front-running admin setPrice call allows a single compromised oracle to set any price, allowing the oracle manipulator to drain all protocol funds

The NFT price oracle allows a single compromised feeder to set an arbitrary price for a newly added asset by front-running the admin's setPrice call, because the first price update bypasses validity checks. This lets the attacker inflate the asset's value, deposit it as collateral, and borrow all protocol funds.

ParaSpace contest

Medium
Business logic

NTokenMoonBirds Reserve Pool Cannot Receive Airdrops

The NTokenMoonBirds Reserve Pool contract only accepts Moonbird NFTs because its onERC721Received function requires the sender to be the underlying Moonbird contract. As a result, any airdropped NFT other than a Moonbird is rejected, so users who collateralised nested Moonbirds cannot receive airdrops.

ParaSpace contest

Medium