ParaSpace contest - Mukund's results

The First Ever Cross-Margin NFT Financialization Protocol.

General Information

Platform: Code4rena

Start Date: 28/11/2022

Pot Size: $192,500 USDC

Total HM: 33

Participants: 106

Period: 11 days

Judge: LSDan

Total Solo HM: 15

Id: 186

League: ETH

ParaSpace

Findings Distribution

Researcher Performance

Rank: 62/106

Findings: 2

Award: $109.55

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

UNUSED/EMPTY RECEIVE()/FALLBACK() FUNCTION

If the intention is for the Ether to be used, the function should call another function, otherwise it should revert (e.g. require(msg.sender == address(weth))). Having no access control on the function means that someone may send Ether to the contract, and have no way to get anything back out, which is a loss of funds https://github.com/code-423n4/2022-11-paraspace/blob/main/paraspace-core/contracts/protocol/tokenization/NTokenUniswapV3.sol#L149

Some important function should emit who called this functions with msg.sender even though its only callable by admin for future logs maybe a admin exploit it

NToken.sol#L127-L134 NToken.sol#L151-L166

EVENTS IS MISSING INDEXED FIELD

Use at least 3 indexed field in events IPoolConfigurator.sol#L19-L24 IPoolConfigurator.sol#L40-L45 IPoolConfigurator.sol#L80-L84

SOME OF THE FUNCTION IS MISSING ZERO ADDRESS CHECK

PoolAddressesProvider.sol#L70-L78 PoolAddressesProvider.sol#L182-L193 PriceOracleSentinel.sol#L91-L97

CONSTANT ARE REDEFINED ELSE WHERE

same constant are redefined in multiple contract it should be added in a library and used in different contracts without defining then again and again PoolCore.sol#L53 PoolMarketplace.sol#L56 PoolParameters.sol#L49

#0 - c4-judge

2023-01-25T16:09:37Z

dmvt marked the issue as grade-b

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter