ParaSpace contest - datapunk'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: 57/106

Findings: 2

Award: $126.39

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

22.467 USDC - $22.47

Labels

bug
3 (High Risk)
partial-50
duplicate-402

External Links

Lines of code

https://github.com/code-423n4/2022-11-paraspace/blob/c6820a279c64a299a783955749fdc977de8f0449/paraspace-core/contracts/misc/NFTFloorOracle.sol#L167

Vulnerability details

Impact

Anyone can remove existing feeder.

Proof of Concept

Tools Used

manual

add onlyRole(DEFAULT_ADMIN_ROLE)

function removeFeeder(address _feeder) external onlyRole(DEFAULT_ADMIN_ROLE) onlyWhenFeederExisted(_feeder) { _removeFeeder(_feeder); }

#1 - c4-judge

2022-12-20T16:57:50Z

dmvt marked the issue as duplicate of #31

#2 - c4-judge

2023-01-09T14:12:02Z

dmvt marked the issue as partial-50

Q1. apply modifier onlyWhenAssetExisted(_asset) and onlyWhenFeederExisted(_feeder) twice to the same function

function removeAsset(address _asset) external onlyRole(DEFAULT_ADMIN_ROLE) onlyWhenAssetExisted(_asset) { _removeAsset(_asset); } function _removeAsset(address _asset) internal onlyWhenAssetExisted(_asset) {...}

https://github.com/code-423n4/2022-11-paraspace/blob/c6820a279c64a299a783955749fdc977de8f0449/paraspace-core/contracts/misc/NFTFloorOracle.sol#L148 https://github.com/code-423n4/2022-11-paraspace/blob/c6820a279c64a299a783955749fdc977de8f0449/paraspace-core/contracts/misc/NFTFloorOracle.sol#L296

function removeFeeder(address _feeder) external onlyWhenFeederExisted(_feeder) { _removeFeeder(_feeder); } function _removeFeeder(address _feeder) internal onlyWhenFeederExisted(_feeder)

https://github.com/code-423n4/2022-11-paraspace/blob/c6820a279c64a299a783955749fdc977de8f0449/paraspace-core/contracts/misc/NFTFloorOracle.sol#L169 https://github.com/code-423n4/2022-11-paraspace/blob/c6820a279c64a299a783955749fdc977de8f0449/paraspace-core/contracts/misc/NFTFloorOracle.sol#L326

#0 - c4-judge

2023-01-25T10:53:30Z

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