ParaSpace contest - gz627'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: 63/106

Findings: 2

Award: $109.55

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

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

Vulnerability details

Impact

When updating oracle configs, there is no any validation on the parameters. If the parameters are set to inappropriate values, the system may be jeopardized.

Proof of Concept

If maxPriceDeviation is set to 50, which is valid but incorrect, any NFT price won't be updated since __checkValidity() will return false when setting NFT price. Another parameter expirationPeriod, which is not validated as well, also has important impact on NFT price updating.

Tools Used

Manual audit.

Add necessary data validation logic, e.g. 100 < maxPriceDeviation < MAX_DEVIATION_RATE, MIN_EXPIRATION_PERIOD < expirationPeriod < MAX_EXPIRATION_PERIOD.

#0 - c4-judge

2023-01-09T22:40:21Z

dmvt changed the severity to QA (Quality Assurance)

#1 - c4-judge

2023-01-25T16:29:06Z

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