Skip to content
Access control Audit finding Intermediate

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.

ladboy233 Follow

Originally disclosed on Code4rena

Submitted by ladboy233, IllIllI, imare, csanuragjain, gzeon, Trust, Trust, Trust, Saintcode_, Josiah, pashov, jadezti, minhquanym, gz627, RaymondFam, fs0c, Mukund, xiaoming90, SmartSek, carlitox477, 9svR6w, wait, wait, unforgiven, hihen, KingNFT, ahmedov, Rolezn, BClabs, Lambda, nicobevi, and nicobevi

Note: per discussion with the judge, instead of highlighting only one submission related to centralization risks, all related findings are being compiled together under M-14 to provide a more complete report.

1. The calculateAuctionPriceMultiplier() function is not properly implemented

The _calculateAuctionPriceMultiplierByTicks() function is not properly implemented, it will revert when _maxPriceMultiplier < 1e18 or _minExpPriceMultiplier < 1e18, causes executeLiquidateERC721() not working. If the owner sets either of these numbers incorrectly, auctions will revert and the protocol will lose a lot of money.

2. Uniswap v3 LP token might be auctionable

The protocol determines whether an asset type can be auctioned purely by checking if the auctionStrategyAddress is configured. If the auctionStrategyAddress of an asset is configured, then it can be auctioned.

However, upon inspecting the code, it was observed that the initialization function (ReserveLogic.init) and PoolParameters.setReserveAuctionStrategyAddress do not have any mechanism to prevent the admin from configuring the auctionStrategyAddress of the Uniswap v3 LP token. Thus, it is possible that the admin accidentally configures the auctionStrategyAddress of the Uniswap v3 LP token, and this results in Uniswap v3 LP token being auctionable.

3. poolAdmin can withdraw all underlying asset balance of NTokens by using executeAirdrop() function

Duplicates: 199, 234, 485, 488

each NToken contract holds all the users collaterals for specific underlying asset. poolAdmin is the admin of the pool and have some accesses but he/she shouldn’t be able to withdraw and transfer users funds(the underlying asset). in the functions rescueERC721() which is only callable by poolAdmin, there is a check that make sures admin can’t transfer underlying asset but in the function executeAirdrop() there is no checks. function executeAirdrop() make a external call with admin specified address, function, parameters. admin can set parameters so the logic would call underlyingAsset.safeTransferFrom(NToken, destAdderss, tokenId) or underlyingAsset.setApprovalForAll(destAddress, true) and then admin could transfer all the underlying assets which belongs to users. this is critical issue because all the protocol collaterals are in danger if poolAdmin private key get compromised.

4. A single point of failure can allow a hacked or malicious owner to use critical functions in the project

Duplicates: 248, 272, 437, 477, 521

The owner role has a single point of failure and onlyOwner can use a few critical functions.

owner role in the paraspace project: Owner is not behind a multisig and changes are not behind a timelock. There is no clear definition of the owner in the paraspace docs.

Even if protocol admins/developers are not malicious there is still a chance for Owner keys to be stolen. In such a case, the attacker can cause serious damage to the project due to important functions. In such a case, users who have invested in project will suffer high financial losses.

5. NFTFloorOracle: setPrice can lead to user nft lost, or protocol drain of funds due to lack of check of constraints established in documentation and code

Duplicates: 29, 30, 54, 59, 86, 359, 375, 410, 433, 437, 441, 450, 473, 521

  • Centralization risk: Admin can bypass all security measures established in documentation, allowing they to drain all protocol funds if they buy an accepted NFT as collateral and then set it floor price to max value possible
  • Admin can set current TWAP to zero, leading to user lose of NFTs due to liquidation.
  • Allows feeder to eventually inform any price if they set _twap to zero

6. Pool admin can steal underlying of a NToken

Duplicates: 236, 296, 437, 513

The admin can:

  • steal ERC20 assets calling rescueERC20() from NToken.sol
  • steal ERC1155 assets calling rescueERC1155() from NToken.sol
  • steal ERC721 assets calling rescueERC721() from NToken.sol

7. Owner can change implementation of various contracts

Duplicates: 516

The owner can update the implementation of various contracts, allowing theft of assets and general compromise of the protocol.

One example: The owner of the PoolAddressProvider.sol contract can update the implementation of Pool contract by calling updatePoolImpl function.

The contract provides an easy way to add new functions using IParaProxy.ProxyImplementationAction.Add enum. This way a malicious user can add a malicious function in the Pool contract which can be used to steal tokens from other contracts which rely on the onlyPool modifier for their checks.

8. Owner can renounce while system is paused

The contract owner or single user with a role is not prevented from renouncing the role/ownership while the contract is paused, which would cause any user assets stored in the protocol, to be locked indefinitely


The original report as published on Code4rena, by ladboy233. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely privileged roles hold broad, unchecked powers (asset rescue, airdrop calls, implementation upgrades, price setting) with no multisig, timelock or constraint enforcement.

Impact

A hacked or malicious privileged key holder could steal user collateral, drain protocol funds, force liquidations, or lock assets indefinitely; the text notes no defence such as a multisig or timelock limits this.

What the attacker needed

Control of a privileged key; no multisig or timelock in place

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

In many blockchain projects a special account, often called the owner or admin, has extra powers. If that one account is stolen or turns bad, it can misuse those powers because nothing else stops it. This report lists several such powers, for example moving users' deposited assets or swapping out the code of a contract.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by ladboy233

View all

47 more disclosed reports, best first.

More from ParaSpace contest

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.